debian-forge-composer/internal
Achilleas Koutsou a2c4622930 kojiapi: Check job type when retrieving from queue
When a job's arguments are retrieved (for the /manifests API endpoint),
the incoming ID should correspond to a Finalize Job.  The new
worker.Job() method helps us verify the type and produce an error if the
wrong type is found.
Similarly, the dependencies of a Finalize Job should be in order (Init
Job first followed by Build Jobs).  The types are validated while
iterating the dependency list.

Added convenience functions that check the retrieved job type and return
the initialised struct or an error if the ID is not found or does not
match the type.

Currently the getInitJob() function isn't used but it will be useful
later.
2021-01-19 10:37:51 +01:00
..
blueprint blueprint: do not append "-" to name-version if version is empty 2020-06-10 17:40:30 +02:00
boot test/image: print saner error messages 2020-12-01 08:27:44 +01:00
client jobqueue: remove testjobqueue 2021-01-12 12:19:25 +01:00
cloudapi kojiapi,cloudapi: exclude packages when depsolving 2021-01-06 21:34:37 +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
disk distro/rhel84: remove hardcoded root partition UUIDs 2020-12-15 16:43:39 +01:00
distro rhel84: fix kernel cmdline for s390x 2021-01-14 20:29:52 +01:00
jobqueue jobqueue: Replace JobArgs() with Job() 2021-01-19 10:37:51 +01:00
jsondb jsondb: Allow passing nil as document to Read() 2020-05-13 16:45:09 +02:00
kojiapi kojiapi: Check job type when retrieving from queue 2021-01-19 10:37:51 +01:00
mocks jobqueue: remove testjobqueue 2021-01-12 12:19:25 +01: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 distro/rhel84: use a random uuid for XFS partition 2020-12-15 16:43:39 +01:00
target cloudapi: Share an ec2 snapshot/ami with an account 2020-11-26 13:08:18 +00:00
test test: add arch to the generate test artifact names 2020-12-01 08:27:44 +01:00
upload upload/azure: use the new azure/azblob API on Fedora 33+ & RHEL 2021-01-06 16:31:28 +01:00
weldr jobqueue: remove testjobqueue 2021-01-12 12:19:25 +01:00
worker jobqueue: Replace JobArgs() with Job() 2021-01-19 10:37:51 +01:00