debian-forge-composer/internal
Lars Karlitski 26b36ba704 worker/api: introduce job tokens
Don't give out job ids to workers, but `tokens`, which serve as an
indirection. This way, restarting composer won't confuse it when a stray
worker returns a result for a job that was still running. Also,
artifacts are only moved to the final location once a job finishes.

This change breaks backwards compatibility, but we're not yet promising
a stable worker API to anyone.

This drops the transition tests in server_test.go. These don't make much
sense anymore, because there's only one allowed transition, from running
to finished. They heavily relied on job slot ids, which are not easily
accessible with the `TestRoute` API. Overall, adjusting this seemed like
too much work for their benefit.
2020-09-11 14:23:24 +01:00
..
blueprint blueprint: do not append "-" to name-version if version is empty 2020-06-10 17:40:30 +02:00
boot internal/boot: Make some function public 2020-09-03 15:12:59 +01:00
client client: Add an integration test for a bad blueprint depsolve 2020-07-28 08:18:56 +02:00
common osbuild: move result serialization from common 2020-08-26 12:12:37 +02:00
crypt crypt: add automatic darwin support 2020-07-17 07:48:22 +02:00
distro distro/rhel8: Updates for RHEL for Edge 2020-09-03 11:02:44 +01: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
mocks worker: introduce job artifact directory 2020-05-26 10:42:20 +02:00
osbuild osbuild/result: parse the metadata from the rpm stage 2020-08-26 12:12:37 +02: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 worker: support returning returning images as StreamOptimized 2020-08-23 14:45:27 +02:00
test weldr: add support for toml format in /blueprints/freeze 2020-06-05 13:51:04 +02:00
upload upload/koji: add support for GSSAPI/Kerberos auth 2020-08-27 17:29:57 +01:00
weldr weldr: make URL mandatory part of a new source 2020-09-04 20:20:24 +01:00
worker worker/api: introduce job tokens 2020-09-11 14:23:24 +01:00