Repository navigation
refactor(test): consolidate benchmark child teardown coverage - #158654
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 26, 2026, 2:06 AM ET / 06:06 UTC (Revision 4). ClawSweeper reviewWhat this changesMoves Gateway benchmark child teardown checks into one discovered test suite and removes their duplicate registrations from the startup and restart suites. Merge readiness✅ Ready for maintainer review Keep open. Current main still runs the same teardown contract in both benchmark suites, and this useful consolidation retains the distinct exit-code cases. No introduced defect was found. Priority: P3 Review scores
Verification
How this fits togetherOpenClaw's startup and restart benchmarks manage Gateway child processes and report their exit outcomes. Tooling tests feed child exit and signal scenarios into the shared teardown helper to check classification and cleanup. flowchart LR
A[Startup and restart benchmarks] --> B[Gateway child process]
B --> C[Shared teardown helper]
D[Teardown test cases] --> C
C --> E{Exit or timeout}
E --> F[Process tree cleanup]
F --> G[Benchmark outcome]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests -27. Total -27 across 3 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep one discovered suite for the shared teardown contract while retaining separate startup and restart tests for their distinct benchmark behavior. Do we have a high-confidence way to reproduce the issue? Not applicable to a bug report. Current-main source confirms the duplicated registrations against the same teardown helper. Is this the best way to solve the issue? Yes. A directly discovered owner suite removes duplicate execution while preserving the two exit-code inputs and the other teardown assertions. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 02192bc72c02. LabelsLabel changes: No label changes. Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (3 earlier review cycles) |
34b1c9b to
d4508fd
Compare
d4508fd to
8c546ab
Compare
|
Merged via squash.
|
…aw#158654) Co-authored-by: Vincent Koc <[email protected]>
What Problem This Solves
The startup and restart benchmark suites register the same child-teardown contract against the same
stopChildimplementation. Four cases therefore run twice without exercising different entry points or behavior.Why This Change Was Made
Move the existing contract into a directly discovered owner test file and remove the generic registrar and its two callers. Keep both distinct queued exit codes, 0 and 7, as table rows. Preserve failed-signal classification, signal order, bounded teardown, IPC release, process-group cleanup, and Windows skips.
This is part of the maintainer-requested test audit. The patch removes four duplicate case executions and 27 net test/support lines. Production code and the benchmark CLI, fixture, probe, and reporting tests are unchanged.
User Impact
No user-visible change. Developers maintain one canonical child-teardown suite without losing the distinct exit and cleanup contracts.
Evidence
disk is fullon the saturated configured temp filesystem. That case passed when rerun alone using task-owned temp storage on a volume with sufficient space, without code or assertion changes.test/scripts/lint-suppressions.test.ts:191: 78 actual suppressions versus 77 expected. Main commit 2f2ec46dd56, from the progress-snapshot PR, addedsrc/gateway/server-chat-progress-snapshot.ts|no-implicit-coercion|1without changing that inventory. Both affected files are unchanged by this cleanup. One other shard was cancelled by fail-fast, and the aggregate gate failed. The same upstream defect is independently recorded in the QA PR.34b1c9ba41dc9b9ea203afbd5a20a1fd57099d81.extensions/acpx/src/session-owner-migration.ts. The failing guard and migration are outside this cleanup. Other affected shards were cancelled by fail-fast.d4508fd570e2d45c471390a481fbf088e88331f6.src/gateway/server-chat-progress-snapshot.ts:36:24:lint:no-chained-type-assertionsrejectedvalue as unknown as number, introduced by main 20f3170d367. That source file is unchanged by this cleanup.Reflect.applywithout the chained assertion. This PR is refreshed onto the repaired main snapshot as8c546ab2690609755a54f0f1d90869d0518e62fc. Cleanup patch bytes, owner/callee sources, dependency inputs, and relevant test routing remain unchanged; existing local proof is preserved. No guard weakening or same-head CI retry.8c546ab2690609755a54f0f1d90869d0518e62fc: 132 jobs, 110 non-skipped, and 813 seconds workflow elapsed. These are aggregate costs, not file-local timing or speedup evidence. The completed review reports no findings or before-merge actions on the patch-identical previous head.