improve: speed up package candidate safety tests#100008
Conversation
|
Codex review: needs maintainer review before merge. Reviewed July 4, 2026, 12:18 PM ET / 16:18 UTC. Summary PR surface: Tests +26. Total +26 across 1 file. Reproducibility: not applicable. This PR is a test-speed cleanup rather than a product bug. Source review confirms the slow current paths are the external-termination test’s 5s forwarded-signal wait and serial 10,001-file fixture setup. Review metrics: 1 noteworthy metric.
Stored data model Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Next step before merge
Security Review detailsBest possible solution: Land the scoped test-speed change after maintainer review and exact-head branch-protection gates, while keeping production package-candidate timeout and scan contracts unchanged. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR is a test-speed cleanup rather than a product bug. Source review confirms the slow current paths are the external-termination test’s 5s forwarded-signal wait and serial 10,001-file fixture setup. Is this the best way to solve the issue? Yes. The patch confines timer acceleration to a disposable spawned runner, leaves the production 5s timeout constant intact, and preserves the real over-limit artifact scan proof while batching fixture creation. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 6169e5ddaeb4. Label changesLabel justifications:
Evidence reviewedPR surface: Tests +26. Total +26 across 1 file. View PR surface stats
What I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
Review history (3 earlier review cycles) |
|
Land-ready verification for rebased head
Known proof gaps: none for this test-only optimization. |
f01f14c to
7b096fc
Compare
|
Merged via squash.
|
What Problem This Solves
The package-candidate safety test file spent five real seconds proving its forwarded-signal force-kill path and created 10,001 scan fixtures serially. This made a 45-test tooling file take 9.078 seconds of test time.
Why This Change Was Made
Accelerate only the disposable runner's existing five-second forwarded-signal failsafe while preserving the production timeout value and full process-tree behavior. Create the same 10,001 filesystem entries in bounded batches, retaining the real scan-limit proof.
User Impact
No product behavior changes. Maintainers get faster package-candidate safety validation with the same behavioral coverage.
Evidence
tbx_01kwpxnn548kezvm71c62p7e7v, Actions https://github.com/openclaw/openclaw/actions/runs/28711677712.check:changed: green;tbx_01kwpxnqd660rgb32mt9se2ys6, Actions https://github.com/openclaw/openclaw/actions/runs/28711678728.pnpm exec oxfmt --check test/scripts/resolve-openclaw-package-candidate.test.tsgit diff --check