fix(e2e): separate PR verdict from controller status#6819
Conversation
|
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 (1)
📝 WalkthroughWalkthroughThe E2E PR gate validates workflow conclusions, PR snapshots, and exact-diff check states. Closed or retargeted PRs are treated as obsolete, affected checks are failed, stale E2E dispatches are avoided, and lifecycle tests and documentation cover the updated behavior. ChangesExact-diff E2E gate
Estimated code review effort: 4 (Complex) | ~45 minutes Sequence Diagram(s)sequenceDiagram
participant WorkflowRun
participant PRGateController
participant GitHubChecks
participant E2EWorkflow
WorkflowRun->>PRGateController: Start with CI result and revision
PRGateController->>GitHubChecks: Validate PR snapshot and exact-diff check
PRGateController->>E2EWorkflow: Dispatch E2E for current revision
E2EWorkflow->>PRGateController: Return workflow status and conclusion
PRGateController->>GitHubChecks: Complete exact-diff check
Suggested labels: Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
Code Coverage OverviewLanguages: TypeScript TypeScript / code-coverage/pluginThe overall coverage remains at 96%, unchanged from the branch. TypeScript / code-coverage/cliThe overall coverage in the branch remains at 79%, unchanged from the branch. Show a code coverage summary of the most impacted files.
Updated |
PR Review Advisor — InformationalAdvisor assessment: Informational / high confidence Model lanes
Nemotron is a non-blocking second opinion. Its prose, findings, and E2E guidance do not change the primary assessment above and remain in workflow artifacts only. E2E guidanceAdvisory only: coverage and selector recommendations are non-authoritative. E2E / PR Gate independently computes and dispatches trusted jobs without consuming this output. Recommended coverage:
This is an automated, non-authoritative review. Findings are inputs to maintainer adjudication. Warnings and optional suggestions do not require a response or follow-up. A human maintainer makes the final merge decision. |
Summary
GitHub attaches the trusted
workflow_runcontroller to the default-branch workflow SHA. Previously, expected negative PR outcomes updated the exact-diffE2E / PR Gatecheck to failure and then threw, so the controller job onmainalso went red. This change lets the controller succeed after it reliably publishes a failed PR-scoped verdict, while malformed state, provenance mismatches, and API or check-publication failures still fail the controller.Related Issue
Part of #6145
Changes
Type of Change
Quality Gates
Verification
Verifiedin GitHubpre-commit,commit-msg, andpre-pushhooks passed, ornpm run check:diffpassed when hooks were skipped or unavailablenpx vitest run --project integration test/pr-e2e-gate.test.ts test/pr-e2e-gate-lifecycle.test.ts test/pr-e2e-gate-exceptions.test.ts test/pr-e2e-gate-workflow.test.ts(96 passed)npm run docsbuilds without warnings (doc changes only)Signed-off-by: Charan Jagwani cjagwani@nvidia.com
Summary by CodeRabbit