Skip to content

test(qa): cover CLI distribution workflows - #118948

Merged
vincentkoc merged 1 commit into
mainfrom
codex/qa0803-cli-distribution
Aug 3, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
codex/qa0803-cli-distribution

Conversation

@vincentkoc

Copy link
Copy Markdown
Member

What Problem This Solves

Resolves a coverage gap where CLI distribution checks could pass without proving the installed openclaw entrypoint, package-manager-specific global installs, source-checkout installation, or dist-tag-driven update behavior through the operator-facing command.

Why This Change Was Made

Adds canonical QA Lab scenarios and Docker proof lanes for the CLI launcher, hosted and source installers, npm/pnpm/Bun package artifacts, supported Node runtime, local-prefix installs, and stable/beta/dev update channels. The harness records the authoritative install path, package version, and update result at each boundary instead of inferring success from build completion.

Native Windows install.ps1 remains a non-goal: this change does not promote that surface without an exact candidate artifact and execution proof.

User Impact

No production runtime behavior changes. Maintainers gain repeatable regression proof that supported CLI distribution routes produce a working PATH-resolved command and that update channels select the intended package version.

Evidence

  • cli-launcher-runtime: passed in Crabbox run run_0d329e51034d.
  • cli-installer-distribution: passed in Crabbox run run_8249b9136da5.
  • docker-package-install: npm, pnpm, and Bun artifact installs passed in Crabbox run run_ab39619475b8.
  • docker-update-channel-switch: stable, beta dist-tag, and dev flows passed in Crabbox run run_8fb463079d59.
  • Changed-file gate passed in Crabbox run run_63bdfd9ae8b8: formatting, typecheck, lint, SDK/plugin boundaries, script declarations, dependency guards, and import-cycle checks.
  • Focused Vitest coverage passed for the Docker scheduler/plan, QA fixture, install harness, registry fixture, launcher, and project catalog surfaces.
  • git diff --check passed.
  • Autoreview secret scan passed. The reviewer produced no verdict within the enforced 30-minute window and was stopped before commit.

Repair Notes

  • Root cause: existing checks covered pieces of packaging and updates but did not own end-to-end distribution outcomes at the CLI boundary.
  • Architectural owner: QA Lab scenarios plus scripts/e2e Docker distribution harnesses.
  • Canonical fix: exercise the real artifacts and PATH-resolved entrypoint, then emit scenario evidence from the owning boundary.
  • Removed paths: no production paths removed; duplicated single-package-manager assumptions were replaced in the package-install proof.
  • Production LOC delta: 0. QA scenarios, test harnesses, and tests: +608/-49.
  • Sibling coverage: hosted install, source checkout, npm, pnpm, Bun, Node runtime, local prefix, and stable/beta/dev updates.
  • Observed behavior: every promoted scenario passed against the same exact branch contents on Linux.

Change Management

  • Changelog: skipped; test and QA infrastructure only.
  • AI-assisted: yes. The implementation and evidence were reviewed by the maintainer agent workflow; no transcript is attached.

@vincentkoc vincentkoc self-assigned this Aug 3, 2026
@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts docker Docker and sandbox tooling extensions: qa-lab size: L maintainer Maintainer-authored PR labels Aug 3, 2026
@vincentkoc vincentkoc changed the title improve(qa): cover CLI distribution workflows test(qa): cover CLI distribution workflows Aug 3, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review August 3, 2026 20:42
@clawsweeper clawsweeper Bot added 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. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. labels Aug 3, 2026
@clawsweeper

clawsweeper Bot commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 3, 2026, 5:06 PM ET / 21:06 UTC.

ClawSweeper review

What this changes

Adds QA Lab scenarios and Docker regression coverage for OpenClaw’s launcher, hosted and source installers, npm/pnpm/Bun global installs, and stable/beta/dev update-channel selection.

Merge readiness

✅ Ready for maintainer review

Keep this maintainer-authored QA PR open. Current main does not contain its commit, and the branch adds a coherent execution path that validates real CLI distribution boundaries rather than only metadata; source inspection found no discrete patch defect.

