debian-forge-composer/internal/jobqueue
Lars Karlitski 1b7cb6c11b store/jobqueue: remove distro field from jobs
A job's purpose is to build an osbuild manifest and upload the results
somewhere. It should not know about which distro was used to generate
the pipeline.

Workers depended on the distro package in two ways:

1. To set an osbuild `--build-env`. This is not necessary anymore in new
   versions of osbuild. More importantly, it was wrong: it passed the
   runner from the distro that is being built, instead of one that
   matches the host.

   This patch simply removes that logic.

2. To fetch the output filename with `Distro.FilenameFromType()`. While
   that is useful, I don't think it warrants the dependency.

   This patch uses the fact that all current pipelines output exactly
   one file and uploads that. This should probably be extended in the
   future to upload all output files, or to name them explicitly in the
   upload target.

The worker should now compile to a smaller binary and do less
unnecessary work on startup (like reading repository files).
2020-03-18 12:24:20 +01:00
..
api.go store/jobqueue: remove distro field from jobs 2020-03-18 12:24:20 +01:00
api_test.go store/jobqueue: remove distro field from jobs 2020-03-18 12:24:20 +01:00
job.go store/jobqueue: remove distro field from jobs 2020-03-18 12:24:20 +01:00
local_target_uploader.go worker: upload local target image using jobqueue api 2020-02-14 11:53:38 +01:00