Skip to content

ci(release): check out the tag in real mode#175

Merged
d-laub merged 1 commit into
mainfrom
fix/release-checkout-tag
May 22, 2026
Merged

ci(release): check out the tag in real mode#175
d-laub merged 1 commit into
mainfrom
fix/release-checkout-tag

Conversation

@d-laub
Copy link
Copy Markdown
Collaborator

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

Bug

Real-release run 26256735180 failed at the release job. The Extract changelog section step couldn't find ## v0.25.0 because actions/checkout had no ref: — so it checked out the orchestrator's dispatch commit, which is the parent of the bump commit just pushed by the bump job. The changelog at that point doesn't have the v0.25.0 section yet.

State after the failed run

  • main: advanced with the bump commit (v0.25.0 written to pyproject + changelog)
  • Tag v0.25.0: pushed to remote
  • GH release: not created
  • PyPI: not published (publish skipped because release failed)
  • stable: not pushed (merge skipped)

Fix

Pin release.yaml's checkout to inputs.tag in real mode. In dry-run the tag doesn't exist on the remote; fall back to the caller's ref (the dry-run code path already tolerates a missing changelog section with a placeholder).

Recovery after merge

```
gh workflow run release-pipeline.yaml --ref main \
-f skip_bump=true -f tag=v0.25.0 -f dry_run=false
```

This goes resolve → (skip bump) → release → publish → merge. The bump is already done; we just need to finish the rest against the existing tag.

Test plan

  • After merge, dispatch the recovery command above and confirm GH release v0.25.0 is created, wheels publish to PyPI, and main → stable merge happens.

The release job's actions/checkout had no ref, so it pulled the
orchestrator's dispatch commit — the PARENT of the bump commit pushed
seconds earlier. The changelog at that ref does not yet contain the
new version's section, so the awk extractor errored.

Pin checkout to inputs.tag in real mode (where the bump commit
created the tag). In dry-run the tag does not exist; fall back to the
caller's ref.
@d-laub d-laub merged commit 95341a5 into main May 22, 2026
5 checks passed
@d-laub d-laub deleted the fix/release-checkout-tag branch May 22, 2026 02:12
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