Priority: P3
Reviewed head: 426680cab02db8b904c1dbc9e885e3bed37e7758

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The patch uses the existing QA and Docker ownership boundaries, has focused regression coverage, and reports concrete packaged-flow evidence.
Proof confidence 🐚 platinum hermit (4/6) Not applicable: This is a repository-member PR, so the external-contributor proof gate is not applicable; its body nevertheless reports exact successful Crabbox runs for each changed distribution lane.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This is a repository-member PR, so the external-contributor proof gate is not applicable; its body nevertheless reports exact successful Crabbox runs for each changed distribution lane.
Evidence reviewed 6 items PR remains necessary on current main: The PR head is not an ancestor of the supplied current-main commit, so the requested QA coverage is not already implemented there.
Canonical Docker registration: The branch registers the installer-distribution command as a scheduler lane, so the new QA scenario is executable rather than documentation-only metadata.
Bun package proof uses the packaged candidate: The Docker lane copies the Bun smoke harness, mounts the exact OpenClaw tarball, and supplies it through the smoke script’s package-artifact input.
Findings None None.
Security None None.

How this fits together

QA Lab turns declared product scenarios into scheduled Docker lanes that exercise packaged OpenClaw artifacts. These lanes validate the operator-facing openclaw command after installation or update and emit evidence for release and regression workflows.

flowchart LR
  A[Packaged OpenClaw artifact] --> B[Docker distribution lanes]
  C[Installer and update scripts] --> B
  B --> D[PATH-resolved openclaw command]
  D --> E[QA Lab scenarios]
  E --> F[Recorded distribution evidence]
  F --> G[Release and regression checks]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests +116, Config +1, Other +442. Total +559 across 20 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 8 121 5 +116
Docs 0 0 0 0
Config 1 1 0 +1
Generated 0 0 0 0
Other 11 486 44 +442
Total 20 608 49 +559

Review metrics

Metric Value Why it matters
Production versus QA LOC production +0/-0; QA/tests +608/-49 The change grows only QA scenarios, Docker harnesses, and regression coverage; it does not alter the shipped runtime path.

Stored data model

Persistent data-model change detected: serialized state: qa/scenarios/runtime/docker-update-channel-switch.yaml, serialized state: scripts/e2e/bun-global-install-smoke.sh, vector/embedding metadata: qa/scenarios/runtime/docker-package-install.yaml, vector/embedding metadata: test/scripts/docker-build-helper.test.ts, vector/embedding metadata: test/scripts/plugins-assertions.test.ts. Confirm migration or upgrade compatibility proof before merge.

Technical review

Best possible solution:

Land the focused QA coverage after normal maintainer review so supported distribution routes continue to prove the installed CLI and persisted update-channel behavior through their owning Docker harnesses.

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

Not applicable: this PR adds regression coverage rather than repairing a user-reported failure. The supplied evidence identifies real packaged Docker flows that the new coverage executes.

Is this the best way to solve the issue?

Yes. The branch attaches checks to the existing QA Lab and Docker lane owners, exercising installed artifacts and the PATH-resolved CLI instead of introducing a parallel distribution harness.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 76cc60a452dc.

Labels

Label changes:

  • add P3: This is a test and QA-infrastructure improvement with no reported production-runtime behavior change.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit 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 is a repository-member PR, so the external-contributor proof gate is not applicable; its body nevertheless reports exact successful Crabbox runs for each changed distribution lane.

Label justifications:

  • P3: This is a test and QA-infrastructure improvement with no reported production-runtime behavior 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. Not applicable: This is a repository-member PR, so the external-contributor proof gate is not applicable; its body nevertheless reports exact successful Crabbox runs for each changed distribution lane.

Evidence

