fix(release): publish the Helm chart only once the images exist #155

Merged
Sebi merged 1 commits from fix/release-wait-for-images into main 2026-11-25 19:08:46 +00:00
Owner

The release job finishes about 20 minutes before the ci workflow has pushed the tag's images. Clusters that follow the chart repository (Flux with version: "*" on app.uptimesebi.net) then roll out a release whose image does not exist yet: the migrate hook sits in ImagePullBackOff until its 15 min deadline and the upgrade fails. 0.2.1, 0.3.0 and 0.4.0 all failed that way (confirmed via kube-state-metrics: ErrImagePull/ImagePullBackOff on every uptimesebi-migrate-* pod); it was not a stuck goose lock.

This adds a step before "Publish Helm chart" that waits up to 90 minutes for uptimesebi, uptimesebi-checker and uptimesebi-statuspage with the tag's version, and does not publish the chart if they never appear.

Tested the step's script against the real registry: returns at once for 0.4.0, keeps waiting for a non-existent tag.

The cluster side retries failed upgrades now as well (cluster-infra 8f082ca), so a single slow build no longer leaves a release undeployed.

🤖 Generated with Claude Code

The release job finishes about 20 minutes before the ci workflow has pushed the tag's images. Clusters that follow the chart repository (Flux with `version: "*"` on app.uptimesebi.net) then roll out a release whose image does not exist yet: the migrate hook sits in `ImagePullBackOff` until its 15 min deadline and the upgrade fails. 0.2.1, 0.3.0 and 0.4.0 all failed that way (confirmed via kube-state-metrics: `ErrImagePull`/`ImagePullBackOff` on every `uptimesebi-migrate-*` pod); it was not a stuck goose lock. This adds a step before "Publish Helm chart" that waits up to 90 minutes for `uptimesebi`, `uptimesebi-checker` and `uptimesebi-statuspage` with the tag's version, and does not publish the chart if they never appear. Tested the step's script against the real registry: returns at once for 0.4.0, keeps waiting for a non-existent tag. The cluster side retries failed upgrades now as well (cluster-infra 8f082ca), so a single slow build no longer leaves a release undeployed. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Sebi added 1 commit 2026-11-25 18:59:46 +00:00
fix(release): publish the Helm chart only once the images exist
ci / lint (push) Skipped
ci / test (push) Skipped
ci / build (push) Skipped
ci / image (push) Skipped
ci / test (pull_request) Successful in 9m11s
ci / lint (pull_request) Successful in 12m40s
ci / build (pull_request) Canceled after 0s
ci / image (pull_request) Canceled after 0s
8cc5c0266a
The release job finished about 20 minutes before the ci workflow had
pushed the tag's images. Clusters following the chart repository then
rolled out a release whose image did not exist yet: the migrate hook
sat in ImagePullBackOff until its deadline and the upgrade failed
(0.2.1, 0.3.0 and 0.4.0 on app.uptimesebi.net).

Wait up to 90 minutes for the API, checker and status page images of
the tag before publishing the chart.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sebi merged commit 7509b8c429 into main 2026-11-25 19:08:46 +00:00
Sebi deleted branch fix/release-wait-for-images 2026-11-25 19:08:48 +00:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: ZB-Server/uptimesebi#155