Skip to content

fix(testing): run package contracts without unrelated runtime builds - #142159

Merged
steipete merged 2 commits into
mainfrom
codex/remove-unused-sdk-fixture-result
Sep 8, 2026
Merged

steipete merged 2 commits into
mainfrom
codex/remove-unused-sdk-fixture-result

Conversation

@steipete

@steipete steipete commented Sep 8, 2026 •

Copy link
Copy Markdown
Contributor

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

  • On a fresh Linux Testbox, the normal two-file package run passed 64 cases; three Windows-only cases were skipped. Root and all four package output directories were absent initially, and the fixture built the required packages and schema. Root dist was absent before, after, and in every sampled observation. Neither existing skip/prebuilt control was enabled.
  • Final routing and build-admission suites passed all 240 cases. Targeted controls reproduced unnecessary preparation, narrowed whole-suite selection, lost native filters, and explicit-package scope widening before their corresponding repairs. Home-admission controls retain the renamed lane's classification and rejection behavior.
  • CI caught the missing shared module in the extracted native wrapper. The existing extracted-tooling test failed before the inventory correction; the complete wrapper suite now passes all 71 cases, including extraction integrity and dependency-pinning controls.
  • Independent Codex review is clean through P2. The retained source-image audit reconstructs the entire 39,565-entry candidate tree, including the deleted old lane config.
  • The original package/routing changes passed all 24 configured validation stages, including core, script, and root-test typechecks and lint; their code and test afterimages remain unchanged. The one-line inventory follow-up passed all 12 selected checks in a separate configured run, whose one-shot lease and temporary checkout are also closed. The native Testbox command exited 0; its one-shot lease, temporary checkout, claim, and recorded processes are closed.

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.

@clawsweeper

clawsweeper Bot commented Sep 8, 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.

@steipete
steipete marked this pull request as ready for review September 8, 2026 12:48
@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts size: M maintainer Maintainer-authored PR labels Sep 8, 2026
@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 Sep 8, 2026
@clawsweeper

clawsweeper Bot commented Sep 8, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 8, 2026, 9:31 AM ET / 13:31 UTC.

ClawSweeper review

What this changes

Routes 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
Reviewed head: a089fd045428870051347be5203d0cf8728af056

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused repair with relevant cold-run observations, selection regression coverage, and no blocking source findings.
Proof confidence 🐚 platinum hermit (4/6) ✨ media proof bonus Sufficient (linked_artifact): The supplied cold Linux Testbox observations exercise the package planner and real fixture builds: 64 cases passed while root dist remained absent without skip/prebuilt controls. The follow-up changes only extraction inventory and reports 71 wrapper cases passing; raw linked logs were inaccessible to this reviewer.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (linked_artifact): The supplied cold Linux Testbox observations exercise the package planner and real fixture builds: 64 cases passed while root dist remained absent without skip/prebuilt controls. The follow-up changes only extraction inventory and reports 71 wrapper cases passing; raw linked logs were inaccessible to this reviewer.
Evidence reviewed 8 items Re-review delta: The only change since the previously reviewed head is the shared package-path module added to the wrapper extraction inventory.
Extraction boundary: The existing wrapper archives inventory-listed files from its trusted anchor and verifies their blob identities. The unchanged extracted-tooling test executes the real planner and publisher import closure, so the added leaf module addresses the reported missing-import failure without changing authorization.
Package and mixed-selection ownership: The planner assigns the two self-building fixtures to the package lane, coalesces ordinary E2E selections, distinguishes native filters from option operands, and preserves whole-config scope. The dedicated config retains E2E setup while removing unrelated global build preparation and serializing package files.
Findings None None.
Security None None.

How this fits together

OpenClaw’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
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests +150, Other +6. Total +156 across 12 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 9 226 76 +150
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 3 7 1 +6
Total 12 233 77 +156

Review metrics

None.

Technical review

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

Labels

Label changes:

  • add proof: sufficient: Contributor real behavior proof is sufficient. The supplied cold Linux Testbox observations exercise the package planner and real fixture builds: 64 cases passed while root dist remained absent without skip/prebuilt controls. The follow-up changes only extraction inventory and reports 71 wrapper cases passing; raw linked logs were inaccessible to this reviewer.

Label justifications:

  • P2: Repairs unnecessary developer test builds and silently narrowed suite selections with a bounded tooling change.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (linked_artifact): The supplied cold Linux Testbox observations exercise the package planner and real fixture builds: 64 cases passed while root dist remained absent without skip/prebuilt controls. The follow-up changes only extraction inventory and reports 71 wrapper cases passing; raw linked logs were inaccessible to this reviewer.
  • proof: sufficient: Contributor real behavior proof is sufficient. The supplied cold Linux Testbox observations exercise the package planner and real fixture builds: 64 cases passed while root dist remained absent without skip/prebuilt controls. The follow-up changes only extraction inventory and reports 71 wrapper cases passing; raw linked logs were inaccessible to this reviewer.

Evidence

What I checked:

  • Re-review delta: The only change since the previously reviewed head is the shared package-path module added to the wrapper extraction inventory. (scripts/pr-lib/wrapper-components.txt:70, a089fd045428)
  • Extraction boundary: The existing wrapper archives inventory-listed files from its trusted anchor and verifies their blob identities. The unchanged extracted-tooling test executes the real planner and publisher import closure, so the added leaf module addresses the reported missing-import failure without changing authorization. (test/scripts/pr-wrappers.test.ts:794, a089fd045428)
  • Package and mixed-selection ownership: The planner assigns the two self-building fixtures to the package lane, coalesces ordinary E2E selections, distinguishes native filters from option operands, and preserves whole-config scope. The dedicated config retains E2E setup while removing unrelated global build preparation and serializing package files. (scripts/test-projects.test-support.mts:3845, a089fd045428)
  • Fixture owns its build: The packed SDK consumer recursively builds workspace dependencies under the existing file lock, packs and installs them into a private consumer directory, and retains failure diagnostics and cleanup. Its command results have no consuming callers. (packages/sdk/src/package.e2e.test-support.ts:367, a089fd045428)
  • Still necessary on pinned main: Pinned main retains Docker-only routing and unconditionally forwards grouped CLI selectors; it lacks the shared package-contract routing and whole-config correction. The latest supplied release tree also retains the old package-docker config. Neither related merged PR implements this remaining planner repair. (scripts/test-projects.test-support.mts:3485, 2730fa118917)
  • Recorded behavior proof and inspection limits: The supplied body snapshot, sourceRevision a0a5a5d4f9d7c915635ea44134e10c1242238f56744c9df957dc7a434f12e542, records a cold Linux Testbox package run with 64 passing cases, three Windows-only skips, fixture-owned package builds, and root dist absent throughout sampling without skip/prebuilt controls. It also records 240 routing/admission cases and 71 wrapper cases passing. The linked Testbox allocation workflow https://github.com/openclaw/openclaw/actions/runs/34224162630 is cancelled; this is not itself a scenario failure or pass. Raw job-log retrieval was blocked by the review network, and no tests were executed locally.

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • vincentkoc: 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-09-08T12:54:31.081Z sha 337ceed :: needs maintainer review before merge. :: none

@steipete

steipete commented Sep 8, 2026

Copy link
Copy Markdown
Contributor Author

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

@clawsweeper

clawsweeper Bot commented Sep 8, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@clawsweeper clawsweeper Bot added the proof: sufficient ClawSweeper judged the real behavior proof convincing. label Sep 8, 2026
@steipete steipete self-assigned this Sep 8, 2026
@steipete
steipete merged commit 1a998f5 into main Sep 8, 2026
226 of 229 checks passed
@steipete
steipete deleted the codex/remove-unused-sdk-fixture-result branch September 8, 2026 14:01
@steipete

steipete commented Sep 8, 2026

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 9, 2026
…penclaw#142159)

* fix(testing): run package contracts without unrelated runtime builds

* fix(testing): include package paths in extracted PR tooling
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts size: M 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