What I checked:

  • PR remains necessary on current main: The PR head is not an ancestor of the supplied current-main commit, so the requested QA coverage is not already implemented there. (76cc60a452dc)
  • Canonical Docker registration: The branch registers the installer-distribution command as a scheduler lane, so the new QA scenario is executable rather than documentation-only metadata. (scripts/lib/docker-e2e-scenarios.mjs:313, 426680cab02d)
  • Bun package proof uses the packaged candidate: The Docker lane copies the Bun smoke harness, mounts the exact OpenClaw tarball, and supplies it through the smoke script’s package-artifact input. (scripts/e2e/docker-package-install.sh:28, 426680cab02d)
  • Bun harness dependency contract: The Bun smoke script extracts the bundled @openclaw/ai candidate and root manifest from the supplied OpenClaw tarball before packing the override; it does not require an unmounted source packages/ai directory. (scripts/e2e/bun-global-install-smoke.sh:40, 426680cab02d)
  • Real behavior evidence reported: The PR body records successful Crabbox runs for launcher, installer, npm/pnpm/Bun package installs, and update-channel switching, plus a successful changed-file gate. GitHub artifact retrieval was unavailable in this read-only environment, but the author is a repository member and the external-contributor proof gate does not apply. (426680cab02d)
  • Area provenance: Update-channel and package-fixture behavior appears to be long maintained by Peter Steinberger, including the channel-switch follow-up commit used as nearby history evidence. (scripts/e2e/update-channel-switch-docker.sh:1, 6a00be5f90ed)

Likely related people:

  • Peter Steinberger: History for the package-install, Bun smoke, and update-channel scripts includes the channel-switch follow-up and package-fixture stabilization work under this author. (role: recent area contributor; confidence: high; commits: 6a00be5f90ed, aad31817ef07, 82b928232e07; files: scripts/e2e/update-channel-switch-docker.sh, scripts/e2e/docker-package-install.sh, scripts/e2e/bun-global-install-smoke.sh)

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.

@vincentkoc
vincentkoc merged commit 5b1b1e0 into main Aug 3, 2026
169 of 176 checks passed
@vincentkoc
vincentkoc deleted the codex/qa0803-cli-distribution branch August 3, 2026 21:09
vincentkoc added a commit that referenced this pull request Aug 3, 2026
* origin/main:
  test(ui): add shell and PWA primary QA proof (#118788)
  test(qa): cover CLI distribution workflows (#118948)
  chore(i18n): refresh native locales (#118883)
  test(qa): prove plugin tool ownership in gateway flow (#118958)
  docs: correct onboarding risk flags and Google Chat credential shapes (#118936)
  fix(imessage): honor explicitly enabled accounts during startup (#118944)
  test(gateway): cover client transport defaults (#118798)
  fix(signal): normalize accounts during noninteractive setup (#118932)
  fix(msteams): enable channels for federated environment credentials (#118931)
  fix(openai): enforce final transcript bounds before callback delivery (#118928)
  test(tasks): cover plugin-managed flows (#118919)

# Conflicts:
#	qa/scenarios/runtime/docker-package-install.yaml
vincentkoc added a commit that referenced this pull request Aug 3, 2026
…-worker-update-20260803

* origin/main: (48 commits)
  test(ui): add shell and PWA primary QA proof (#118788)
  test(qa): cover CLI distribution workflows (#118948)
  chore(i18n): refresh native locales (#118883)
  test(qa): prove plugin tool ownership in gateway flow (#118958)
  docs: correct onboarding risk flags and Google Chat credential shapes (#118936)
  fix(imessage): honor explicitly enabled accounts during startup (#118944)
  test(gateway): cover client transport defaults (#118798)
  fix(signal): normalize accounts during noninteractive setup (#118932)
  fix(msteams): enable channels for federated environment credentials (#118931)
  fix(openai): enforce final transcript bounds before callback delivery (#118928)
  test(tasks): cover plugin-managed flows (#118919)
  test(agents): prove process control roundtrip (#118843)
  test(qa): add memory redaction boundary coverage (#118916)
  fix(kilocode): model discovery overstates the usable context window (#118868)
  fix(media): isolate generated-provider text from delivery directives (#118780)
  test(gateway): add node control-plane QA coverage (#118784)
  fix(config): reject unsupported diagnostics otel grpc (#93087)
  fix(providers): recognize configured media credentials across provider boundaries (#118761)
  refactor: delete dead post-landing plugin/hooks scaffolding (#118920)
  fix(cron): deliver child results after heartbeat-only parent responses (#118743)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docker Docker and sandbox tooling extensions: qa-lab 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. scripts Repository scripts size: L 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