Repository navigation
test(e2e): select messaging and Shields runtime proofs - #10536
Conversation
Signed-off-by: Charan Jagwani <[email protected]>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (3)
🚧 Files skipped from review as they are similar to previous changes (3)
Included review availability: Your plan provides up to 12 included reviews per hour; 11 remain after this review. 📝 WalkthroughWalkthroughThe risk plan now maps messaging, Hermes, OpenClaw, and Shields runtime changes to focused E2E jobs. Tests validate job selection, managed-policy expectations, runtime proofs, and the updated plan version. ChangesRuntime risk-plan selection
Estimated code review effort: 3 (Moderate) | ~20 minutes Merge Risk: ⚪ Minimal · up to This change updates E2E proof selection and its regression coverage without changing production runtime behavior. No actionable merge-blocking risk remains beyond normal checks and review. Sequence Diagram(s)sequenceDiagram
participant ChangedFiles
participant RiskPlanMatcher
participant RequiredJobSelection
participant WorkflowPlanner
ChangedFiles->>RiskPlanMatcher: provide changed runtime files
RiskPlanMatcher->>RequiredJobSelection: return matched runtime categories
RequiredJobSelection->>WorkflowPlanner: provide required E2E jobs and matched files
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
Comment |
|
PR Review Advisor finished for commit |
|
Note GitHub couldn't provide a complete incremental comparison for this pull request, so CodeRabbit is performing a full review instead. This review may take a little longer. |
rsliter
left a comment
There was a problem hiding this comment.
Reviewed 5e27fd0 against 8708e19. The risk planner now maps production messaging, startup, and Shields inputs to their focused live proof lanes, while the workflow tests verify the resolved target matrices and avoid treating the aggregate selector as a runnable job. Linked #10153 and #10155 establish the observed gaps, no competing open implementation exists, CodeRabbit and Advisor are clear, every required check passes, and the security review found no weakening of the trusted E2E selection boundary.
## Outcome Improve PR Review Advisor specialist investigation quality using independently selected prompt variants from three model-backed historical-PR A/B rounds. ## Reason The clean benchmark showed that broad prompts could attribute inherited defects to a PR, miss incomplete immutable-pin migrations, and conflate producer or rejection tests with positive consumer proof. ## Changes - Require changed-file, parent-state, consumer, and contract causality. - Narrow architecture ownership and add migration-completion and reduction-simplification specialists. - Adopt independently selected delivery, documentation, and verification prompts. - Preserve tracked internal symlinks in local snapshots while removing escaping links; direct patching could not preserve this security boundary and valid transitions together. - Protect snapshot behavior with internal-link and escaping-to-internal retarget regression coverage. ## Verification - CLI and plugin builds — passed. - `npm run typecheck:cli` — passed. - `npm run checks:repository` — passed. - Focused integration tests — 47/47 passed. - Diff whitespace check — passed. - Independent documentation review — PASS. - Three A/B rounds on #10659, #10536, and #10618 with `azure/openai/gpt-5.6-terra` — completed. - No secrets, API keys, or credentials are present in the diff. ## Review notes This draft is stacked on #10813. Output length and finding count were not selection criteria; prompts were selected independently for factuality, recall, causality, calibration, and remedies. --- Signed-off-by: Carlos Villela <[email protected]> Signed-off-by: Carlos Villela <[email protected]>
Outcome
Messaging and Shields runtime changes now select their focused branch E2E proof lanes. Production changes that leave the live test files untouched can no longer fall through to only the generic risk plan.
Reason
PR #10480 protects fast-test parity when a live E2E test changes, but recent regressions in #10153 and #10155 came from production runtime changes. The live test files did not change, so that guard could not select the missing messaging and Shields proof.
Related issues
Relates to #10153
Relates to #10155
Changes
The existing trusted risk planner is the current PR workflow consumer. Extending that source ownership directly is necessary because a live-test parity rule cannot observe production-only changes.
Verification
npm run build:cli— passednpm run typecheck:cli— passed after rebasing onto currentmainnpx vitest run --project integration test/automation/pull-requests/pr-risk-plan.test.ts --testTimeout 60000— 154 passed after rebasing onto currentmainnpx vitest run --project e2e-support test/e2e/support/workflow-plan.test.ts --testTimeout 60000— 88 passed after rebasing onto currentmaingit diff --check— passedVerifiedwith a valid signatureReview notes
This changes the trusted E2E selection control plane, not production runtime behavior. Regression tests verify both the selected risk jobs and their resolved workflow lanes.
The default 5-second test timeout was too short for several subprocess-based workflow-plan cases under local machine load. Re-running the same full file with a 60-second timeout passed all 88 tests; required CI remains the merge gate.
Signed-off-by: Charan Jagwani [email protected]
Summary by CodeRabbit
Tests
Chores