debian-forge-composer/cmd/osbuild-worker
Ondřej Budai 69e7883421 worker/koji-finalize: check the dependencies early
Previously, the checks that dependencies were successful were all over the
Run() method. This led to a issue #1101 (lovely binary number btw).

This commit rewrites the Run() method to:

1) Extract dynamic args. Return an error if they cannot be unmarshalled.
2) Check if dependencies were successful. If not, call kojiFail, update the
   job and return.
3) Create the CGImport metadata and call kojiImport.

Fixes #1101

Signed-off-by: Ondřej Budai <ondrej@budai.cz>
2020-11-25 22:24:22 +00:00
..
jobimpl-koji-finalize.go worker/koji-finalize: check the dependencies early 2020-11-25 22:24:22 +00:00
jobimpl-koji-init.go workerapi: serialize koji errors as strings 2020-11-13 09:39:55 +01:00
jobimpl-osbuild-koji.go workerapi: serialize koji errors as strings 2020-11-13 09:39:55 +01:00
jobimpl-osbuild.go worker: introduce JobImplementation interface 2020-11-09 14:17:19 +01:00
main.go worker: implement koji job types 2020-11-11 18:16:42 +01:00
main_test.go koji: add signature to the CGImport metadata components 2020-10-27 19:01:30 +00:00
osbuild.go worker/osbuild: print raw osbuild output if it cannot be parsed 2020-11-25 07:37:44 +00:00