Make the TLS pin checkout self-healing: skip needless fetches, re-clone on failure - #33
Merged
Conversation
lann
added a commit
that referenced
this pull request
Aug 6, 2026
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.
Fixes #32
Every CI run today fails in
build-tls-component. Two problems compound:non-tip commits, and polymorph-tls
mainmoved past the pin thismorning. Actions runners are refused consistently
(
upload-pack: not our ref 23ceddad…) while the same fetch succeedselsewhere.
target/deps/component-tlsis restored from therust-cache-managed
target/cache, and comes back with a mangledobject store (
fatal: unable to read tree,bad object refs/heads/main): refs claim history the store no longer holds. Abranch fetch cannot heal that — negotiation believes the objects are
already present — so no fetch strategy suffices.
The recipe now treats the checkout as disposable build territory:
(always true in a fresh clone, since the pin policy keeps revs
reachable from upstream branches).
re-clone, and check out again. A branch clone involves no SHA wants,
so it works on the refusing endpoints too.
Verified locally on all three paths: a fresh clone (no fetch), a stale
checkout parked on
origin/main(checked back out without network),and a corrupted store (deleted
.git/objects/pack, refs intact) whichreproduced CI's failure signature and healed via the re-clone; the
component builds in each, and a second invocation is a no-op.
Unblocks #31, whose conformance job fails on this at build time.