Open
Description
The EXD team responsible for RHEL composes would like to implement an optimisation which would allow them to not build images for every new compose/respin, in case no relevant part of the tooling or used content changed.
Motivation
When building compose for the same release next time, check the metadata to find out if something meaningful changed (e.g. version of package in the image, compose configuration, version of deployed image-builder)
- if yes, submit new build
- if no, copy image from previous compose (since a new one would be practically identical)
Requirement
- Upon finishing an
osbuild-koji
task, store enough metadata to identify all content in the image. - Have an API endpoint for querying the deployed versions of relevant parts of Image Builder deployment (osbuild-composer, osbuild-composer-worker, osbuild). Version stored in Koji build metadata won't allow to check for possible changes before submitting another build.
- Have the same information as mentioned in (2.), but attached as metadata to the Koji Build via the Koji API.