Repository navigation
ci: repair long-tail test jobs and refresh their timing weights - #149665
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 changes before merge. Reviewed September 16, 2026, 12:19 AM ET / 04:19 UTC (Revision 2). ClawSweeper reviewWhat this changesThe branch repairs plugin test selection and job estimates, refreshes CLI timing weights, and shortens waits in the Gateway fallback test. Merge readiness⛔ Needs changes before merge - 2 items remain The planner and timing repairs remain useful and have native CI evidence. The previously reported redundant Gateway sleep spy remains unresolved; the merged zero-retry fixture already handles that optimization. Priority: P2 Review scores
Verification
How this fits togetherThe CI planner turns changed repository paths, test inventories, and timing measurements into runner jobs. Those jobs execute scoped test groups and report results to the CI gate. flowchart LR
A[Changed repository paths] --> B[Test configuration ownership]
C[Test file inventory] --> B
B --> D[Scoped test groups]
E[Recorded timing weights] --> F[Job packing]
D --> F
F --> G[Runner test execution]
G --> H[CI results]
Before merge
Findings
Agent review detailsSecurityNone. PR surfaceTests +72, Docs +22, Other +20. Total +114 across 7 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Retain the planner and timing repairs while using main's existing zero-retry Gateway fixture as the sole pacing control. Do we have a high-confidence way to reproduce the issue? Yes, source establishes the planner's root-only ownership and singleton scope defects, and the verified merge establishes the redundant spy. No tests were executed during this read-only review. Is this the best way to solve the issue? Partly: reusing the existing ownership resolver and preserving file scopes is appropriate, but the additional Gateway pacing control duplicates the already-merged fixture configuration. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 027f99d61a93. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
|
Merged via squash.
|
What Problem This Solves
Main compact CI repeatedly spent 30–32 minutes in one Gateway bin, and broad PR fallback hid more than twenty minutes of database-worker tests inside a roughly four-minute estimate. This is the maintainer-requested Lane T repair from the September 16 CI burden analysis.
User Impact
CI retains test coverage, timeouts, worker limits, and admission budgets. Plugin fallback now includes migrated database-worker tests when their original plugin changes and keeps their actual file scope when packing jobs. There is no runtime product change.
Why This Change Was Made
The Gateway fallback proof paid nine real backoff delays in each of eleven cases. A suite-scoped spy now delegates to the original abortable sleep with a one-millisecond delay, then restores it after the suite. All ten primary HTTP attempts, registered Gateway calls, storage, and fallback/pinning assertions remain real.
Plugin fallback grouped files by plugin root, missing exact-file database ownership. A singleton then lost its include list and executed the whole database config. File ownership now comes from the existing resolver, every process-bounded envelope retains its scope, and unequal chunks are priced by their own file counts with the existing rates. No tests are removed.
The canonical timing reducer refits only the two downloaded successful main CLI jobs, preserving the independent-run, outlier, and 15% replacement rules.
agentic-clichanges from 136 to 595 seconds; its exact process companion receives an 89-second measurement. No unobserved keys are pruned.Evidence
Source runs: 35042635751, 35044335386, 35045292864, and 35046146611.
server.visible-spawn-fallback.product-proof.test.tsaccounts for 1,538.261s of case time. The unrelated tasks-list assertion fails later in this run.run-attempt.test.tsaccounts for 160.504s of test bodies.update-cli.test.tsat 195.044/252.765s of case bodies.Local validation: all 11 Gateway fallback cases, all 385 required planner/timing tests, and all 189 extension-planner sibling tests pass. The broad database regression demonstrably fails before the repair. Docs inventory and
git diff --checkpass. Independent review reports no actionable P0–P2 findings. The fullcheck-changedrun passed types, core lint, and all earlier guards, then caught the mapper’s map-spread lint rule. The mapper now usesObject.assign; the scoped changed-file rerun and remaining root-test lint complete that validation. Branch autoreview is scoped-clean at P0–P2. Head:bd33097d6eddaabc55d47ddb76101acfd9608985. All affected jobs and the full exact-head CI workflow passed. This PR is not requested for merge.Native CI measurements
Run 35053574908 validates head
bd33097d6eddaabc55d47ddb76101acfd9608985in merge checkout953456518e744e6b2e3aa0e026d98966dfd0acd9. All affected jobs and the full CI workflow passed. The single five-minute-interval watcher finishedGREEN.run-attempt.test.tsfile is in bundle-15 and takes 127.941s of case time.Runner classes remain 32 for compact small-4, 16 for CLI, and 8 for plugin jobs. These are observed results from one PR run with newer main commits included; lower child costs outside the backoff repair are not attributed solely to this patch. Plugin fallback emits 41 rows in this native merge checkout versus the 40-row local dry run; bundle numbering differs, so the comparisons above use decoded config/file inventories. At the ten-minute checkpoint, 143 of 146 jobs had completed with no failures; the full workflow subsequently finished successfully.
Before/after emitted bins for the affected compact and database groups
Before
After