debian-forge-composer/internal
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
..
blueprint distro.Manifest: take Customizations rather than Blueprint as argument 2020-03-15 23:48:42 +01:00
client client: Use http.Client instead of a string for the socket 2020-03-09 18:02:54 +01:00
common store: move ComposeRequest to the store package 2020-03-12 20:01:24 +01:00
compose job: pass manifest instead of pipeline to osbuild 2020-03-03 22:25:49 +01:00
crypt crypt: make it possible to compile and test on macOS 2020-01-30 14:42:25 +01:00
distro distro.Manifest: take Customizations rather than Blueprint as argument 2020-03-15 23:48:42 +01:00
jobqueue store/jobqueue: remove distro field from jobs 2020-03-18 12:24:20 +01:00
mocks store: don't keep a "default" distro 2020-03-18 08:33:42 +01:00
osbuild stage: make the unmarshalling error more verbose 2020-03-17 12:21:01 +01:00
rcm rcm: use same function as weldr for pushing composes 2020-03-18 08:33:42 +01:00
rpmmd rpmmd: drop the Name attribute from RepoConfig 2020-03-15 23:48:42 +01:00
store store/jobqueue: remove distro field from jobs 2020-03-18 12:24:20 +01:00
target targets/local: drop Location field 2020-02-14 11:53:38 +01:00
test api: implement /compose/log 2019-12-20 11:43:39 +01:00
upload lint: fix unhandled errors 2020-03-02 14:28:55 +01:00
weldr weldr: remove azure-specific size check 2020-03-18 08:33:42 +01:00
weldrcheck weldrcheck: Convert to go testing framework + testify/require 2020-03-17 21:10:00 +01:00