Repository navigation
fix(publish): avoid global throttle on state fetch timeout - #713
Merged
Merged
Conversation
Contributor
Author
|
@clawsweeper review |
Contributor
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
This was referenced Jul 20, 2026
azaj01
pushed a commit
to azaj01/clawsweeper
that referenced
this pull request
Sep 21, 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.
Summary
Keep a bounded local state-checkout fetch timeout retryable without treating it as evidence of GitHub API pressure. This prevents one publisher timeout from lowering capacity for every issue and PR publication.
Problem and causal proof
At
2026-07-20T07:02:01Z, the durable publication queue recordedlast_failure_kind=github_transient, entered a cooldown, and lowered its pressure ceiling after a publisher run timed out inhardResetToRemoteMain -> fetchPublishRemote:GitCommandTimeoutError: git fetch timed out after 60000ms.failure_kind=github_transient.The workflow already has an explicit GitHub-pressure probe that emits
failure_kindonly for HTTP 429, API rate-limit, or HTTP 5xx evidence. This change leaves that path intact and removes the conflicting local-timeout assertion.CSW-049 also investigated #712, authored by Peter Steinberger. It was merged at
2026-07-20T06:04:34Z, after the new publication backlog had already grown from 0 to 10 at05:50:56Z, 21 at05:55:56Z, and 30 at06:00:56Z. Parent-SHA run 29720024571 had started losingclawsweeper-statepush races at05:53:08Z. #712 is therefore not reverted here; it did not start this incident, and a revert would restore its missing-state-object failure.Implementation
retryable_failure,github_transientreason code, fingerprint, and normal publication retry behavior forGitCommandTimeoutError.failure_kindfor that local timeout.failure_kind.Validation
git diff --checkDocker-backed Crabbox local-container, lease
cbx_10587a86449e:Result: build passed; 2 passed, 0 failed.
codex review --uncommitted— clean, no accepted/actionable findings.git fetch origin main --prune && codex review --base origin/main— clean, no accepted/actionable findings.Normal
@clawsweeper reviewcompleted in run 29726050754. Its directly inspected artifact reports high confidence, zero findings, a sufficient terminal proof, andkeep_openfor ordinary maintainer review. The publisher incident prevents the expected PR comment from being delivered; no dispatcher, retry, or gate was invoked to work around that.Remaining review rank-up: let normal checks complete, with particular attention to coverage that keeps explicit HTTP 429/rate-limit/5xx pressure as the sole capacity-throttling signal.
Baseline noise: running the full
test/sweep-workflow.test.tsfile in the Linux Docker container also exposes existing CRLF failures inscripts/apply-workflow-helpers.shand unrelated fixture assertions. The two affected tests passed in the same container after the full TypeScript build.Risks and rollout
This does not make state fetches succeed; it keeps their existing bounded retry behavior while preventing a local checkout failure from suppressing unrelated targets. Real GitHub API pressure still reaches the capacity controller through the workflow's explicit HTTP/rate-limit probe. Watch publication pending depth,
last_failure_kind, and net drain rate after deployment; no gate changes, queue resets, dispatches, or retries are included.Attribution
Incident evidence and #712 attribution are preserved above. This patch specifically corrects the timeout-to-capacity-feedback contract introduced by #707.