Repository navigation
test(pr-review): fail when the lanes' bubblewrap install scripts differ - #811
Conversation
Add a test comparing the "Install subprocess isolation" run script in pr-review.yml and pr-review-security.yml, and name sandbox-unavailable in the README's red-status class list. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Claude finished @kyle-sexton's task in 1m 41s —— View job Code review complete
No blocking or advisory findings. What I checked:
claude-lane-summary: lane=claude-review sha=e5ca076813d37da14735a72258d5dc5cb9414f79 run=39479877642 |
|
Claude finished @kyle-sexton's task in 31s —— View job Security review complete
Scope: Findings: none.
No inline comments were needed. claude-lane-summary: lane=claude-security-review sha=e5ca076813d37da14735a72258d5dc5cb9414f79 run=39479877642 |
|
claude-security-review has reviewed this pull request through e5ca076; a later push is reviewed from there. |
|
claude-review has reviewed this pull request through e5ca076; a later push is reviewed from there. |
…ed in status (#813) Closes #657 ## Summary When a review step fails without leaving an execution file, and it neither timed out nor failed its Bun install, the lane reported `other`, and the status step printed "an unclassified failure". That case now gets its own class, `no-execution`. Both lanes' status steps also gain an arm for `install-failed`, which the classifier could already return but the status steps did not handle by name. ## Fix - `.github/actions/report-lane-outcome/classify.cjs`: with no execution file, the class is `timeout`, then `install-failed`, otherwise `no-execution`. An execution file that exists but cannot be parsed still classifies as `other`, which is outside this issue's scope. The class list in the header comment now includes `no-execution`. - `.github/actions/report-lane-outcome/action.yml`: the `execution-file` input description and the `failure-class` output description now name `no-execution`. - `pr-review.yml` and `pr-review-security.yml`: - the status steps get `install-failed)` and `no-execution)` case arms, placed before `*)`. Both fall through to the existing `exit 1`. - the `failure-class` output descriptions now list `install-failed` and `no-execution`. - `README.md`: the red-status list names `install-failed` and `no-execution`. Only line 1125 changed (one line inserted). - Tests: - `classify.test.cjs`: the existing no-execution-file test now asserts `no-execution`, including with explicit `timedOut: false, installFailed: false`. - `outcome-step.test.cjs`: two assertions that expected `other` for the no-file path now expect `no-execution`. - The existing `timeout` and `install-failed` tests are unchanged and pass. - Effect on other callers: - `run-claude-cli/lane.cjs` also calls `classifyExecutionFile`. A CLI leg that leaves no file and did not time out now reports `no-execution`. Its summary note falls back to the `other` note. - `intake-triage.yml`'s status allowlist maps any unknown class to `other`, so intake output does not change. - No step timeout was changed: `pr-review-security.yml:613` is still `timeout-minutes: 13`. ## Verification - `node --test .github/scripts/*.test.cjs`: 471 tests, 471 pass, 0 fail. - `node --test .github/scripts/*.test.cjs .github/actions/*/*.test.cjs`: 559 tests, 559 pass, 0 fail. Before the edit, the same command gave 559/559. After the classifier change, 2 `outcome-step` tests failed because they still asserted `other`; they were updated as described above. - `node --test .github/actions/*/*.test.cjs`: 88 tests, 88 pass, 0 fail. - `actionlint .github/workflows/pr-review.yml .github/workflows/pr-review-security.yml`: clean. - `grep -n "timeout-minutes: 13" .github/workflows/pr-review-security.yml`: line 613. ## Related - #811 (issue #761) adds `sandbox-unavailable` to the same README red-status paragraph, on lines 1127-1128. This PR changes only line 1125 and leaves line 1126 untouched, so the two hunks should not overlap. Whichever PR merges second must keep both sets of rows. - #691 added the `install-failed` class. #760 set the security step timeout to 13 minutes. Also related: #795. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Closes #761
Summary
The two review lanes each carry their own copy of the "Install subprocess isolation" step, and nothing asserted they match. The README's red-status list also omitted
sandbox-unavailable, which both lanes report.Fix
.github/scripts/claude-lane-install-isolation.test.cjsasserts therunscript of that step is equal inpr-review.ymlandpr-review-security.yml.README.md: one added entry,sandbox-unavailable, in the red-status class list.Out of scope per the brief: the
intake-triage.ymlcopies, the one-minute cap comment, probe or install behaviour.Verification
node --test .github/scripts/*.test.cjs: 472 pass, 0 fail.sleep 5tosleep 6inpr-review.ymlmade the new test fail (1 fail); reverted.Related
🤖 Generated with Claude Code