Repository navigation
ci: keep growing hosted test plans within the job cap - #144965
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. Reviewed September 11, 2026, 10:30 AM ET / 14:30 UTC (Revision 2). ClawSweeper reviewWhat this changesThe CI test planner tries a validated exchange between existing jobs before adding another GitHub-hosted pull-request job, with regression coverage and documentation. Merge readiness✅ Ready for maintainer review This remains a useful, bounded CI repair: current main still uses first-fit packing, and the pinned-head CI run passed. No actionable correctness or security defect was found. Priority: P2 Review scores
Verification
How this fits togetherThe Node test planner converts test inventories, timing estimates, and runner requirements into GitHub Actions jobs. Its admission rules preserve coverage and resource constraints while enforcing the job cap. flowchart TD
A[Test inventory and timings] --> B[Group by runner and prerequisites]
B --> C[Place non-tooling groups]
C --> D[Try validated exchange when full]
D --> E[Place hosted tooling]
E --> F[Enforce job cap]
F --> G[GitHub Actions test jobs]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +16, Docs +2, Other +46. Total +64 across 3 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep the existing planner as the single packing owner, preserving complete inventories and admission limits while recovering stranded capacity. Do we have a high-confidence way to reproduce the issue? Yes: the planner regression exercises independent time and group-count limits, and the captured evidence reports the inventory-growth failure before the fix. This review inspected source and CI results without executing tests. Is this the best way to solve the issue? Yes: the exchange reuses the existing admission predicate and preserves descriptors, avoiding a competing planner or relaxed capacity limits. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 4ca592809742. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
|
Merged via squash.
|
* commit 'f2ce199238e974b1d4caff8f11112aa51eb00d9e': (310 commits) refactor(copilot): deduplicate transcript user text (#144888) refactor(sessions): await discovery and config readiness (#144854) refactor(e2e): deduplicate release file assertions (#144904) ci: keep growing hosted test plans within the job cap (#144965) fix(macos): avoid stale dashboard command assertions (#144710) refactor(memory): await standing intent operations (#144832) refactor(ui): derive native device settings types from schemas (#144705) refactor(memory): await journal operations and allocate sequences atomically (#144824) refactor(tests): share command field assertions (#144955) refactor(matrix): share bounded context cache insertion (#144939) refactor(i18n): share Apple catalog reader (#144848) fix(doctor): preserve legacy registry files when quarantine fails (#144787) refactor(tests): reuse PixVerse auth fixtures (#144926) fix(bonjour): silence transient ENODEV socket warnings (#144870) fix(matrix): preserve unrelated files when migration fails (#144883) feat(sqlite): run Team Reports storage in owned workers (#144871) fix(update): install explicit same-version artifacts (#144894) refactor(ui): share cached message extraction (#144244) refactor: normalize Claude usage responses at one boundary (#144707) refactor: simplify CLI child listener registration (#144929) ...
Includes #144965, resolving the source-proven 81-versus-80 tooling plan failure. The six-file automation timeout delta is unchanged against main. 461 focused tests pass, including 57 CI planner tests. Fresh P2 autoreview scoped-clean. Local broad changed checks stop on missing @noble/hashes/sha2.js in inherited Reef plugin dependencies; no dependency installation or guard bypass. Hosted exact-head CI remains required.
First-fit packing stranded capacity when a bin reached the ten-group limit, causing growing hosted PR test plans to exceed the 80-job cap.
Refs #144941
Additional instructions
Maintainer-requested repair. This same-repository branch remains editable by maintainers.
What Problem This Solves
Resolves a problem where pull-request CI fails the hosted tooling inventory-growth guard with
compact github node test plan exceeds 80 jobs (81 planned). This blocks #144941 (including run 34603439927), although that PR adds no test files. Main's push plan omits tooling, so its green CI does not exercise this PR-only failure.Why This Change Was Made
First-fit packing can strand time when a job reaches the ten-group limit. Before opening another GitHub PR anchor job, try one deterministic group exchange between existing bins. Validate both replacement bins and the incoming group with the original admission predicate before applying the exchange. This packs the grown inventory into 80 jobs without changing the cap, timing floors, serial budgets, runner capacity, worker pins, process isolation, prerequisites, or sibling-family separation.
The exchange runs before hosted tooling placement, so tooling growth cannot alter non-tooling anchors. Blacksmith, hybrid, and all push plans are byte-equivalent to their previous descriptors. Add a small regression for the independent time/group-count constraints and document the policy.
User Impact
Unblocks the known planner failure on #144941 and other PRs routed through the affected tooling test lane. There is no runtime product behavior change.
Evidence
d1c9e4690adbf55df4f80993d52b1c62e6a0f09e.node scripts/run-vitest.mjs test/scripts/ci-node-test-plan.test.ts -t "packs serial groups within both|keeps hosted tooling within the GitHub job cap"reports 2 failed: three bins instead of two, and 81 planned jobs instead of at most 80.
4b2b903c2dfd6edfee78b6a88e6cb34c44d26738.node scripts/run-vitest.mjs test/scripts/ci-node-test-plan.test.ts: 57 passed.node scripts/check-changed.mjsandgit diff --check.Counts use the production setting that excludes release-only plugin shards. The failing expanded GitHub inventory changes 81 → 80; current inventory remains at 80 while avoiding the overflow-tail repartition.
Known gap: native CI remains the source of elapsed-time and memory evidence; this change preserves existing capacity limits and does not claim a measured wall-time improvement. Exact-head CI run 34608159644 passed for
08faa94fd3ca0aa71c2a8d27baf5837b551761ca: 97 checks passed, 38 skipped, none pending or failed. The previously failing checks-node-compact-small-30 lane passed. The PR remains ready for the lead to land; #144941 needs a fresh run after this fix reaches main.