Repository navigation
fix(publish): bound stalled state fetches - #707
Merged
Merged
Conversation
(cherry picked from commit 66b82c9)
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
This was referenced Jul 20, 2026
azaj01
pushed a commit
to azaj01/clawsweeper
that referenced
this pull request
Sep 21, 2026
* fix(publish): bound state fetch retries (cherry picked from commit d984984) * test(publish): prove stalled fetch timeout wiring --------- Co-authored-by: brokemac79 <[email protected]>
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.
Incident
#700 introduced server-side immutable-ledger merges and #701 enabled that path under checkout v7. The resulting merge-heavy
clawsweeper-state/statehistory caused depth-1 publisher checkouts to stall in latergit fetchcalls and exhaust all publication slots.#705 stopped creating new server-side ledger merges. That restored some throughput, but historical merge ancestry still leaves new-head publishers stuck in
Publish event result; for example:Other publishers on the same
c48d3e0workflow head complete, so the remaining failure is an unbounded fetch holding a capacity slot, not a total state outage.Fix
GitCommandTimeoutError, including fetches whose caller otherwise allows ordinary Git failures.retryable_failure/github_transientso the durable queue owns backoff and retry.This carries forward the useful implementation from the now-closed #704. Commit authorship remains with
brokemac79; the follow-up regression proof was added on a separate commit after the base moved.Deterministic local proof
The regression uses Git's local
exttransport to stall a realgit fetchduring protocol negotiation without GitHub or timing races. It proves:spawnGitmarks the elapsed fetch as timed out.runGitthrowsGitCommandTimeoutErroreven withallowFailure.git fetch origin statewith the production 60,000 ms timeout before any state reset.Validation
pnpm run check: passed.clawsweeper-automerge-e2e-base:local(Node 24.15.0, Git 2.39.5): 4 passed, 0 failed.origin/main..HEAD: no leaks.