Skip to content

ci: split the release job so tag and publish re-run alone - #4252

Merged
BaseMax merged 2 commits into
mainfrom
ci/split-release-job
Nov 25, 2026
Merged

BaseMax merged 2 commits into
mainfrom
ci/split-release-job

Conversation

@BaseMax

@BaseMax BaseMax commented Nov 25, 2026 •

Copy link
Copy Markdown
Member

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 --clobber and publishes it; if the release is already published with every file, it passes. Latest marking is unchanged (no --latest flag).

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_date exercises all of them without spending a stable version.

Summary by CodeRabbit

  • New Features
    • Release downloads now include Debian, RPM, and Arch packages.
  • Chores
    • Release publishing now handles existing tags and releases without replacing them, and includes checks for packaged files and their checksums.

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.
@BaseMax
BaseMax requested a review from a team as a code owner November 25, 2026 22:07
@coderabbitai

coderabbitai Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

Explain Change →

Caution

Review failed

The pull request is closed.

Walkthrough

The workflow builds Debian, RPM, and Arch packages in separate jobs, stages package and compiler assets, and handles tag creation and GitHub Release updates in downstream jobs. Nightly reporting includes packaging and tag job outcomes.

Changes: Compiler release pipeline

Layer / File(s) Summary
Build and stage release assets
.github/workflows/compiler-release.yml
Separate jobs build Debian, RPM, and Arch packages and upload their artifacts. The staging job downloads the package artifacts, checks and stages release files, and uploads the staged assets. It exposes tag, title, and prerelease outputs. Nightly reporting includes the packaging jobs and release staging.
Check and create release tags
.github/workflows/compiler-release.yml
A separate job checks whether the remote tag points to the current commit. It keeps a matching tag, fails if the tag points elsewhere, and creates a new lightweight or signed tag according to GPG key configuration.
Create or update the GitHub Release
.github/workflows/compiler-release.yml
A separate job creates a missing release, uploads files to a draft and publishes it, or uploads missing files to an existing published release.

Estimated code review effort: 4 (Complex) | ~45 minutes

Change: Other

Sequence Diagram(s)

sequenceDiagram
  participant package-deb
  participant package-rpm
  participant package-pacman
  participant release-assets
  participant release-tag
  participant RemoteTags
  participant create_release
  participant GitHubReleases
  package-deb->>release-assets: Provide Debian package artifact
  package-rpm->>release-assets: Provide RPM package artifact
  package-pacman->>release-assets: Provide Arch package artifact
  release-assets->>release-tag: Provide tag and title outputs
  release-tag->>RemoteTags: Check remote tag
  RemoteTags-->>release-tag: Return tag target
  release-tag->>RemoteTags: Push new tag when needed
  release-assets->>create_release: Provide staged release files
  create_release->>GitHubReleases: Create or update release and upload files
Loading

Suggested reviewers: bdadmehr0, erfangnu

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

@BaseMax
BaseMax merged commit d35c1fe into main Nov 25, 2026
18 of 19 checks passed
@BaseMax
BaseMax deleted the ci/split-release-job branch November 25, 2026 22:11
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