Repository navigation
Sleep Through an Attest Alias and State the Refusal Ordering in the Wait README - #2942
Conversation
…ait README Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
A recorded local strict-review pass covers head |
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configuration
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 |
There was a problem hiding this comment.
🟢 Approval recommended
Only a minor documentation nit remains; no blocking issues were identified.
1 open finding
What changed in this PR
This PR isolates attestation sleep timing from subprocess polling and clarifies wait refusal ordering.
Changes:
- Adds a dedicated attestation sleep alias and updates tests.
- Documents refusal ordering with
--min-rounds.
| File | Summary |
|---|---|
tests/test_pr_review.py |
Patches attestation-specific sleeps. |
scripts/README.md |
Documents refusal ordering. |
scripts/pr_review.py |
Uses the dedicated sleep alias. |
🧠 Review effort: Lite
💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #2942 +/- ##
========================================
Coverage 59.96% 59.96%
========================================
Files 17 17
Lines 8777 8778 +1
========================================
+ Hits 5263 5264 +1
Misses 3514 3514
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
…nd Attest Sleep Alias to Main (#2950) - #2945 makes `gh-write-guard` fail closed on the push shapes it could not read: a push inside an `eval`/`source` argument, a quoted command handed to `bisect run` or `submodule foreach`, a here-string or attached `-c` wrapper body, a `-c`/`--config-env` override on a push, a bare push inside a wrapper body or after a head-moving command, `HEAD`/`@`/`:` destinations, and `--admin` inside a wrapper. It also denies a mutating git command whose `-C`, `--work-tree`, `--git-dir`, `GIT_DIR=`, or leading `cd` holds a `..` component. A differential over 1043 commands found no command the new guard allows that the previous one denied. The over-denials it introduces are listed in that pull request with their workarounds, and the shared gaps outside both issues are tracked on #2943 - #2944 hardens `tests/test_cli_usage.py`: the unknown-flag case must see the flag itself refused, the help case must open on a usage line naming the script, the tree check sees ignored paths and empty directories, every config home is redirected, detached grandchildren are found through `/proc`, extensionless shebang CLIs are discovered, and PowerShell entry points run natively on Windows. `repo-config/configure.sh` passes `--` before a name - #2942 sleeps through an alias in `pr_review.py`'s attest head wait, so the `TestAttest` timing tests no longer record subprocess polling sleeps, and states in `scripts/README.md` when a genuine review outranks a refusal on the same head - #2952 answers this promotion's first review round: the guard reads every `-c`/`--config-env` spelling and `--attr-source`, judges a head move per push (scanning the whole command where a pipe, background job, loop, or fused redirection can reorder it), stops reading a lone `:` as a deletion, and the CLI usage gate sets aside only the host's own PowerShell startup cache. Three precision findings from the second round, each a broader deny rather than a new allow, are deferred to #2953 Closes #2824 Closes #2831 Closes #2932 Closes #2934 Closes #2936 🤖 Generated with [Claude Code](https://claude.com/claude-code)

await_registered_headnow sleeps through a module-level_attest_sleep = time.sleepalias, andTestAttestpatches that alias, so the recorded sleeps no longer include the subprocess wait loop's owntime.sleepcalls. Assertions stay exact. No other test in the file patchestime.sleeparound a real subprocess; the other patches wrap mocked reads.time.sleepdirectly and the test patching the alias,TestAttestfails 3 of 13. With the fix, 30 runs ofTestAttestunder one busy loop per CPU all pass, and the fulltests.test_pr_reviewsuite passes.waitexit41sentence inscripts/README.mdnow says a genuine review of the head outranks a refusal only where it is the newer of the two or the round a--min-roundsbaseline waited for, matchinghead_review_doneandrefusing_review.Closes on promotion: #2934, #2824
🤖 Generated with Claude Code