fix(custodian-sweep): raise per-repo timeout from 120s to 180s - #301
Merged
ProtocolWarden merged 1 commit intoJun 15, 2026
Merged
Conversation
Owner
Author
|
Needs human attention (reason= Auto-rebase onto the base branch hit a real code conflict (beyond the union-merged journal). Manual rebase required. |
1 similar comment
Owner
Author
|
Needs human attention (reason= Auto-rebase onto the base branch hit a real code conflict (beyond the union-merged journal). Manual rebase required. |
Owner
Author
Auto-rebase onto the base branch hit a real code conflict (beyond the union-merged journal). Manual rebase required. |
OC custodian-audit runs ~94s under light load but consistently exceeds 120s when the sweep is running parallel jobs. The timeout caused the sweep to emit `custodian-audit timed out (>120s)` for OperationsCenter each cycle even though the audit itself reports 0 findings. 180s gives the OC audit a safe margin even under concurrent sweep load. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
ProtocolWarden
force-pushed
the
oc-watchdog/20260614-1818-c29-service-py-exclusion
branch
from
June 15, 2026 06:21
d8d3b0f to
cce816b
Compare
ProtocolWarden
deleted the
oc-watchdog/20260614-1818-c29-service-py-exclusion
branch
June 15, 2026 06:22
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
custodian-audit timed out (>120s)for OperationsCenter every cycle, even though the audit reports 0 findingsRoot cause
OC is the largest managed repo; its audit is CPU-bound across many detectors. Under parallel sweep load, scheduling contention pushes it past 120s. The fix in PR #297 (service.py C29 exclusion) reduced audit time but not enough to reliably stay under 120s.
Test plan
tests/test_custodian_sweep.py(11/11 pass — imports_DEFAULT_TIMEOUT_SECONDSdirectly, no hardcoded value)tests/unit/er000_phase0_golden/(15/15 pass)🤖 Generated with Claude Code