Skip to content

fix: avoid duplicate Crabbox fixture builds - #166188

Merged
shakkernerd merged 1 commit into
mainfrom
fix/crabbox-fixture-builds
Oct 6, 2026
Merged

shakkernerd merged 1 commit into
mainfrom
fix/crabbox-fixture-builds

Conversation

@shakkernerd

@shakkernerd shakkernerd commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

The Crabbox wrapper test fixture exceeded its 180-second setup deadline in two scheduled main runs (first failure, second failure), preventing its tests from running. The real wrapper and setup command separately compiled the same managed-binary dependency graph.

Build those two entry points together and copy the setup entry and shared chunks into its existing isolated directory. The source-capsule stub remains a separate build. Canonical schema inlining, native process-module paths, cleanup, assertions, and deadlines remain unchanged. No production code changes.

On the same Blacksmith box with the original two-CPU/two-worker limits and routing neighbor, all 91 selected cases passed. Wrapper-file time fell from 162.748 s to 98.684 s; complete invocation test time fell from 165.96 s to 99.81 s. Independent review and AutoReview found no actionable defects.

Focused remote validation also passed all 52 real-wrapper source transport, artifact retention, readiness, cancellation, and cleanup cases (163.15 s with one worker and explicit family selection), changed-file formatting/lint, and root-test type checks. The complete hosted file passed all 280 applicable cases with one existing platform skip in 417.57 s (CI job). Required hosted CI is green; the exact-head Platinum review has no findings.

Closes #166187.

@clawsweeper

clawsweeper Bot commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Oct 6, 2026
@clawsweeper

clawsweeper Bot commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed October 6, 2026, 12:20 PM ET / 16:20 UTC (Revision 2).

ClawSweeper review

What this changes

The PR builds the Crabbox wrapper and setup command together, then copies the setup entry and shared chunks into its isolated test directory to reduce fixture preparation time.

Merge readiness

✅ Ready for maintainer review

This remains a useful, narrowly scoped fixture repair absent from fetched main. No actionable introduced defects were found, and the exact-head hosted job passed.

Priority: P2
Reviewed head: c9f15dd65810d29c74f2fa68dde664235fba5d92

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused fixture repair with preserved contracts, reported timing improvement, and successful exact-head hosted validation.
Proof confidence 🌊 off-meta tidepool Not applicable: The member-authored PR changes test fixture compilation only, so the external-contributor runtime proof gate does not apply. Reported constrained before/after runs and the verified exact-head hosted job support the fixture repair; no stored-data contract changes.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The member-authored PR changes test fixture compilation only, so the external-contributor runtime proof gate does not apply. Reported constrained before/after runs and the verified exact-head hosted job support the fixture repair; no stored-data contract changes.
Evidence reviewed 10 items Pinned introduced change: The merge-base-to-head patch changes only fixture compilation and relocation. It retains schema inlining, native process-module externalization, the separate source-capsule stub build, existing assertions, and cleanup ownership.
Relocated executable and cleanup contracts: The complete setup hook copies every shared output beside the setup entry, excludes that entry from wrapper relocation, and records compiler outputs for suite cleanup. The existing setup test executes the relocated command and checks its binary, version, PATH output, and absence of unwanted state creation.
Still necessary on fetched main: Fetched main still builds the real wrapper and setup entry separately; comparison of this concrete file shows the same focused repair remains outstanding. No merged fixing PR is established by the supplied related context.
Findings None None.
Security None None.

How this fits together

Crabbox tooling prepares and runs OpenClaw work on remote test machines. Its wrapper tests compile executable fixtures before exercising command routing, source transport, readiness, cancellation, and cleanup.

flowchart TD
  A[Wrapper source] --> C[Shared fixture build]
  B[Setup command source] --> C
  C --> D[Wrapper entry and chunks]
  C --> E[Isolated setup entry and chunks]
  F[Source preparation stub] --> G[Separate routing fixture build]
  D --> H[Command and lifecycle tests]
  E --> H
  G --> H
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests +21. Total +21 across 1 file.

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

