ci(release): sweep accumulated dryrun prerelease tags#419
Merged
Conversation
The nightly dry-run vector cuts a vX.Y.Z-dryrun.N tag (and GoReleaser cuts a matching prerelease) that is never published, but nothing pruned it, so they accumulated and polluted next-env version-calc. Add a retention-based sweep job: it deletes only anchored vX.Y.Z-dryrun.N tags and their prereleases beyond the newest few, and never touches rc or release tags. Runs on the daily schedule and on manual non-dry-run dispatches so it cannot race a rehearsal in flight. Signed-off-by: Joshua Temple <joshua.temple@stablekernel.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Closes #388. Adds a decoupled
sweep-dryrun-tagsjob to nightly-release.yaml that prunes accumulated-dryrun.Ntags and their prereleases, keeping the newest few.Why not inline
The dryrun tag is the load-bearing carrier across workflow_run boundaries: Release builds it, Fleet E2E validates it, and Auto-promote's rc-only gate rejects it. The nightly dispatch job finishes long before that chain completes, so an inline delete would tear the rehearsal down before it runs. The sweep is therefore decoupled and retention-based.
Safety
^v[0-9]+\.[0-9]+\.[0-9]+-dryrun\.[0-9]+$(anchored). Verified to rejectv0.6.0(release),v0.6.0-rc.4(rc), and mixed shapes.Verification
actionlint clean; shellcheck passed on the run block; uses the default GITHUB_TOKEN with contents: write (no new secret).
Pairs with #410 (the version-calc fix); this reduces the accumulation, #410 makes the calc robust regardless.