Repository navigation
fix: avoid duplicate Crabbox fixture builds - #166188
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 October 6, 2026, 12:20 PM ET / 16:20 UTC (Revision 2). ClawSweeper reviewWhat this changesThe 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 Review scores
Verification
How this fits togetherCrabbox 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
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +21. Total +21 across 1 file. View PR surface stats
Review metrics
Technical reviewBest 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. 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 (1 earlier review cycle)
|
|
Fixed: Crabbox wrapper test setup reuses compilation of its shared runtime dependencies. |
Compile the real Crabbox wrapper and setup command together while preserving isolated fixtures and cleanup.
The Crabbox wrapper test fixture exceeded its 180-second setup deadline in two scheduled
mainruns (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.