Repository navigation
perf(ci): trim plugin reload fixture compilation - #197783
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. |
…plugin-reload-runtime-20261112 * commit '5d6a026e43757ea6302e4c1151d6ace28468ced0': fix(logging): avoid main-thread stalls when resolving default log files (#197742) fix(sessions): commit selected invitations with original messages (#184512) improve: make Telegram tool progress easier to scan (#197523) fix(test): keep queued Stop cleanup on real timers (#197734) fix: keep usage pricing from blocking the Gateway on filesystem lookups (#197599)
|
Codex review: needs changes before merge. What this changesThis PR selects runtime workers for plugin-reload tests and forwards their preset through the private child bootstrap. Example: CI runs the plugin-reload continuation and revocation product tests.
Review scores
ProductKind: Performance · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 1 item remains Keep open: this maintainer-authored optimization has clear value, but the new preset forwarding breaks an existing caller and causes a confirmed CI failure. Priority: P2 Before merge
Findings
Agent review detailsHow this fits togetherThe test runner selects a compiled worker preset, the fixture prepares its artifacts, and the shutdown helper launches a child bootstrap that installs the descriptor before running the selected tests. flowchart LR
A[Selected test files] --> B[Runtime worker selector]
B --> C[Worker artifact owner]
C --> D[Shutdown command helper]
D --> E[Private child bootstrap]
E --> F[Plugin reload scenarios]
Technical reviewBest possible solution: Keep preset forwarding in the shared helper and remove the existing caller’s manual preset argument so the bootstrap receives it exactly once. Do we have a high-confidence way to reproduce the issue? Current main explicitly prepares full graphs for these fixtures; source tracing and exact-head CI independently establish the duplicate-preset regression introduced by this PR. Is this the best way to solve the issue? Reusing the existing selector and worker owner is appropriate, but the cutover must include the caller that previously forwarded its preset manually. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against de6dc6249746. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceAcceptance criteria:
What I checked:
Likely related people:
PR surfaceTests +66, Other +2. Total +68 across 6 files. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. Review metrics
LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 12, 2026, 10:14 AM ET / 15:14 UTC. |
|
Merged via squash auto-merge.
|
* perf(ci): trim plugin reload fixture compilation * fix(test): align runtime fixtures with their owners
Related: #197690
What Problem This Solves
Plugin-reload CI proofs compile the full test-worker graph twice even though their subprocesses only need production runtime entries.
User Impact
Less compiler work for the same plugin-reload regression coverage. No product behavior change; private child ownership, shutdown checks, and conservative selection fallbacks remain intact.
Why This Change Was Made
Qualify the two product fixtures for runtime workers and preserve that preset through their private child bootstrap. Previously the helper passed the artifact directory but the bootstrap defaulted to
full. Migrate the existing Responses fixture to the helper-owned preset flag so it is forwarded exactly once.The continuation proof also required an incidental main-thread temp-resolver witness from default logging. After #197742 moved that logging work to a worker, all continuation effects passed but that unrelated witness failed. Remove that assertion from the continuation scenario; retain the prebound child, private SQLite guard, exact-path checks, process-tree joining, all three continuation cases and both revocation cases. Direct handoff-consumer coverage is unchanged.
Evidence
a41c7111235fversus candidatee90764356fd3: both wrappers pass all five nested scenarios, with matching outcome counters, zero skips and bothprocessTreeJoinedreceipts.a41c7111235f..e90764356fd3: no actionable findings. The subsequent CI repair and integration with logging base5d6a026e4375are separately validated below; the timing pair remains prior-base evidence.CI repair evidence
CI run 43242672638: traced the duplicated preset flag and the incidental witness failure to their owners.
Responses/bootstrap repair: seven outer tests passed, including five nested Responses cases; format and independent source review passed.
Current repair head:
769c58bc0ed7ed4203e7f5b93f211db0c21d7aed, integrated with the exact logging base used by the failing CI. Fresh complete local ClawSweeper review of5d6a026e4375..769c58bc0ed7found no actionable findings. Grouped local proof on the integrated head failed at both unchanged 120-second outer deadlines: compiler preparation took 162.952/165.482 seconds and continuation only reached Gateway startup. The host was heavily loaded with about 54 GiB of swap used. This is an unresolved local qualification gap; no timeout was increased and no passing result is claimed. Exact-head Linux PR CI must cover both fixtures before landing.Repaired-head Linux CI passed: Responses settlement job and grouped plugin-reload job. The reload pair executed all five nested scenarios with zero skips and both
processTreeJoinedreceipts. Runtime preparations were 30.376/30.752 seconds, 7,598 outputs each. This resolves the product-outcome gap from the timed-out local run; these CI timings are not a matched cost comparison.