Repository navigation
fix(ci): balance slow runtime tests in complete PR checks - #146916
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: blocked before merge. Reviewed September 13, 2026, 6:04 AM ET / 10:04 UTC. ClawSweeper reviewWhat this changesExtends existing runtime-test balancing to complete pull-request checks while preserving precise changed-file plans, with regression coverage and CI capacity documentation. Merge readiness⛔ Blocked before merge - 1 item remains This remains a useful, bounded CI repair: current main still excludes complete PR plans from runtime balancing. No introduced correctness or security defect was found, and the maintainer-protected PR should remain open. Priority: P2 Review scores
Verification
How this fits togetherCI preflight turns test inventories and recorded timings into jobs with fixed runner and worker limits. This change lets complete PR plans redistribute whole runtime-test groups through the existing balancing owner. flowchart TD
A[Test inventory and timings] --> B[CI plan selection]
B --> C[Complete PR or push plan]
B --> D[Precise changed-file plan]
C --> E[Balance compatible runtime groups]
D --> F[Preserve original placement template]
E --> G[Runner jobs with retained coverage]
F --> G
Before merge
Agent review detailsSecurityNone. PR surfaceTests +28, Docs +3, Other +6. Total +37 across 4 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Use the existing balancing owner for complete PR plans, preserve precise-plan capacity, and judge performance from native CI timings without changing coverage or deadlines. Do we have a high-confidence way to reproduce the issue? Yes, from source: complete hybrid PR plans bypass the push-only balancing guard on current main. The linked job confirms a 625-second test step, although this review did not execute the planner or tests. Is this the best way to solve the issue? Yes. Forwarding normalized complete-plan identity reuses the existing scheduling and admission rules while leaving precise selection outside whole-suite placement. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against b938f093b1e4. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
* refs/heads/temp/pr-146883: (159 commits) fix: retain route ownership while discovering conversations (#146927) refactor: reuse plugin fixture shell runner (#146920) fix(worker): stop preparing disabled live previews (#146896) fix(runtime): support Bun across tooling suite (#146807) chore(i18n): refresh native locales (#146924) perf(secrets): limit expiry metadata to transient credentials (#146882) fix(ui): preserve queued refreshes during session discovery (#146535) test(ui): wait for quiet scrolling and close named file tabs (#146836) fix(ui): prevent Usage hour filters from freezing during DST (#146919) test(ui): share browser page cleanup across layout fixtures (#146805) ci: balance complete PR runtime test groups (#146916) improve(infra): reduce scheduling work for session notice bursts (#146818) improve: prepare Gateway skill commands asynchronously (#146812) improve(agents): skip unused assistant delivery parsing (#146858) improve(ui): reuse date formatters across timestamp lists (#146789) fix(tests): isolate installer and Docker shell snippets (#146897) test(heartbeat): share explicit channel configuration fixtures (#146853) fix: retain conversation reply claims through write admission (#146866) perf(sessions): bound history reads and stabilize cursor paging (#146770) fix(ui): let slow dashboard downloads finish before recovery (#146881) ...
* refs/heads/temp/pr-146833: (43 commits) fix(memory): preserve newer indexes and disclose automatic rebuild costs (#146908) fix: retain route ownership while discovering conversations (#146927) refactor: reuse plugin fixture shell runner (#146920) fix(worker): stop preparing disabled live previews (#146896) fix(runtime): support Bun across tooling suite (#146807) chore(i18n): refresh native locales (#146924) perf(secrets): limit expiry metadata to transient credentials (#146882) fix(ui): preserve queued refreshes during session discovery (#146535) test(ui): wait for quiet scrolling and close named file tabs (#146836) fix(ui): prevent Usage hour filters from freezing during DST (#146919) test(ui): share browser page cleanup across layout fixtures (#146805) ci: balance complete PR runtime test groups (#146916) improve(infra): reduce scheduling work for session notice bursts (#146818) improve: prepare Gateway skill commands asynchronously (#146812) improve(agents): skip unused assistant delivery parsing (#146858) improve(ui): reuse date formatters across timestamp lists (#146789) fix(tests): isolate installer and Docker shell snippets (#146897) test(heartbeat): share explicit channel configuration fixtures (#146853) fix: retain conversation reply claims through write admission (#146866) perf(sessions): bound history reads and stabilize cursor paging (#146770) ...
* temp/pr-146802: (51 commits) improve: reduce worktree filesystem stalls and archive syncs (#146906) fix(ui): avoid extra chat rail work while replies stream (#146883) improve(ui): speed up populated Usage timelines (#146947) test(gateway): retain auth recovery failure diagnostics (#146925) fix(tests): create private temporary home directories (#146931) fix(backup): preserve discovery under concurrent state writes (#146912) fix: keep queued deliveries in their original state directory (#146917) fix(discord): settle voice waveform work before releasing input (#146885) fix(memory): preserve newer indexes and disclose automatic rebuild costs (#146908) fix: retain route ownership while discovering conversations (#146927) refactor: reuse plugin fixture shell runner (#146920) fix(worker): stop preparing disabled live previews (#146896) fix(runtime): support Bun across tooling suite (#146807) chore(i18n): refresh native locales (#146924) perf(secrets): limit expiry metadata to transient credentials (#146882) fix(ui): preserve queued refreshes during session discovery (#146535) test(ui): wait for quiet scrolling and close named file tabs (#146836) fix(ui): prevent Usage hour filters from freezing during DST (#146919) test(ui): share browser page cleanup across layout fixtures (#146805) ci: balance complete PR runtime test groups (#146916) ...
…ssion-list-roster-batch-20260913 * commit 'f513c0f345f7f2514c49ccfbc00adc3f78b9a755': (46 commits) chore(i18n): refresh native locales (#146924) perf(secrets): limit expiry metadata to transient credentials (#146882) fix(ui): preserve queued refreshes during session discovery (#146535) test(ui): wait for quiet scrolling and close named file tabs (#146836) fix(ui): prevent Usage hour filters from freezing during DST (#146919) test(ui): share browser page cleanup across layout fixtures (#146805) ci: balance complete PR runtime test groups (#146916) improve(infra): reduce scheduling work for session notice bursts (#146818) improve: prepare Gateway skill commands asynchronously (#146812) improve(agents): skip unused assistant delivery parsing (#146858) improve(ui): reuse date formatters across timestamp lists (#146789) fix(tests): isolate installer and Docker shell snippets (#146897) test(heartbeat): share explicit channel configuration fixtures (#146853) fix: retain conversation reply claims through write admission (#146866) perf(sessions): bound history reads and stabilize cursor paging (#146770) fix(ui): let slow dashboard downloads finish before recovery (#146881) fix: share Doctor lifecycle coordination with SQLite workers (#146714) fix: retain native session model provenance (#146801) fix: settle embedded transcript repairs before session cleanup (#146842) feat(macos): improve agent navigation and chat layout (#146531) ...
What Problem This Solves
Complete PR checks can pack several slow runtime suites into one job because they ignore the whole-suite timings already used by main.
User Impact
The existing balancing pass now distributes complete PR runtime suites across existing jobs. The reduced main plan and precise changed-file plans retain their current output. Job counts, runner allocations, worker limits, build counts, test inventory and deadlines remain unchanged.
Both affected test commands are now below eight minutes in exact-head CI. Total assigned-job time still exceeds eight minutes because checkout, setup and build add roughly two minutes; this is an incremental improvement, not completion of the overall CI target.
Why This Change Was Made
CI 34748471920 estimated 133 seconds for a job whose six complete runtime suites actually spent 625 seconds testing. The estimate included a 100-second build allowance. Whole-group measurements were available, but their existing balancing pass only ran for main pushes.
The public complete-plan entry now carries its normalized mode into that pass. Precise plans still build their original templates before selecting individual files. This fixes measurement consumption without adding another scheduler, changing timing weights or feeding whole-suite costs into file splitting.
Evidence
The extended existing regression passed for main and failed for PRs on the original code. All 209 planner/timing owner tests pass with the fix, along with required changed-file checks and independent P2 review.
Exact plan comparisons preserve 48 ordinary plus 2 dist jobs, every job's runner and concurrency, and the complete group/config/env/include inventory. The corpus moves intact between two existing runtime jobs; modeled costs become 436 and 421 seconds, including the existing build allowance. Main-push and precise single-file outputs are deeply identical to their original plans, and legacy complete-plan calls match explicit PR mode. Existing no-fit and runner-anchor safeguards remain covered.
Exact-head CI34750499328 passed. Preflight exercised the candidate planner in the tested merge and both job logs confirm the intact corpus transfer. Test commands took382.34s and447.43s; assigned times were8m31s and9m32s with the same start, versus the prior affected tail of12m02s. Both runners reported2CPUs and8.22GB; neither used a hosted fallback. Checkout alone took62s per job. These cross-run observations are not a controlled benchmark.
Maintainer decision on the review's performance risk: accept the bounded improvement with unchanged jobs/resources and retain the remaining total-job gap explicitly. Continue monitoring complete PR timings under the existing optimization work; revise or revert this balancing change if those observations demonstrate a regression. No new timing weights or eight-minute guarantee.
Product runtime LOC: 0. CI tooling adds 6 net lines to carry the existing complete-plan identity. The existing test is extended, and the owning CI capacity documentation is updated. Changelog remains release-owned.