Repository navigation
ci: split the release job so tag and publish re-run alone - #4252
Merged
Merged
Conversation
The tag job accepts a tag that already points at this commit and fails on one that points elsewhere; it never deletes or moves a tag. The publish job finishes a draft left by an earlier attempt, and passes when the release is already complete.
|
Caution Review failedThe pull request is closed. Walkthrough
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
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.
The release job did everything at once, so "Re-run failed jobs" after a tag or publish failure rebuilt every package.
What moved where:
package-deb,package-rpm,package-pacman: build the distro packages from the Linux tarballs and upload them as artifacts. They wait only on the Linux builds they read and never touch tags or releases. Script failures still ship without the files, as before.release-assets: everything else the old job staged (binaries, stdlib index, doc page and archives, zip/tar check), plus checksums and the missing-files guard. Uploads the result as one artifact and computes the tag and title once.release-tag: creates the tag. If it already points at this commit, it passes; if it points elsewhere, it fails with a clear message. It never deletes or moves a tag. The "Delete existing release and tag" step is gone.create-release: downloads the staged files and creates the release. If an earlier attempt left a draft, it uploads with--clobberand publishes it; if the release is already published with every file, it passes. Latest marking is unchanged (no--latestflag).Re-runs: a failed tag or publish job re-runs alone and reuses the staged artifact. A failed package job re-runs alone with the jobs after it. The missing-files guard now runs before the tag exists, so stopping there no longer leaves a stale tag.
Behavior changes: a nightly dispatched again for the same date at a new commit now fails instead of replacing that nightly. Without a GPG key the tag job pushes the lightweight tag itself instead of letting the release create it.
Not run for real: every new job is gated on main. A nightly dispatch with a fresh
nightly_dateexercises all of them without spending a stable version.Summary by CodeRabbit