Skip to content

release(1.6.1): check out the dispatch ref in the PyPI publish workflow - #1594

Merged
rand-lee merged 1 commit into
mainfrom
release/pypi-checkout-1.6.1
Sep 24, 2026
Merged

rand-lee merged 1 commit into
mainfrom
release/pypi-checkout-1.6.1

Conversation

@randlee

@randlee randlee commented Sep 24, 2026

Copy link
Copy Markdown
Owner

Publish PyPI run 36017176129 for v1.6.1 failed in Select and verify Python distributions with the pre-#1592 error text, although #1592 was on main. Both jobs of pypi-publish.yml check out ref: ${{ inputs.tag }}, so the workflow ran the copy of release_artifacts.py frozen at tag v1.6.1 (commit 1272d4c). The release is immutable, so the tag cannot move, and no fix on main can ever reach this workflow while it pins its checkout to the tag.

Cause. atm-core's 1.6.0 copy of this workflow carried the v1.4.4 release-branch fix for exactly this (sc-publish#76): check out the dispatch ref, because the workflow never builds from source and the checkout exists only to supply the verify tooling and the manifest. The phase-bc kit re-render (b381e09) restored the tag pin. Same story as #1591 and #1592.

Fix, consumer-side only. Remove with: ref: ${{ inputs.tag }} from both checkout steps. The release assets are still downloaded by tag; only the tooling comes from the dispatched commit, which is the model release.yml already uses.

Retry. The publisher re-dispatches Publish PyPI from main with tag=v1.6.1, target=production. Nothing was uploaded by the failed run, so all three distributions publish fresh. crates.io, the GitHub Release, Homebrew, Scoop and Winget are complete and are not re-run.

🤖 Generated with Claude Code

Publish PyPI run 36017176129 checked out the immutable tag v1.6.1 and ran
that commit's release_artifacts.py, reproducing the sdist rejection that
#1592 fixed on main. The workflow never builds from source; the checkout
only supplies the verify tooling and the manifest, so it must come from the
dispatched commit (sc-publish#76, the v1.4.4 fix the phase-bc re-render
dropped). Release assets are still downloaded by tag.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@randlee
randlee requested a review from rand-lee September 24, 2026 17:17
@rand-lee
rand-lee merged commit ca366d7 into main Sep 24, 2026
22 checks passed
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