Repository navigation
fix(publish): bound state fetch retries - #704
Closed
brokemac79 wants to merge 1 commit into
Closed
brokemac79 wants to merge 1 commit into
brokemac79 wants to merge 1 commit into
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.
Live incident evidence
Dashboard snapshot supplied during CSW-048 at 15:06: 146 pending, 32/32 active, +105 pending per hour, and −104 net publications per hour.
Summary
Bound all ClawSweeper publisher
git fetchcalls to 60 seconds and classify an elapsed fetch as a retryable GitHub-transient publication failure.Problem
CSW-048 found publisher workers stuck indefinitely in state-repository
git fetchafter review artifacts had already been generated. This exhausted publication capacity, leaving final review comments and labels pending across both PRs and issues. The affected run foropenclaw/openclaw#111381stopped immediately aftergit fetchin publication; the dashboard showed 54 pending results and a falling net publication rate.Implementation
GitCommandTimeoutError.retryable_failure/github_transient, preserving the durable queue's existing backoff and capacity-control behavior.Validation
All passed.
actionlintis unavailable on this host. The full workflow test file had five baseline failures because this Windows host'sbashresolves to a WSL distro without/bin/bash; its remaining 61 checks passed, including the publisher workflow test above.Docker-backed Crabbox proof
The Linux proof ran the new elapsed-command timeout regression, the all-publisher-fetches bounded-helper guard, and the exact publisher workflow handoff test. The one-shot container was stopped automatically after the successful run.
Codex review closeout
Initial review found two accepted P1 gaps: timeout swallowing inside the local publisher retry loop and an unbounded fetch after a rejected state push. Both were fixed.
Both final reviews completed cleanly with no accepted or actionable findings.
Risk and rollout
This does not make a failed state refresh succeed; it prevents one from holding a publisher worker for up to the 60-minute workflow limit. A timed-out fetch is requeued through the existing durable retry and capacity-control path, so recovery can resume when the underlying GitHub transport/state-repository condition clears. No gate, permission, or target-side mutation behavior changes.