Repository navigation
test: scale container daemon regression deadlines - #132406
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 29, 2026, 1:45 AM ET / 05:45 UTC. ClawSweeper reviewWhat this changesThe branch speeds two Docker container-supervisor regression cases by scaling the fake engine delay and only that identity-probe executor timeout while asserting the real requested timeout remains 30 seconds. Merge readinessKeep open for normal maintainer handling: the focused test-only change preserves the production 30-second revalidation budget and introduces no concrete correctness or security defect. Exact-head checks remain in progress, and the latest ClawSweeper review body could not be retrieved during this review. Priority: P3 Review scores
Verification
How this fits togetherThe node-worker supervisor creates a containerized worker only after revalidating the pinned container daemon identity. This fixture supplies a fake Docker executable to exercise successful launch and timeout failure through the normal subprocess and lifecycle paths. flowchart LR
A[Worker launch request] --> B[Node-worker supervisor]
B --> C[Container launch transport]
C --> D[Daemon identity revalidation]
D --> E[Fixture Docker executable]
E --> F[Running or failed lifecycle receipt]
Decision needed
Why: The PR is marked maintainer and is attributed to a repository member, so automatic cleanup is not appropriate despite the absence of a code finding. Before merge
Agent review detailsSecurityNone. PR surfaceTests +36. Total +36 across 1 file. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Retain the fixture-local scaling and production-budget assertions, then land only after the exact-head checks pass and the latest ClawSweeper review instructions are accounted for. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR is a test-runtime optimization, not a report of a user-facing defect; its supplied evidence describes focused passing and negative regression runs. Is this the best way to solve the issue? Yes: scaling both the fixture response and only the matched executor deadline preserves the meaningful timeout ordering while avoiding production-scale sleeps, and the new assertions protect the 30-second production budget. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 9b1c4bb3589d. 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
|
e97ac78 to
b1fd196
Compare
|
Merged via squash.
|
* test: scale container daemon regression deadlines * test: expect resolved default account in gateway sends
What Problem This Solves
Two container-supervisor regressions spend six and thirty seconds exercising daemon revalidation deadlines. The fake engine already controls response latency, so waiting at production scale adds wall time without strengthening the process-lifecycle coverage.
Why This Change Was Made
Scale both the fake daemon response and its matching
runExecdeadline by five. The spy calls the original executor and matches only this fixture'sinfo --format {{.ID}}command. Process creation, Execa cancellation, signal handling, error diagnostics, journal persistence, and cleanup remain real.The healthy response retains 4.8 seconds of startup headroom. The regression remains distinguishable: the old five-second deadline becomes one second and still loses to the scaled six-second response. Both cases also assert that production requested its unchanged thirty-second budget.
User Impact
The full twenty-case file fell from 43.06s to 14.36s locally. No production, sharding, worker-count, selection, or configuration changes. Test/support LOC +41/-5; production +0/-0.
Evidence
node scripts/run-vitest.mjs src/node-host/node-worker-supervisor.container.test.ts src/node-host/node-worker-supervisor.test.ts src/node-host/node-worker-supervisor.lifetime.test.ts src/node-host/node-worker-supervisor.recovery.test.ts src/node-host/node-worker-supervisor.admission.test.ts.CI Integration Repair
The first CI run exposed two stale gateway-send assertions when this PR was merged with main's account-resolution change from #132226. The tested merge was
1e92368db1959543a7d8fafdbb86ed7ff1fcf23f, combining this PR's old head withc3ff7f98d58e. Those requests omit account selection; canonical local delivery now correctly receives the plugin's resolveddefaultaccount.After rebasing onto current main, the same two failures reproduced locally. The existing table now expects the resolved default at the delivery boundary while preserving omitted-account inputs and the explicit
secondarycase. No production behavior changes. All 185 tests then passed across container supervision, the complete gateway-send suite, account routing, and core send. Fresh Codex reviews passed for the container branch and assertion correction. The refreshed exact-head CI and changed-file gates must pass before landing.Refreshed gates passed: exact-head CI, Linux changed-file checks (wrapper exit 0; Testbox stopped). No ClawSweeper review comment or rank-up moves were present at the final pre-landing read.