Skip to content

ci: fetch release tag into frozen-SHA checkouts for local verification - #2

Merged
dbowm91 merged 1 commit into
mainfrom
fix/fetch-release-tag-in-sha-checkouts
Oct 11, 2026
Merged

dbowm91 merged 1 commit into
mainfrom
fix/fetch-release-tag-in-sha-checkouts

Conversation

@dbowm91

@dbowm91 dbowm91 commented Oct 11, 2026

Copy link
Copy Markdown
Contributor

First live dispatch of the M003k workflow (dbowm91/wg-basic release-eggpack run 38112750263, tag v0.1.0) failed in resolve: jobs check out by frozen SHA with fetch-tags disabled, so refs/tags/ is absent and _resolve-release / _verify-source --expected-tag fail closed. Producer unit tests never caught it because local repos carry tags.

This change makes checkout_snippet emit a fetch-and-peel-assert step after each frozen checkout when a staging policy exists. Tag arrives via env only; binding is peel == frozen SHA. Goldens regenerated via m003b_regenerate_goldens; m003c now asserts fetch/frozen pairing. Full scripts/check-local.sh green locally.

First live dispatch (dbowm91/wg-basic release-eggpack run 38112750263)
failed in resolve: every job checks out by frozen SHA with fetch-tags
disabled, so refs/tags/<tag> is absent and _resolve-release /
_verify-source --expected-tag fail closed with 'source tag does not
resolve to release plan revision'. Unit tests never caught it because
local repos carry tags.

checkout_snippet now emits 'Fetch release tag for local verification'
after each frozen checkout when a staging policy exists: validate the
tag ref shape, fetch exactly that tag ref, and assert it peels to the
frozen revision before Eggpack runs. Tag value arrives via env only;
no workflow expression in the run body. Goldens regenerated via
m003b_regenerate_goldens; m003c asserts fetch/frozen pairing.
@dbowm91
dbowm91 merged commit a0fec98 into main Oct 11, 2026
8 checks passed
dbowm91 pushed a commit to dbowm91/wg-basic that referenced this pull request Oct 25, 2026
First live v0.1.0 dispatch failed closed in resolve: frozen-SHA
checkouts never fetch tags while the tool requires the tag locally.
Producer fix (eggstack/eggpack@a0fec98, PR eggstack/eggpack#2, CI 8/8)
fetches the exact tag and peel-asserts it to the frozen SHA.
Sanctioned regenerate (ci check: match), all release fixtures green.
v0.1.0 tag source unchanged; re-dispatch from fixed main.
@dbowm91
dbowm91 deleted the fix/fetch-release-tag-in-sha-checkouts branch November 13, 2026 23:44
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