Skip to content

improve: speed up package candidate safety tests#100008

Merged
steipete merged 1 commit into
mainfrom
test/package-candidate-signal-fast
Jul 4, 2026
Merged

improve: speed up package candidate safety tests#100008
steipete merged 1 commit into
mainfrom
test/package-candidate-signal-fast

Conversation

@steipete

@steipete steipete commented Jul 4, 2026

Copy link
Copy Markdown
Contributor

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

@openclaw-barnacle openclaw-barnacle Bot added size: XS maintainer Maintainer-authored PR labels Jul 4, 2026
@clawsweeper

clawsweeper Bot commented Jul 4, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed July 4, 2026, 12:18 PM ET / 16:18 UTC.

Summary
The PR speeds up package-candidate safety tests by shortening a disposable forwarded-signal failsafe in a spawned test runner and batching artifact scan-limit fixture creation.

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.

  • Focused test speed: 9.078s -> 3.637s file time; 5.117s -> 0.135s external-termination case. The timing delta is the maintainer-value claim for this test-only PR and is backed by the PR body, follow-up comment, and Testbox evidence.

Stored data model
Persistent data-model change detected: serialized state: test/scripts/resolve-openclaw-package-candidate.test.ts. Confirm migration or upgrade compatibility proof before merge.

Merge readiness
Overall: 🦞 diamond lobster
Proof: 🦞 diamond lobster ✨ media proof bonus
Patch quality: 🦞 diamond lobster
Result: ready for maintainer review.

Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch.

Next step before merge

  • No repair job is needed; the protected maintainer-labeled PR should proceed through normal maintainer review and branch-protection gates.

Security
Cleared: The diff changes only one test file and adds no dependency, workflow, package-resolution, secret, install, release, or production code-execution surface.

Review details

Best 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 changes

Label justifications:

  • P3: This is a low-risk test performance cleanup with no production behavior, config, API, dependency, or user-facing runtime change.
  • rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (linked_artifact): The PR body and follow-up comment include after-change timing output plus linked Testbox and Actions proof, and live Real behavior proof checks succeeded for the current head.
  • proof: sufficient: Contributor real behavior proof is sufficient. The PR body and follow-up comment include after-change timing output plus linked Testbox and Actions proof, and live Real behavior proof checks succeeded for the current head.
Evidence reviewed

PR surface:

Tests +26. Total +26 across 1 file.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 31 5 +26
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 31 5 +26

What I checked:

Likely related people:

  • vincentkoc: Recent GitHub path history shows repeated package-candidate script and test commits, including artifact scan bounds and timeout cleanup that directly surround this PR’s test-speed changes. (role: recent area contributor; confidence: high; commits: aa0d71008590, 75fd2464ccfe, dd89898133ef; files: scripts/resolve-openclaw-package-candidate.mjs, test/scripts/resolve-openclaw-package-candidate.test.ts)
  • steipete: CONTRIBUTING.md lists steipete as a project maintainer, and path history includes prior test/scripts maintenance in the same package-candidate test file beyond this PR authoring event. (role: listed project maintainer and adjacent test contributor; confidence: medium; commits: 58c663920d04; files: CONTRIBUTING.md, test/scripts/resolve-openclaw-package-candidate.test.ts)
What the crustacean ranks mean
  • 🦀 challenger crab: rare, exceptional readiness with strong proof, clean implementation, and convincing validation.
  • 🦞 diamond lobster: very strong readiness with only minor maintainer review expected.
  • 🐚 platinum hermit: good normal PR, likely mergeable with ordinary maintainer review.
  • 🦐 gold shrimp: useful signal, but proof or patch confidence is still limited.
  • 🦪 silver shellfish: thin signal; proof, validation, or implementation needs work.
  • 🧂 unranked krab: not merge-ready because proof is missing/unusable or there are serious correctness or safety concerns.
  • 🌊 off-meta tidepool: rating does not apply to this item.

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
  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.
Review history (3 earlier review cycles)
  • reviewed 2026-07-04T16:02:23.814Z sha f01f14c :: needs real behavior proof before merge. :: none
  • reviewed 2026-07-04T16:08:00.426Z sha f01f14c :: needs real behavior proof before merge. :: none
  • reviewed 2026-07-04T16:13:06.573Z sha 7b096fc :: needs maintainer review before merge. :: none

@clawsweeper clawsweeper Bot added rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. labels Jul 4, 2026
@steipete

steipete commented Jul 4, 2026

Copy link
Copy Markdown
Contributor Author

Land-ready verification for rebased head 7b096fc3433c3ff508882e950cd83ccd287a036e:

Known proof gaps: none for this test-only optimization.

@steipete
steipete force-pushed the test/package-candidate-signal-fast branch from f01f14c to 7b096fc Compare July 4, 2026 16:09
@clawsweeper clawsweeper Bot added the proof: sufficient ClawSweeper judged the real behavior proof convincing. label Jul 4, 2026
@steipete
steipete merged commit 280e8d4 into main Jul 4, 2026
80 checks passed
@steipete
steipete deleted the test/package-candidate-signal-fast branch July 4, 2026 16:20
@steipete

steipete commented Jul 4, 2026

Copy link
Copy Markdown
Contributor Author

Merged via squash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. size: XS status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant