Skip to content

test(release): pin Kitchen Sink fixture versions - #190757

Open
RomneyDa wants to merge 1 commit into
mainfrom
tideclaw/rri-536-pin-kitchen-sink
Open

RomneyDa wants to merge 1 commit into
mainfrom
tideclaw/rri-536-pin-kitchen-sink

Conversation

@RomneyDa

@RomneyDa RomneyDa commented Nov 2, 2026

Copy link
Copy Markdown
Member

Summary

  • record the external Kitchen Sink npm fixture version on each release branch
  • use the selected target's record in both plugin and RPC Docker lanes instead of resolving latest
  • preserve explicit package overrides and fail clearly when a frozen target lacks a valid version record

Closes the unresolved follow-up from RRI-536.

Testing

  • node scripts/run-vitest.mjs run test/scripts/kitchen-sink-npm-spec.test.ts test/scripts/plugin-prerelease-test-plan.test.ts (28 tests)
  • focused format check
  • focused type-aware oxlint
  • bash -n scripts/e2e/kitchen-sink-plugin-docker.sh scripts/e2e/kitchen-sink-rpc-docker.sh
  • git diff --check

Review

Independent P0–P2 review found no issues, including the selected-target RPC mount path.

Record the Kitchen Sink npm fixture version on each release branch and use it across the plugin and RPC Docker lanes instead of resolving latest. Preserve explicit package overrides and fail closed when a frozen target lacks its version record.

Co-authored-by: RomneyDa <[email protected]>
@clawsweeper

clawsweeper Bot commented Nov 2, 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.

@RomneyDa
RomneyDa force-pushed the tideclaw/rri-536-pin-kitchen-sink branch from 7e71a8b to 414e610 Compare November 2, 2026 01:07
@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts docker Docker and sandbox tooling size: S labels Nov 2, 2026
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 2, 2026
@clawsweeper

clawsweeper Bot commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge.

What this changes

This PR pins Kitchen Sink npm fixtures to a branch-recorded version in the plugin and RPC release-test lanes.

Example: A selected release checkout records Kitchen Sink version 0.4.1.

  • Before: Both lanes default to npm:@openclaw/kitchen-sink@latest, which can change after the release cut.
  • After: Both lanes select npm:@openclaw/[email protected] unless an explicit package override is supplied.

Review scores

Measure Result What it means
Overall readiness 🧂 unranked krab (1/6) Useful scope and a narrow design, but a concrete compiled-entrypoint regression blocks correctness and changed-path runtime evidence is absent.
Proof confidence 🧂 unranked krab (1/6) Real behavior proof is not required for maintainer- or bot-authored pull requests.
Patch quality 🦪 silver shellfish (2/6) 1 actionable review finding remain.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Release maintainers can see frozen validation fail because the external npm fixture changed after the release was cut.
Reason: Observed fixture drift supports the value, and this maintainer-authored PR supplies the direction decision for replacing the floating canary with branch pins.

Merge readiness

⛔ Needs changes before merge - 1 item remains

Keep open: deterministic release fixtures are useful and maintainer-approved, but the new version-file dependency breaks the compiled RPC test entry point.

Priority: P2
Reviewed head: 414e6109eda8a4527beb449588694819d8867a02

Before merge

  • Include the version record in compiled-worker assets (P2) - The RPC walker is compiled into the isolated legacy-finalizer tree for subprocess tests, including the existing parent-signal cleanup regression. This new import-time read resolves npm-version.txt beside the compiled npm-spec module, but preservedModuleBuildAssets never copies that file. Importing the prepared walker therefore throws ENOENT before runCommand can start the fixture, consistent with the exact-head checks-node-compact-small-1 annotation reporting exit before readiness. Add scripts/e2e/lib/kitchen-sink-plugin/npm-version.txt to the existing preserved asset list in scripts/lib/vitest-worker-build-entries.mts and run the affected consumer test.

Findings

  • [P2] Include the version record in compiled-worker assets — scripts/e2e/lib/kitchen-sink-plugin/npm-spec.mts:5-7

