Skip to content

test: bind release assertions to explicit version contexts - #132264

Merged
steipete merged 1 commit into
mainfrom
steipete/release-beta-fixtures-main-20260828
Aug 29, 2026
Merged

steipete merged 1 commit into
mainfrom
steipete/release-beta-fixtures-main-20260828

Conversation

@steipete

@steipete steipete commented Aug 29, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Resolves release verification failures where stable-only test expectations accidentally depended on the checkout's current version. Beta builds correctly select beta plugin packages, but the CLI, chat and onboarding fixtures still expected stable selectors. The package preflight fixture also hardcoded one version while asking Git to validate the actual source ref.

Why This Change Was Made

Make each selector fixture's version context explicit, exercise stable and beta cases at the existing entry points, and compare source-ref and working-tree validation with their respective manifests. Consolidate repeated mocked install results without changing product selection or consent policy.

The original five-file release repair was adapted to current main: #132135 replaced the automatic-upgrade repair owner and its new startup-repair test already uses VERSION. That obsolete hunk is omitted here; the remaining four files preserve main's release-phase and candidate-artifact fixture changes.

User Impact

No product behavior changes. Release verification tests now distinguish their intended stable/beta contracts from the version of the checkout running them. No package version, selector, dependency, configuration, workflow policy, assertion budget or publication changes.

Evidence

The original beta-context failures were reproduced before repair. The retained release proof passed 308 affected tests and broader owner/sibling coverage. The initial five-file main port passed all 308 tests and the full changed-files gate in clean Linux environment33224560502.

The final four-file port on ddf5b5a5882c44335e168f2a7a874c803663a4a6 passed 314 tests: all four affected suites (303 cases), plus all11 cases in main's replacement startup-repair suite. Formatting and diff checks passed; exact full tracked tree a17aa857354d32c9a9b45b2b1322319094b013da matched before/after. Final clean Linux environment33226402690, Node24.19.0/pnpm12.0.0, canonical frozen install; command1m53.104s/exit0. Both Testboxes were stopped. The wrapper receipt is the command result; stopping the lease may mark its environment Actions run cancelled.

Fresh isolated complete-delta Codex autoreview found no actionable P0 findings. Exact head417ce856 CI33226728664 is green; native landing gates are next. AI-assisted. Full release verification remains separate.

Production LOC:0. Tests:+213/-185 (net+28). No test-only production seam; existing stable selector assertions remain and beta cases extend the same tables.

@steipete steipete self-assigned this Aug 29, 2026
@clawsweeper

clawsweeper Bot commented Aug 29, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@openclaw-barnacle openclaw-barnacle Bot added cli CLI command changes commands Command implementations size: M maintainer Maintainer-authored PR labels Aug 29, 2026
@steipete
steipete marked this pull request as ready for review August 29, 2026 01:33
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. 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 Aug 29, 2026
@clawsweeper

clawsweeper Bot commented Aug 29, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 28, 2026, 9:44 PM ET / August 29, 2026, 01:44 UTC.

ClawSweeper review

What this changes

Makes stable and beta release-version contexts explicit in chat, CLI, onboarding, and package-source preflight tests.

Merge readiness

⚠️ Ready for maintainer review - 2 items remain

Keep open. The introduced test-only coverage matches the current release-selector and package-source contracts; no actionable defect was found. Exact-head CI was still incomplete in the supplied PR state.

Priority: P3
Reviewed head: 417ce85614403cfbe70e76cc9d761edc92485d8c

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The focused test-only patch is consistent with the current selector owners and adds relevant release-context coverage.
Proof confidence 🌊 off-meta tidepool Not applicable: This member-authored PR changes only test fixtures, so the external-contributor real-behavior proof gate does not apply.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This member-authored PR changes only test fixtures, so the external-contributor real-behavior proof gate does not apply.
Evidence reviewed 8 items Introduced surface: The pinned merge-base-to-head diff changes exactly four test files and no production files.
Selector contract: The resolver retains the original record selector while beta installs use the beta dist-tag; stable version-bound installs use the core cohort version.
Release-channel behavior: A beta core version selects beta unless configuration explicitly requests extended-stable, beta, or dev, matching the new beta-core fixture cases.
Findings None None.
Security None None.

How this fits together

Plugin installation selects package versions from the core release context and configured update channel. The changed tests cover that selection through chat commands, CLI setup, onboarding, and release-manifest validation.

flowchart LR
A[Core version and update channel] --> B[Package selector]
B --> C[Chat plugin install]
B --> D[CLI plugin install]
B --> E[Onboarding install]
F[Source and working manifests] --> G[Package preflight]
Loading

Before merge

  • Resolve merge risk (P1) - The supplied check state still had an exact-head check in progress and a truncated check list; merge should wait for the normal required gates.
  • Complete next step (P2) - No repair work is indicated; await the normal exact-head CI gate.
Agent review details

Security

None.

PR surface

Tests +28. Total +28 across 4 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 4 213 185 +28
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 4 213 185 +28

Review metrics

Metric Value Why it matters
Production versus test LOC production 0; tests +213/-185 (net +28) All introduced lines are test coverage and test-fixture consolidation; no runtime behavior or configuration surface changes.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Land the focused deterministic test coverage once exact-head CI completes.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best possible solution:

Land the focused deterministic test coverage once exact-head CI completes.

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

Not applicable: the PR makes test release-context assertions deterministic, and this read-only review did not execute the prior failure scenario.

Is this the best way to solve the issue?

Yes: mocking only the version context at existing entry points preserves the production resolver, while the package test reads each validation target's own manifest.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 740ca0fddf7b.

Labels

Label changes:

  • add P3: This is low-risk release-test determinism and maintenance work with no production behavior change.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This member-authored PR changes only test fixtures, so the external-contributor real-behavior proof gate does not apply.

Label justifications:

  • P3: This is low-risk release-test determinism and maintenance work with no production behavior change.
  • 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: This member-authored PR changes only test fixtures, so the external-contributor real-behavior proof gate does not apply.

Evidence

What I checked:

Likely related people:

  • steipete: Blame attributes the new explicit-version test fixtures to this contributor. (role: recent release/plugin-install test contributor; confidence: high; commits: 417ce8561440; files: src/cli/plugins-cli.install.test.ts, src/commands/onboarding-plugin-install.test.ts, test/scripts/package-source-preflight.test.ts)

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.

@steipete

Copy link
Copy Markdown
Contributor Author

The four-file fixture repair at 417ce85614403cfbe70e76cc9d761edc92485d8c passed exact CI33226728664. I inspected current main740ca0fddf7 and found no new changes in the affected fixtures, install/preflight owners, or replacement startup-repair test. Complete isolated P0 review and the final314-case clean Linux proof are recorded in the body.

Native main/head review is complete. ClawSweeper currently has a started review with no published findings; no rank-up item is being silently waived. Production/config/default/selector changes:0. Proceeding through normal native prepare/merge; full release verification remains separate.

@steipete
steipete merged commit feb1161 into main Aug 29, 2026
255 checks passed
@steipete
steipete deleted the steipete/release-beta-fixtures-main-20260828 branch August 29, 2026 01:51
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cli CLI command changes commands Command implementations maintainer Maintainer-authored PR P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. 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