Repository navigation
feat(workflow): detect smoke-tag immutability tombstone and fail with the real cause - #1321
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Lesson from the 1.5.0 ghost (#1301): under org-enforced release immutability, deleting a published release permanently tombstones its tag name. The workflows reported this state misleadingly — the downstream publish died with a generic "Failed to push tag" / raw
gherror, and devkit's promote gate advised "wait for the smoke-test workflow to publish its final release, then retry", which is futile when the tag can never be re-published. This PR makes both surfaces name the real cause: version burned — re-cut required.Type of Change
feat-- New featureChanges Made
assets/workspace/.github/workflows/release-publish.yml(template, ships to consumers incl.devkit-smoke-test):GH013/ "creations restricted" rejection is diagnosed as a tombstoned tag name with a burned-version message and runbook URL, instead of falling through to the generic push error.gh release createbranches (identical except--prerelease) are folded into one args-array invocation whose failure output gets the sameGH013diagnosis..github/workflows/promote-release.yml(devkit): the cross-repo gate's no-downstream-release error now names the tombstone as a possible cause (with theGH013signature to look for in the smoke-test release run) and points at the runbook. The gate itself cannot distinguish a tombstone from a not-yet-published draft — both are a 404 on/releases/tags/:tag— which is why the authoritative detection lives at the creation sites.tests/test_release_tombstone_detection.py(RED committed first per TDD) pinning theGH013detection in both template steps and the gate message.Changelog Entry
Added
release-publish.ymltemplate now recognizes theGH013"creations restricted" signature on tag push and release creation — the mark of a tag name permanently retired because its published release was deleted under org-enforced immutability — and fails with a "version burned — re-cut required" diagnosis instead of a generic push/create error.promote-release.ymlcross-repo gate no longer only advises "wait and retry" when no downstream release exists: it names the tombstone as a possible cause and points at the point-of-no-return runbook.Testing
tests/test_release_tombstone_detection.py: 4 failing tests committed first (RED), all green after implementationtest_release_tag_prefix,test_promote_mergeability,test_scaffold_lint(caught an unshipped-path reference — doc pointer rewritten to absolute URL),test_scaffold_drift,test_workflow_model,test_floating_tags,test_release_core_*,test_transforms— 135 passedjust precommitgreen on all filesManual Testing Details
The live
GH013path is only provable on a real tombstone; the tests pin the script shape. The template change reachesdevkit-smoke-testat the next devkit release + re-scaffold, so it ships dormant until then.Checklist
CHANGELOG.mdin the[Unreleased]section (and pasted the entry above)Additional Notes
Devkit's own
release.ymltag push (release.yml:982) has the same theoretical exposure, but devkit's 1.5.0 draft was never published so it was not tombstoned in the incident; left out per issue scope — can file a follow-up if wanted.Closes #1319
Refs: #1319
https://claude.ai/code/session_01MiPJmV8hXX6RPiggZAMZwg