test(reliability): bound benchmark Git metadata lookup - #666
Conversation
|
Warning Review limit reached
Next review available in: 1 minute You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
@opencode-agent address Exact bounded GREEN implementation for Draft #666. Immediately before any write, refetch source head Fail-first evidence is valid: CI run Implement only the root-cause fix:
Stop writing if exact head/base or writer state changes. After the final source mutation, leave fresh exact-head CI/Security/SAST/review/Ready/merge to the maintainer loop. |
|
@opencode-agent address Fresh single-writer rebind for Draft #666 after protected The RED history remains diagnostic evidence: the public Run the focused timeout contract first, then applicable full validation on one unchanged source head. If product GREEN, add concise #555 reliability doctoring and an authoritative changelog fragment, render/check managed |
7887a80 to
dd6f981
Compare
996852d to
2685090
Compare
2685090 to
e8440f5
Compare
|
Superseded by unified Git metadata timeout fix PR (see fix/git-metadata-timeouts-unified). |
Reliability defect
Advances #555 with a disjoint local-metadata subprocess slice. Protected
maina7be9eb8ca0b807364173f8471fc300e3cf9350fcallsgit rev-parse HEADinscripts/build_benchmark_report.py::_source_commit()without any deadline and catches all failures as"unknown". A hung local Git metadata child can therefore stall benchmark evidence indefinitely, and a timeout must not be silently converted into successful provenance evidence.Intentional RED
Exact test-only head:
7887a80fe4e251e9f0db92355fcd5b6e0127f16a, directly based on current protected main.tests/test_benchmark_git_metadata_timeout.pyreaches the production_source_commit()boundary withsubprocess.runreplaced by a deterministicTimeoutExpired. It requires:GIT_METADATA_TIMEOUT_SECONDSdeadline in(0, 30];subprocess.run;source commit lookup timed out; andCurrent protected-main code is expected to fail at the actual boundary because it passes no timeout and broadly converts the timeout into
"unknown". Setup/import/fixture/changelog failure is not valid RED.Minimum GREEN after RED proof
subprocess.run(timeout=...).subprocess.TimeoutExpiredexplicitly and raise stable non-reflectiveRuntimeError("source commit lookup timed out")without embedding command/output/path content.git rev-parseoperation does not spawn a package-owned descendant tree; do not add process-group machinery without evidence.CHANGELOG.mdbefore Ready.This slice is intentionally disjoint from #578, which owns ignored Rust scientific-study subprocesses, and from #657, which owns PR-governance GitHub CLI retry behavior. Canonical cross-cutting documentation remains #604/#621. No numerical formula, dependency/workflow, package version/release or reviewer-authority change belongs here.
Keep Draft until RED→GREEN history and all final gates are complete.