Skip to content

chore(docker): execute Compose and package artifact proofs - #101045

Merged
RomneyDa merged 6 commits into
mainfrom
dallin/wave2-docker-package-proofs
Jul 6, 2026
Merged

RomneyDa merged 6 commits into
mainfrom
dallin/wave2-docker-package-proofs

Conversation

@RomneyDa

@RomneyDa RomneyDa commented Jul 6, 2026 •

Copy link
Copy Markdown
Member

Closes #101039

What Problem This Solves

Resolves a problem where the Docker Compose and package-artifact QA scenarios could pass from helper-level assertions without launching the documented Compose services or installing and executing the real package tarball in a target container.

Why This Change Was Made

The scenarios now run through the existing Docker scheduler, image catalog, package builder, and shared script-evidence writer. compose-setup starts the documented Gateway and CLI topology from the package-backed functional image. docker-package-install installs the canonical tarball in the scheduler-selected bare image. Both record exact package, image, and container identities.

The package scripts use the concise names test:docker:compose-setup and test:docker:package-install. The evidence producer and identity writer are TypeScript; the two orchestration entrypoints remain shell because they source the shared timeout/resource/package/image helpers in scripts/lib/docker-e2e-image.sh rather than duplicating that contract.

User Impact

There is no product runtime change. Routine smoke-ci QA remains container-free for these scenarios, while the release profile and explicit targeted runs execute the real package and Compose proofs.

Evidence

  • Blacksmith Testbox through Crabbox: provider blacksmith-testbox, id tbx_01kwwe59na8t8831nkap79zgr0.
  • Focused validation: formatting and shell syntax passed; 246 focused assertions passed; pnpm tsgo passed.
  • Package install proof: [email protected], package sha256 7eb6cda947fcf86466e639c1e766613a91c4f06f4c5a3a80ea71748d582bee5f, bare image sha256:2e76c6d3b08651cfed33c26d144ad794a027c2dfe5a4600fd67397d87fa287db, target container 3ca6527cdd63ee28332f6f3f9155ce729ae2705a8a127a585f314c6d3753c476; installed CLI version and help commands passed.
  • Compose proof: same package tarball, functional image sha256:2fa0d2f4b01ff5112234a9c7a0f42fed719162f96d8e4554bb4f45d228a5b90c, Gateway container a178aedda6b0f5f8ddfe5de2b08c3fbecaff8a174270de4ca79849645b1247c1, CLI container d5b6c9cab8d702c1a241609397f59dc5ed8c8b5a186e47eaf35fb2fc93267425; Gateway and CLI health commands passed.
  • Fresh local-change autoreview: clean, with no accepted/actionable findings.

AI-assisted change; implementation and evidence were reviewed and validated as described above.

@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts docker Docker and sandbox tooling extensions: qa-lab size: L maintainer Maintainer-authored PR labels Jul 6, 2026
@RomneyDa

RomneyDa commented Jul 6, 2026

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Jul 6, 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 repository_dispatch).
Result: the existing ClawSweeper review comment will be edited in place when the review finishes.

@RomneyDa

RomneyDa commented Jul 6, 2026 •

Copy link
Copy Markdown
Member Author

Exact-head Docker proof is complete for cda4cc52917cf1fe9b6b26826fef743c210b3a7e.

  • Workflow: OpenClaw Live And E2E Checks (Reusable), run 28811235895 — passed.
  • package-openclaw-for-docker: package [email protected], sha256 a93f24ece41a854d050993ce1f5d7a1b823bdef1885dbfe6953093eb11676d76; bare image ID sha256:bbaf2b1a7704d9a52a936c3bfef5c10b3b63e4df650ed22ff05a3f56696d82bf; target container 4b0f0422a7a5afe9d2f1168bfb84964ac1474b6023749d68940766ee1060eb42; installed version/help passed.
  • docker-compose-setup: the same package sha256; functional image ID sha256:80541ae79966bc784191d01de563c25dcb6f25b8370b6d51610ac859d0d5af89; Gateway container f47934a909713538fc35df0ec318f4708fe76f078d0cf29f6c1da5015fafed61; CLI container a681ef49efe1f15f5fe9ad491a49aa399d439512c532b908b9f8601557db8dc2; Gateway and CLI health passed.
  • Uploaded evidence artifacts: docker-e2e-package-openclaw-for-docker and docker-e2e-docker-compose-setup.
  • The previously failing checks-node-compact-small-whole-2 CI shard now passes on this head. Focused Testbox proof also passed all 163 test/scripts/docker-build-helper.test.ts assertions and both Docker scenarios on provider blacksmith-testbox, id tbx_01kww4vxpjqqwhwhtmya593d5r.
  • Fresh branch autoreview against origin/main: clean, with no accepted/actionable findings.

No known proof gaps remain for the changed Docker scenarios.

@RomneyDa

RomneyDa commented Jul 6, 2026

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Jul 6, 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 repository_dispatch).
Result: the existing ClawSweeper review comment will be edited in place when the review finishes.

@clawsweeper

clawsweeper Bot commented Jul 6, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed July 6, 2026, 2:21 PM ET / 18:21 UTC.

Summary
Adds script-backed Docker QA artifact proof lanes for Compose and package tarball installs, wires them into package scripts and the Docker scheduler, and adds focused parser/planner/script guard tests.

PR surface: Tests +350, Config +2, Other +305. Total +657 across 11 files.

Reproducibility: yes. source-reproducible: current main's two scenario descriptors still point at helper-level Vitest execution rather than script-backed Docker artifact proofs. I did not execute Docker locally in this read-only review.

Review metrics: 1 noteworthy metric.

  • Docker scheduler lanes: 2 added. The PR adds two real Docker artifact proof lanes to the scheduler, which is the maintainer-relevant automation surface affected before merge.

Stored data model
Persistent data-model change detected: vector/embedding metadata: qa/scenarios/runtime/package-openclaw-for-docker.yaml. Confirm migration or upgrade compatibility proof before merge.

Root-cause cluster
Relationship: fixed_by_candidate
Canonical: #101039
Summary: This PR is the active candidate fix for the canonical Docker QA artifact proof issue; no safer merged or open replacement was found.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Merge readiness
Overall: 🐚 platinum hermit
Proof: 🦞 diamond lobster
Patch quality: 🐚 platinum hermit
Result: ready for maintainer review.

Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch.

Rank-up moves:

  • none.

Next step before merge

  • [P2] No repair-lane work is needed; this open maintainer-labeled PR is already the concrete fix candidate and should proceed through normal review or landing.

Security
Cleared: No concrete security or supply-chain concern was found; the diff adds Docker/npm execution proof scripts but uses the repository's existing local package, image, scheduler, and bounded Docker helper paths.

Review details

Best possible solution:

Land this PR through normal maintainer review if the exact-head Docker proof and CI remain green, then close the linked issue as fixed by the merged change.

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

Yes, source-reproducible: current main's two scenario descriptors still point at helper-level Vitest execution rather than script-backed Docker artifact proofs. I did not execute Docker locally in this read-only review.

Is this the best way to solve the issue?

Yes, this is the best fix shape I found: it reuses the existing QA script-evidence runner, Docker scheduler, package builder, image catalog, and identity recording rather than adding a parallel harness.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 6bc661ce14c8.

Label changes

Label changes:

  • add P2: This is a normal-priority QA evidence bug fix with limited product-runtime blast radius and strong exact-head Docker proof.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster 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: The external-contributor proof gate does not apply to this member-authored PR, but the discussion and reusable workflow include exact-head Docker package and Compose proof.

Label justifications:

  • P2: This is a normal-priority QA evidence bug fix with limited product-runtime blast radius and strong exact-head Docker proof.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The external-contributor proof gate does not apply to this member-authored PR, but the discussion and reusable workflow include exact-head Docker package and Compose proof.
Evidence reviewed

PR surface:

Tests +350, Config +2, Other +305. Total +657 across 11 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 4 350 0 +350
Docs 0 0 0 0
Config 1 2 0 +2
Generated 0 0 0 0
Other 6 329 24 +305
Total 11 681 24 +657

What I checked:

  • Current-main gap: Current main still defines both affected QA scenarios as Vitest helper coverage, so the central issue is not already implemented on main. (qa/scenarios/runtime/docker-compose-setup.yaml:25, 6bc661ce14c8)
  • PR script-backed proof producer: The PR head's producer delegates to scripts/test-docker-all.mjs with the selected lane, Docker log dir, timing file, and artifact identity path, then writes QA script evidence after validating package/image/container identity metadata. (test/e2e/qa-lab/runtime/docker-artifact-proof.ts:133, cda4cc52917c)
  • Compose proof path: The Compose proof builds/reuses the functional image, starts the documented gateway service, checks gateway and CLI health, and records package/image/container identities. (scripts/e2e/docker-compose-setup-docker.sh:47, cda4cc52917c)
  • Package proof path: The package proof installs the prepared tarball into the bare target container, executes the installed CLI version/help commands, and records the target container identity. (scripts/e2e/package-openclaw-for-docker.sh:22, cda4cc52917c)
  • Scheduler contract: The existing Docker scheduler prepares one package tarball for image-backed lanes and passes the lane-specific bare or functional image through laneEnv, matching this PR's lane integration. (scripts/test-docker-all.mjs:989, 6bc661ce14c8)
  • Exact-head proof: Live GitHub run 28811235895 completed successfully at head cda4cc5, including targeted Docker E2E jobs for package-openclaw-for-docker and docker-compose-setup. (cda4cc52917c)

Likely related people:

  • RomneyDa: GitHub commit history shows recent merged work on the two QA scenario descriptors and the shared script-evidence writer, and this PR continues that same QA Docker proof surface. (role: QA scenario and script-evidence contributor; confidence: high; commits: 677c8ff8466d, 96c8338d5bfa, 0cd936cc77bf; files: qa/scenarios/runtime/docker-compose-setup.yaml, qa/scenarios/runtime/package-openclaw-for-docker.yaml, test/e2e/qa-lab/runtime/script-evidence.ts)
  • vincentkoc: GitHub commit history shows repeated recent work on Docker scheduler/package-helper and QA runner stability paths used by the proposed proof lanes. (role: recent Docker scheduler and QA runner contributor; confidence: medium; commits: 75c6a8fff5ca, 84895e927655, d83cd282c602; files: scripts/test-docker-all.mjs, scripts/lib/docker-e2e-scenarios.mjs, extensions/qa-lab/src/test-file-scenario-runner.ts)
What the crustacean ranks mean
  • 🦀 challenger crab: rare, exceptional readiness with strong proof, clean implementation, and convincing validation.
  • 🦞 diamond lobster: very strong readiness with only minor maintainer review expected.
  • 🐚 platinum hermit: good normal PR, likely mergeable with ordinary maintainer review.
  • 🦐 gold shrimp: useful signal, but proof or patch confidence is still limited.
  • 🦪 silver shellfish: thin signal; proof, validation, or implementation needs work.
  • 🧂 unranked krab: not merge-ready because proof is missing/unusable or there are serious correctness or safety concerns.
  • 🌊 off-meta tidepool: rating does not apply to this item.

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.

How this review workflow works
  • 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.

@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. P2 Normal backlog priority with limited blast radius. labels Jul 6, 2026
@RomneyDa

RomneyDa commented Jul 6, 2026

Copy link
Copy Markdown
Member Author

ClawSweeper check-in for exact head cda4cc52917cf1fe9b6b26826fef743c210b3a7e:

  • The current review has no contributor-facing code findings and explicitly says no repair work is needed.
  • I independently checked the “Persistent data-model change: vector/embedding metadata” note and reject it as a classifier false positive:
    • qa/scenarios/runtime/package-openclaw-for-docker.yaml only changes QA scenario metadata and switches execution from a Vitest descriptor to the existing script execution kind with arguments and a timeout.
    • extensions/qa-lab/src/scenario-catalog.ts:85 defines that script execution as catalog metadata, and extensions/qa-lab/src/scenario-catalog.ts:101 defines coverage identifiers as dotted strings.
    • extensions/qa-lab/src/test-file-scenario-runner.ts:103 routes script scenarios, while extensions/qa-lab/src/test-file-scenario-runner.ts:406 maps the catalog metadata into the evidence target.
    • The changed scenario path contains no vector, embedding, database, migration, SQLite, or persistent-state contract.
  • Current main f859d78b6126455d3d56e7e82cfcde69c308251b still has helper-level Vitest execution, so the issue remains source-reproducible there.
  • Exact-head Docker workflow 28811235895 passed both artifact proofs. Standard PR CI is green; the separate Real behavior proof check 28813750501 is currently still running.

No code change or migration proof is warranted. The PR remains ready for normal maintainer review, matching ClawSweeper’s conclusion.

@RomneyDa

RomneyDa commented Jul 6, 2026

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Jul 6, 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 repository_dispatch).
Result: the existing ClawSweeper review comment will be edited in place when the review finishes.

@RomneyDa

RomneyDa commented Jul 6, 2026

Copy link
Copy Markdown
Member Author

QA profile follow-up for exact head 86355a074dbf1b031d2db3de7decb34b6ecc0585:

  • The per-PR smoke-ci profile does not select docker-compose-setup or package-openclaw-for-docker.
  • New-head QA Smoke CI passed with 30 categories / 79 scenarios; neither Docker artifact scenario appears in the execution log, and runner cleanup reported 0 container(s), 0 network(s), 0 volume(s).
  • docker-compose-setup is owned by docker-podman-hosting.container-setup; package-openclaw-for-docker now explicitly owns docker-podman-hosting.image-release-and-validation. Both categories are in the release profile and absent from smoke-ci.
  • extensions/qa-lab/src/coverage-report.test.ts now guards both profile/category mappings.
  • Exact-head release-targeted workflow 28815997191 passed both Docker scenarios:
    • package [email protected], sha256 870069f074f80754cca7a608e968b1a369f1be7bb4a1f202965fd51c57b88350
    • bare image sha256:bbaf2b1a7704d9a52a936c3bfef5c10b3b63e4df650ed22ff05a3f56696d82bf, target container 86f5cf256eebccdc62881644c5ba043fb9b0216eea50c06d79aa509ebac71409
    • functional image sha256:d47349049dd946032ca607b5bd960aeabf1d3813e52d4086c45aa2196cd09816, gateway container 5eaec21cc12cabefc854474ac3a6fba31d8c325dd258689e4445c9244aecb6d2, CLI container ac753bec76bb0de8f21597ef6cb85341a4929cf18b0cc8390d620d630f9c9683

This keeps routine PR smoke container-free while retaining the real package and Compose proofs for release validation and explicit targeted runs.

@RomneyDa

RomneyDa commented Jul 6, 2026

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Jul 6, 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 repository_dispatch).
Result: the existing ClawSweeper review comment will be edited in place when the review finishes.

@RomneyDa

RomneyDa commented Jul 6, 2026

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Jul 6, 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 repository_dispatch).
Result: the existing ClawSweeper review comment will be edited in place when the review finishes.

@RomneyDa

RomneyDa commented Jul 6, 2026

Copy link
Copy Markdown
Member Author

failing qa is unrelated. merging

@RomneyDa
RomneyDa merged commit 66b4dcf into main Jul 6, 2026
116 of 117 checks passed
@RomneyDa
RomneyDa deleted the dallin/wave2-docker-package-proofs branch July 6, 2026 20:05
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 7, 2026
…101045)

* test(docker): prove Compose and package artifacts

* test(docker): use bounded container cleanup

* test(docker): bound package proof launch

* test(qa): keep Docker artifact proofs release-only

* test(docker): simplify artifact proof names

* test(docker): satisfy identity writer lint
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 P2 Normal backlog priority with limited blast radius. 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.

[Bug]: QA Docker proofs do not execute documented artifacts

1 participant