Repository navigation
fix(testing): run package contracts without unrelated runtime builds - #142159
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 8, 2026, 9:31 AM ET / 13:31 UTC. ClawSweeper reviewWhat this changesRoutes self-building SDK and Docker package tests through a dedicated test lane, preserves mixed E2E selections, includes the new shared module in extracted tooling, and removes an unused fixture result. Merge readiness✅ Ready for maintainer review The PR remains useful and has no blocking findings. The follow-up fixes the extraction inventory, and comparison with the previous reviewed head confirms that the package-routing implementation and tests are unchanged. Priority: P2 Review scores
Verification
How this fits togetherOpenClaw’s test launcher translates developer-selected files and suites into Vitest runs and prepares required build artifacts. Package fixtures build their own dependencies, while ordinary E2E tests require shared runtime preparation. flowchart TD
A[Selected files and suites] --> B[Test planner]
B --> C{Runtime tests included?}
C -->|No| D[Package contract lane]
C -->|Yes| E[Shared E2E preparation]
D --> F[Fixture-owned package builds]
E --> G[Combined E2E run]
F --> H[Test results]
G --> H
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +150, Other +6. Total +156 across 12 files. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep package-only preparation owned by the fixtures and preserve the established shared E2E owner for mixed selections. Do we have a high-confidence way to reproduce the issue? Yes, from source: pinned main routes the standalone SDK contract through E2E preparation and forwards file operands that narrow whole-suite selection; this review did not execute those paths. Is this the best way to solve the issue? Yes. Generalizing the existing self-building package lane and completing its extraction inventory repairs the owning boundaries without adding a competing runner or operator setting. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 2730fa118917. LabelsLabel 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)
|
|
@clawsweeper re-review CI exposed a missing leaf module in the native wrapper extraction inventory. The one-line inventory correction makes the unchanged extracted-tooling test pass; the complete wrapper suite passes 71 cases. Package/routing code and test afterimages are unchanged. |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Merged via squash.
|
…penclaw#142159) * fix(testing): run package contracts without unrelated runtime builds * fix(testing): include package paths in extracted PR tooling
What Problem This Solves
Resolves a problem where running the SDK packed-consumer contract first built the unrelated root runtime and private QA artifacts, although the fixture builds its own package dependencies. Combining a whole E2E suite with file selectors could also silently narrow the requested tests.
Why This Change Was Made
Generalize the existing self-building package lane and keep the established shared preparation and serial owner for selections that also contain ordinary E2E tests. Whole-config selections absorb redundant file operands while preserving native filters, explicit package scope, home admission, and captured-output deadlines.
The native wrapper’s dependency inventory also includes the shared package-path module, so extracted tooling can load the same planner.
The SDK fixture also stops returning an unused private command-result object. Failure diagnostics, package locks, registry lifetime, and consumer cleanup remain intact.
User Impact
Developers can run packed SDK contracts without an unrelated Gateway build. Mixed selections retain their requested scope and do not introduce concurrent writers to shared package outputs. Application runtime, public SDK behavior, and operator configuration are unchanged.
Evidence
distwas absent before, after, and in every sampled observation. Neither existing skip/prebuilt control was enabled.Application runtime delta is zero. Tooling/configuration grows by 38 lines to preserve shared preparation, selection, home, and timeout contracts; SDK test support shrinks by six lines. Tests grow by 124 lines with no case or assertion deletions. The cold package run is not a timing-equivalent comparison with the original standalone SDK case.