Skip to content

fix(obs): re-read released container tags on publish, daily and at startup - #22

Merged
rjd15372 merged 1 commit into
mainfrom
fix/release-container-tags-refresh
Nov 18, 2026
Merged

rjd15372 merged 1 commit into
mainfrom
fix/release-container-tags-refresh

Conversation

@rjd15372

Copy link
Copy Markdown
Collaborator

Why

Released container images kept the version and tags of the first release the dashboard saw. Example: ppg:releases:14:containers/percona-distribution-postgresql showed 14.24-1 while the registry only has 14.25-1.

A new release into the same release project changes no build state: the targets stay "disabled" and the package stays "published". The poller only queued a release container when it was unpublished, of unknown type, or had no tags, and the consumer dropped repo.published for release projects. So the tags were read once and never again.

What

  • The consumer wakes a release project's containers on repo.published.
  • The poller queues each release project's published containers for a tag re-read every 24 hours. The timer is in memory, so the first tick after a restart re-reads them all.
  • The worker rescans a published container when its tags change, not only when they are first filled in. Otherwise the stored scan would describe the previous image until the nightly scan.

Testing

  • go test ./... and go vet ./... pass.
  • New tests: the poller queues a tagged, published release container on the first tick, not the second, and again after the interval; repo.published wakes only that project's containers; changed tags trigger one rescan, unchanged tags none.

…artup

A new release into the same release project changes no build state, so a
published release container with tags was never queued again and kept the
version of the first release seen. Re-read its tags when the project
publishes, once a day from the poller, and on the first tick after a
restart. Rescan the image when its tags change.

Signed-off-by: Ricardo Dias <ricardo.dias@percona.com>
@rjd15372
rjd15372 merged commit 6589469 into main Nov 18, 2026
5 checks passed
@rjd15372
rjd15372 deleted the fix/release-container-tags-refresh branch November 18, 2026 11:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant