debian-forge-composer/internal
Achilleas Koutsou 51870676cc worker/json: add fallback pipeline names when reading data
When worker reading data into the job and result types, check if the
PipelineNames are populated and, if not, add the fallback values from
distro.

This makes it simpler to work with job queues that contain old data
before the introduction of the PipelineNames. In any situation where the
job or result data are read, the reader can assume that the
PipelineNames are non-nil and that if they belong to an old job, they
have the fallback names.

This assumption goes hand-in-hand with the change in v2 format for
osbuild results, since old jobs that don't have PipelineNames set *must*
contain results in the old format for the names to be valid.
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/json: add fallback pipeline names when reading data 2021-11-16 09:49:37 +01:00
tools.go go: vendor the oapi-codegen cmd 2021-02-01 15:32:58 +01:00