Run one x64 job on pull requests; main runs the rest - #923
Conversation
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (2)
Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughChangesCI Matrix Planning
Priority: ⬇️ Low Estimated code review effort: 4 (Complex) | ~45 minutes Change: Other Sequence Diagram(s)sequenceDiagram
participant GitHubEvent
participant skip_check
participant GitHubAPI
participant SelfHostedJobs
GitHubEvent->>skip_check: provide event type and tree
skip_check->>GitHubAPI: query matching PR runs
GitHubAPI-->>skip_check: return completed job names
skip_check->>SelfHostedJobs: emit family matrices and run flags
SelfHostedJobs-->>GitHubEvent: execute planned jobs
Merge Risk: ⚪ Minimal · up to The CI planner preserves the intended PR-plus-main coverage and correctly skips empty job families. No actionable merge risk remains. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches 💡 1🛠️ Fix failing CI checks 💡
📝 Generate docstrings
🧪 Generate unit tests (beta)
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 |
|
@coderabbitai review |
|
skip-check now plans the self-hosted matrix. A pull request gets every arm64 job plus Host-Root-x64-SnapshotEnabled; a push to main runs every job that has not already passed on a PR run of the same tree; other events run the full matrix. host, host-root and container read their matrix from the plan, and the coverage tests run the planner with fake gh and git.
c873f10 to
28581a8
Compare
|
@coderabbitai review |
|
|
@coderabbitai review |
✅ Action performedReview finished.
|
ejc3
left a comment
There was a problem hiding this comment.
NOT-A-DEFECT: CodeRabbit's walkthrough for 28581a8 reports no actionable comments, minimal merge risk and 5 of 5 pre-merge checks passed; it carries no finding. Its one suggestion, "Fix failing CI checks", referred to Host-Root-x64-SnapshotEnabled in run 34783983989 attempt 1, whose runner (i-0cc85225bb0c40d3d, r5d.metal spot) was reclaimed by EC2 (Server.SpotInstanceTermination) mid test-root. The rerun in attempt 2 passed, and every check on this head is green.
Why
Every PR push launched four x64 metal runners: Host-x64, both Host-Root-x64 modes and Container-x64. c5d.metal is the largest runner line item (about $925 of roughly $2,000 in runner spend since 2026-07-22). Three of those four jobs run paths the arm64 jobs already cover on the same PR.
What changes
skip-checknow plans the self-hosted matrix.Host-Root-x64-SnapshotEnabled. That job takes the privileged suite through a snapshot miss and a restore on x86, which is where the arch-specific KVM and vCPU state code lives.host,host-rootandcontainertake their matrix from the plan viafromJSON, and skip when their list is empty.Tests
tests/test_ci_workflow_coverage.rsrun the real planner step with fakeghandgit. They check:cargo fmt --check, clippy and actionlint are clean.Summary by CodeRabbit
CI Improvements
Tests