Provenance

  • RPC walker floating default: original intent not found (unknown: Host provenance identifies the TypeScript migration as carrying these lines; the scoped search through the earlier JavaScript path encountered unavailable historical blobs, so the default's original introduction remains unknown.)

Tests

  • Low-value test test/scripts/plugin-prerelease-test-plan.test.ts: Remove the newly added source-string checks for variable assignments, diagnostic wording, and scenario names; they mirror implementation text without exercising selected-target fixture resolution.
  • Low-value test test/scripts/kitchen-sink-npm-spec.test.ts: Remove the exported constant's literal-value assertion; the resolver default assertion already covers that value through behavior.
  • Missing end-to-end proof: No supplied Docker execution demonstrates selected-target pinning in both lanes, and no base-red/head-green regression result is shown.
Agent review details

How this fits together

Release-test wrappers select an external plugin fixture, install it into an isolated OpenClaw environment, and check plugin installation and Gateway RPC behavior.

flowchart TD
  A[Selected release checkout] --> B[Recorded fixture version]
  C[Explicit package override] --> D[Docker lane wrappers]
  B --> D
  D --> E[Plugin install sweep]
  D --> F[RPC walker]
  F --> G[Isolated Gateway]
  E --> H[Release test results]
  G --> H
Loading

Technical review

Best possible solution:

Keep the branch pin and register its version file with the existing compiled-worker asset owner.

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

Source establishes both the floating fixture selection on main and the introduced compiled-asset failure; exact-head CI independently reports the affected fixture exiting before readiness, but no target code was run during this read-only review.

Is this the best way to solve the issue?

A branch-owned version record addresses fixture drift without adding configuration, and the smallest complete implementation must also carry that record into the existing compiled-worker layout.

Full review comments:

  • [P2] Include the version record in compiled-worker assets — scripts/e2e/lib/kitchen-sink-plugin/npm-spec.mts:5-7
    The RPC walker is compiled into the isolated legacy-finalizer tree for subprocess tests, including the existing parent-signal cleanup regression. This new import-time read resolves npm-version.txt beside the compiled npm-spec module, but preservedModuleBuildAssets never copies that file. Importing the prepared walker therefore throws ENOENT before runCommand can start the fixture, consistent with the exact-head checks-node-compact-small-1 annotation reporting exit before readiness. Add scripts/e2e/lib/kitchen-sink-plugin/npm-version.txt to the existing preserved asset list in scripts/lib/vitest-worker-build-entries.mts and run the affected consumer test.
    Confidence: 0.99

Overall correctness: patch is incorrect
Overall confidence: 0.98

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Plugin Docker canary selection changes intended behavior with a stated reason (2f3a962: The previous change deliberately used @latest to avoid refreshing the prerelease fixture on every package publication.)
  • Selected-target scenario ownership keeps the original intent (be88af6: Frozen validation uses selected-release scenario contracts rather than imposing current-main assertions on older valid releases.)

Testing

Proof path: unit tests only.

Security

None.

Evidence

Acceptance criteria:

  • node scripts/run-vitest.mjs run test/scripts/kitchen-sink-rpc-walk.test.ts test/scripts/kitchen-sink-npm-spec.test.ts test/scripts/plugin-prerelease-test-plan.test.ts
  • node scripts/run-tsgo.mjs -p test/tsconfig/tsconfig.test.root.tooling.json --incremental
  • bash -n scripts/e2e/kitchen-sink-plugin-docker.sh scripts/e2e/kitchen-sink-rpc-docker.sh
  • git diff --check

What I checked:

Likely related people:

  • Vincent Koc: Raw commit 96cb48b adds scripts/e2e/kitchen-sink-rpc-walk.mts:33 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 96cb48b10e0d; files: scripts/e2e/kitchen-sink-rpc-walk.mts)
  • Dallin Romney: Raw commit be88af6 adds scripts/e2e/kitchen-sink-plugin-docker.sh:8 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: be88af63529a; files: scripts/e2e/kitchen-sink-plugin-docker.sh)

PR surface

Tests +39, Other +50. Total +89 across 7 files. Added test files: 1.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 2 42 3 +39
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 5 57 7 +50
Total 7 99 10 +89

Labels

Label changes:

No label changes.

Label justifications:

  • P2: This is a focused release-test reliability improvement with a repairable tooling regression and no demonstrated application-runtime impact.
  • merge-risk: 🚨 automation: The new import-time file dependency is absent from compiled-worker assets and can terminate the RPC regression fixture before readiness.
  • rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🦪 silver shellfish.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed November 1, 2026, 8:23 PM ET / November 2, 2026, 01:23 UTC.

This branch has not been deployed

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

Labels

docker Docker and sandbox tooling merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. P2 Normal backlog priority with limited blast radius. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. scripts Repository scripts size: S status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants