debian-forge-composer/internal
Achilleas Koutsou 778b2de3c0 worker: test mixed new and old jobs in jobqueue
Two new tests, one for OSBuild and one for Koji jobs. Both follow the
same flow:
- Enqueue a job that doesn't specify PipelineNames (oldJob)
- Enqueue a job that does specify PipelineNames (newJob)
- Read the job data for the oldJob and check that the default
  PipelineNames were added
- Read the job data for the newJob and check that it's unchanged
- Finish oldJob and add results without specifying PipelineNames
- Finish newJob and add results with PipelineNames
- Read the oldJob result and check that the default PipelineNames were
  added
- Read the newJob result and check that it's unchanged

This is meant to test several scenarios that can occur when upgrading
the service:
1. The existing jobqueue has old jobs in it that were queued before the
   PipelineNames were part of the data structure. The worker should be
   able to read these and add the fallback data.
2. New jobs are added while old jobs still exist in the queue and the
   worker can read both types.
3. The existing jobqueue has old finished jobs in it that were finished
   and had results written before the PipelineNames were part of the
   result data structure. The worker should be able to read these and
   add the fallback data.
4. New jobs are finished and results are written while old jobs still
   exist in the queue and the worker can read both result types.
2021-11-16 09:49:37 +01:00
..
auth cloudapi: V2 2021-09-14 15:32:21 +02:00
blueprint internal/blueprint: allow filesystem size specified with units 2021-11-02 18:32:47 +01:00
boot ci: rotate secret names 2021-10-21 07:28:46 +02:00
client Weldr API: introduce Image Type denylist for filtering exposed images 2021-08-02 18:51:03 +02:00
cloud/gcp build(deps): bump github.com/golang/protobuf from 1.4.3 to 1.5.2 2021-09-03 18:23:54 +02:00
cloudapi osbuild-worker: attach pipeline names to jobs 2021-11-16 09:49:37 +01:00
common internal/common: introduce function to convert data sizes 2021-11-02 18:32:47 +01:00
crypt crypt: add automatic darwin support 2020-07-17 07:48:22 +02:00
disk blueprints: change minsize from int to uint64 2021-09-29 15:08:12 +02:00
distro distro: ImageType build and payload pipeline names 2021-11-16 09:49:37 +01:00
distroregistry distroregistry: disable CentOS Stream 9 2021-11-10 14:54:31 +01:00
jobqueue jobqueue: add DequeueByID 2021-11-14 10:17:03 +01:00
jsondb jsondb: Allow passing nil as document to Read() 2020-05-13 16:45:09 +02:00
kojiapi osbuild-worker: attach pipeline names to jobs 2021-11-16 09:49:37 +01:00
mocks worker: Configurable timeout for RequestJob 2021-10-19 00:12:18 +01:00
osbuild1 osbuild: test result conversions 2021-11-16 09:49:37 +01:00
osbuild2 osbuild2: test result Write() function 2021-11-16 09:49:37 +01:00
ostree ostree: add test for VerifyRef() 2021-06-18 14:02:09 +01:00
prometheus prometheus: add middleware function 2021-10-29 20:36:18 +01:00
reporegistry reporegistry: Add a DistroHasRepos helper function 2021-07-12 08:58:42 +02:00
rhsm internal/rhsm: implement fallback to the previous mechanism 2021-08-09 12:40:23 +02:00
rpmmd rpmmd: test rpm list deduplication 2021-11-16 09:49:37 +01:00
store distro/rhel85: add support for edge raw images 2021-08-28 09:20:19 +02:00
target Support for temporary credentials 2021-09-02 15:13:42 +02:00
test worker: Remove identity filter 2021-09-04 02:48:52 +02:00
upload worker: Configure AWS credentials in the worker 2021-10-14 02:10:54 +01:00
weldr osbuild-worker: attach pipeline names to jobs 2021-11-16 09:49:37 +01:00
worker worker: test mixed new and old jobs in jobqueue 2021-11-16 09:49:37 +01:00
tools.go go: vendor the oapi-codegen cmd 2021-02-01 15:32:58 +01:00