Skip to content

publish: the registry PR step survives main moving mid-publish - #168

Merged
ronaldtse merged 1 commit into
mainfrom
fix/registry-pr-moved-main
Sep 16, 2026
Merged

ronaldtse merged 1 commit into
mainfrom
fix/registry-pr-moved-main

Conversation

@ronaldtse

Copy link
Copy Markdown
Contributor

The v0.16.24 publish's audit+registry job failed deterministically: #166 merged mid-publish, moving tpkg-registry.yaml on main; the job's in-tree render then aborted git checkout -b … origin/main (Your local changes … would be overwritten), and --failed reruns re-hit the same wall.

Fix: save the render to $RUNNER_TEMP (already done), git checkout -- tpkg-registry.yaml before branching, restore after. The temp copy is the payload either way.

The v0.16.24 registry entries were completed by hand as #167 (rendered from post-#166 main, so the mri upsert rides along).

The render step dirties tpkg-registry.yaml in-tree; the PR step then
branches from origin/main. A mirror PR landing on main while the matrix
builds (e.g. the mri upsert during v0.16.24) aborts the checkout — the
in-tree render differs from both HEADs — and every --failed rerun hits
the same wall deterministically. Save to temp, discard the dirty tree,
branch, restore: the temp copy is the payload either way.
@ronaldtse
ronaldtse merged commit 15cacf9 into main Sep 16, 2026
33 checks passed
@ronaldtse
ronaldtse deleted the fix/registry-pr-moved-main branch September 16, 2026 09:29
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