Skip to content

ci(release-stage): also gate roas-cli jobs on the tag - #233

Merged
SVilgelm merged 1 commit into
mainfrom
fix/release-stage-tag-gate
Jul 28, 2026
Merged

ci(release-stage): also gate roas-cli jobs on the tag#233
SVilgelm merged 1 commit into
mainfrom
fix/release-stage-tag-gate

Conversation

@SVilgelm

Copy link
Copy Markdown
Member

RoasCliBuild, DockerImageSmokeTest, RoasCliExtras, and AttachRoasCliBinaries were gated only on contains(fromJSON(needs.Checks.outputs.publish), 'roas-cli'). That output lists every crate whose version differs from crates.io, not the crate being tagged — so a PR that bumps several crates at once (#229 bumped all six) leaves roas-cli in the list for all of the resulting tags, and the roas-cli binary jobs run on non-cli tags too.

On such a tag the version extraction is a no-op:

${GITHUB_REF#refs/tags/roas-cli/v}   # ref is refs/tags/roas/v0.17.3 -> nothing stripped
archive="roas-refs/tags/roas/v0.17.3-x86_64-unknown-linux-gnu.tar.gz"
tar: Cannot open: No such file or directory

That took down the release-stage runs for roas/v0.17.3, roas-overlay/v0.2.2, roas-arazzo/v0.1.2, roas-file-fetcher/v0.1.2, and roas-http-fetcher/v0.2.2. Checks and DraftRelease passed in all five, so the drafts themselves were unaffected.

This keeps the existing publish check and adds startsWith(github.ref, 'refs/tags/roas-cli/v') next to it, so both have to hold. The bug was latent until now because crates were previously bumped one per PR, leaving a single entry in publish.

Checks.outputs.publish lists every crate whose version differs from
crates.io, so a PR bumping several crates at once leaves roas-cli in that
list for all of the resulting tags. The roas-cli binary jobs then ran on
non-cli tags, where the version strip is a no-op and tar fails on the
ref's slashes. Add the tag check alongside the existing publish check.

Assisted-By: Claude Opus 5 (1M context)
Signed-off-by: Sergey Vilgelm <sergey@vilgelm.com>
Copilot AI review requested due to automatic review settings July 28, 2026 05:14

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@SVilgelm
SVilgelm enabled auto-merge (squash) July 28, 2026 05:14
@SVilgelm
SVilgelm merged commit c61ab63 into main Jul 28, 2026
68 of 72 checks passed
@SVilgelm
SVilgelm deleted the fix/release-stage-tag-gate branch July 28, 2026 05:17
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.

2 participants