Review metrics

Metric Value Why it matters
Reported wrapper-file runtime 162.748 s → 98.684 s; 39.4% lower The same constrained runner cohort gains substantial margin against the existing fixture deadline.

Technical review

Best possible solution:

Keep one shared compilation for the real fixture entries while preserving isolated executable paths, lazy imports, lifecycle coverage, and existing deadlines.

Do we have a high-confidence way to reproduce the issue?

Unclear for a deterministic timeout reproduction: source confirms duplicate compilation, and two scheduled failures are reported, but the unchanged constrained replay passed near the deadline. No tests were executed during this read-only review.

Is this the best way to solve the issue?

Yes. Sharing compilation at the fixture owner removes redundant work while preserving the executable isolation and existing behavioral checks.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against f36f3df32b43.

Labels

Label changes:

No label changes.

Label justifications:

  • P2: This repairs a bounded test-fixture preparation failure without changing production behavior or weakening coverage.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The member-authored PR changes test fixture compilation only, so the external-contributor runtime proof gate does not apply. Reported constrained before/after runs and the verified exact-head hosted job support the fixture repair; no stored-data contract changes.

Evidence

What I checked:

  • Pinned introduced change: The merge-base-to-head patch changes only fixture compilation and relocation. It retains schema inlining, native process-module externalization, the separate source-capsule stub build, existing assertions, and cleanup ownership. (test/scripts/crabbox-wrapper.test.ts:1679, c9f15dd65810)
  • Relocated executable and cleanup contracts: The complete setup hook copies every shared output beside the setup entry, excludes that entry from wrapper relocation, and records compiler outputs for suite cleanup. The existing setup test executes the relocated command and checks its binary, version, PATH output, and absence of unwanted state creation. (test/scripts/crabbox-wrapper.test.ts:1708, c9f15dd65810)
  • Still necessary on fetched main: Fetched main still builds the real wrapper and setup entry separately; comparison of this concrete file shows the same focused repair remains outstanding. No merged fixing PR is established by the supplied related context. (test/scripts/crabbox-wrapper.test.ts:1695, f36f3df32b43)
  • Production dependency boundary: Both executable sources import the Crabbox plugin's existing CLI runtime API. The changed test directly invokes esbuild with splitting, named entry points, output names, and compiler metadata; that is the affirmative dependency contract relevant to this patch. (test/scripts/crabbox-wrapper.test.ts:1680, c9f15dd65810)
  • Build API contract: Verified the dependency repository through GitHub repository metadata and inspected BuildOptions at the target's pinned v0.28.2 version. Its public contract supports splitting, output directories, metadata, output extensions, and entry/chunk naming. (lib/shared/types.ts:116)
  • Exact-head hosted validation: GitHub job 112368761498 succeeded on the pinned PR head, including its Node test shard. The captured PR body reports 280 applicable passing cases, one existing platform skip, and 417.57 seconds for the complete file. Direct log download was blocked by the artifact-host allowlist, so detailed case counts remain contributor-reported rather than independently log-verified. (c9f15dd65810)

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • shakkernerd: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
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.

Workflow

  • 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.

History

Review history (1 earlier review cycle)
  • reviewed 2026-10-06T16:06:04.247Z sha c9f15dd :: needs maintainer review before merge. :: none

@shakkernerd shakkernerd self-assigned this Oct 6, 2026
@shakkernerd
shakkernerd merged commit 69db9ee into main Oct 6, 2026
87 checks passed
@shakkernerd
shakkernerd deleted the fix/crabbox-fixture-builds branch October 6, 2026 16:20
@shakkernerd

Copy link
Copy Markdown
Contributor Author

Fixed: Crabbox wrapper test setup reuses compilation of its shared runtime dependencies.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 7, 2026
Compile the real Crabbox wrapper and setup command together while preserving isolated fixtures and cleanup.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary 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.

Crabbox wrapper fixture setup times out in full CI

1 participant