coreos / fedora-coreos-releng-automation

Repo for small tools/scripts/sevices that aid in the automation of Fedora CoreOS release engineering
Other
6 stars 20 forks source link

coreos-koji-tagger: tag packages from rawhide builds into pool #183

Closed jlebon closed 9 months ago

jlebon commented 10 months ago

For the Bodhi testing work, when testing a rawhide update, we want to test against a known working rawhide build. To do this, we want to base our build on the last working rawhide combination. We do this by reusing the generated lockfile from that build and the git commit of the config repo.

But for this to work, we need to make sure that we have access to all the RPMs in that build.

This patch teaches coreos-koji-tagger to listen to the coreos.stream.release fedmsg that the release job emits to know when a new rawhide build is available; it then downloads the generated lockfiles and tags in the packages.

Closes: #181

jlebon commented 9 months ago

Updated!

jlebon commented 9 months ago

This looks like it's working well in production!

One thing this is missing is syncing on start like the git lockfiles logic. We can add that in a follow-up eventually but for now it also works to just re-trigger a release job to get the message sent and trigger the logic here.