Skip to content

ci(release-pipeline): don't pin publish to nonexistent tag in fresh-bump dry-run#173

Merged
d-laub merged 1 commit into
mainfrom
fix/publish-no-tag-in-fresh-bump-dryrun
May 21, 2026
Merged

ci(release-pipeline): don't pin publish to nonexistent tag in fresh-bump dry-run#173
d-laub merged 1 commit into
mainfrom
fix/publish-no-tag-in-fresh-bump-dryrun

Conversation

@d-laub
Copy link
Copy Markdown
Collaborator

@d-laub d-laub commented May 21, 2026

Bug

Run 26255604817 (fresh-bump dry-run, after #172 merged) failed in publish: every wheel job's actions/checkout could not resolve ref: v0.25.0 because the projected tag never exists on the remote in a dry-run (the real bump was skipped, as designed).

Fix

In release-pipeline.yaml, only pass the tag to publish when it's guaranteed to exist:

  • Real release (dry_run=false): pass tag — the bump just created it.
  • Dry-run + skip_bump=true: pass tag — the user supplied an existing tag, already validated by resolve.
  • Dry-run + fresh-bump (skip_bump=false): pass '' — publish.yaml falls back to the caller's ref (main).

This is the last known dry-run gap. The recovery-path dry-run continues to pin to the supplied tag, validating the tag-pinning code path.

Test plan

  • After merge, re-dispatch with increment=auto, dry_run=true and confirm all wheel jobs succeed.
  • Confirm the next skip_bump=true dry-run still pins to the supplied tag (e.g. v0.24.1).

The projected tag does not exist on the remote during a fresh-bump
dry-run (real bump was skipped), so passing it to publish.yaml causes
'actions/checkout' to fail. Fall back to the caller's ref (main) in
that case. Real releases and dry-run + skip_bump still pin to a real
tag.
@d-laub d-laub merged commit 04b47f8 into main May 21, 2026
5 checks passed
@d-laub d-laub deleted the fix/publish-no-tag-in-fresh-bump-dryrun branch May 21, 2026 22:05
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