debian-forge-composer/internal
Lars Karlitski 299a5e52ab worker: use OSBuildJobResult consistently
Workers reported status via an `osbuild.Result`, which only includes
osbuild output. Make it report OSBuildJobResult instead, which was meant
to be used for this purpose and is already used as the result type in
the jobqueue.

While at it, add any errors produced by targets into this struct, as
well as an overall success flag.

Note that this breaks older workers returning the result of an osbuild
job to a new composer. I think this is fine in this case, for two
reasons:

1. We don't support running different versions of the worker and
composer in the weldr API, and remote workers aren't widely used yet.

2. Both osbuild.Result and worker.OSBuildJobResult have a top-level
`Success` boolean. Thus, logs are lost in such cases, but the overall
status of the compose is not.
2020-11-09 14:17:19 +01:00
..
blueprint blueprint: do not append "-" to name-version if version is empty 2020-06-10 17:40:30 +02:00
boot image-tests: don't use random names for CI artifacts 2020-09-15 14:30:51 +02:00
client client: Add an integration test for a bad blueprint depsolve 2020-07-28 08:18:56 +02:00
cloudapi worker: use OSBuildJobResult consistently 2020-11-09 14:17:19 +01:00
common weldr: move common.ComposeState to weldr 2020-11-09 14:17:19 +01:00
crypt crypt: add automatic darwin support 2020-07-17 07:48:22 +02:00
distro koji: use the host name from /etc/redhat-release in CGImport metadata 2020-10-27 19:01:30 +00:00
jobqueue jobqueue: allow canceling jobs 2020-05-13 16:45:09 +02:00
jsondb jsondb: Allow passing nil as document to Read() 2020-05-13 16:45:09 +02:00
kojiapi worker: use OSBuildJobResult consistently 2020-11-09 14:17:19 +01:00
mocks worker: introduce job artifact directory 2020-05-26 10:42:20 +02:00
osbuild osbuild/rpm: add sigpgp and siggpg keys to the metadata 2020-10-27 19:01:30 +00:00
rpmmd rpmmd/Depsolve: expose whether to check GPG signature for each RPM 2020-06-10 19:25:54 +02:00
store store: Add newImageBuildFromV0 test 2020-08-13 17:47:57 +02:00
target koji: use nvra as the filename for images 2020-10-27 19:01:30 +00:00
test weldr: add support for toml format in /blueprints/freeze 2020-06-05 13:51:04 +02:00
upload test/koji: move the koji test to schutzbot 2020-11-02 19:59:28 +01:00
weldr worker: use OSBuildJobResult consistently 2020-11-09 14:17:19 +01:00
worker worker: use OSBuildJobResult consistently 2020-11-09 14:17:19 +01:00