Repository navigation
fix(ci): include runtime resources in build artifact - #98326
qingminglong wants to merge 10 commits into
Conversation
|
Codex review: needs changes before merge. Reviewed July 11, 2026, 5:46 AM ET / 09:46 UTC. Summary PR surface: Tests +36, Config 0, Other +618. Total +654 across 3 files. Reproducibility: yes. from source and recorded evidence. The linked issue documents the missing-resource startup failures, while current source shows the proposed smoke can mask a remaining dependency-closure failure by linking checkout dependencies. Review metrics: 1 noteworthy metric.
Stored data model Root-cause cluster Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Risk before merge
Maintainer options:
Copy recommended automerge instructionNext step before merge
Security Review findings
Review detailsBest possible solution: Retain the contract script, include every externalized OpenClaw workspace distribution required at runtime, and make the extracted smoke resolve those outputs only from the archive while borrowing only third-party dependencies. Do we have a high-confidence way to reproduce the issue? Yes from source and recorded evidence. The linked issue documents the missing-resource startup failures, while current source shows the proposed smoke can mask a remaining dependency-closure failure by linking checkout dependencies. Is this the best way to solve the issue? No as written. A contract-owning pack-and-smoke script is the right boundary, but the archive and smoke must be self-consistent for OpenClaw-owned workspace outputs. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 0e1e077f4fd4. Label changesLabel justifications:
Evidence reviewedPR surface: Tests +36, Config 0, Other +618. Total +654 across 3 files. View PR surface stats
Acceptance criteria:
What I checked:
Likely related people:
What the crustacean ranks mean
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
Review history (5 earlier review cycles)
|
|
Maintainer update pushed in This keeps the contributor PR branch and credit intact, but replaces the brittle tar invocation with a contract-owning artifact script:
Evidence:
Notes:
|
|
@clawsweeper re-review I pushed fixes on current head What changed:
Local evidence on the PR worktree:
GitHub checks already green on the current head include:
Some broad CI shards are still finishing, but the specific |
|
🦞🧹 I asked ClawSweeper to review this item again. |
|
Have a nice day, please help merge! |
|
Have a nice day, please help merge! |
|
@steipete gentle ping when you have a moment. I noticed the remaining If that automation-risk tradeoff looks acceptable to you, could you please take a final look and merge? |
…conflict # Conflicts: # .github/workflows/ci.yml # test/scripts/ci-workflow-guards.test.ts
|
ClawSweeper status: review started. I am starting a fresh review of this pull request: fix(ci): include runtime resources in build artifact This is item 1/1 in the current shard. Shard 0/1. This placeholder means the worker is alive and reading the current context. I will edit this same comment with the actual review when the claws are done clicking. Crustacean status: shell secured, claws on keyboard, evidence pebbles being sorted. |
Closes #98276
What Problem This Solves
Fixes an issue where users downloading the CI
dist-runtime-buildartifact for gateway or ACP runtime proof would need local repairs before the artifact could resolve workspace templates and plugin runtime modules.Why This Change Was Made
The runtime artifact now preserves the package-root launcher, package metadata, docs workspace templates, runtime agent templates, and built
dist/dist-runtimeoutputs in the same archive. This keeps the existing package-root resolvers forsrc/agents/templates,docs/reference/templates, anddist/plugins/runtimeworking from the extracted artifact instead of requiring local copies or symlink repairs.User Impact
Developers and proof workflows can use the CI runtime artifact as a pinned runtime input with the packaged template and plugin runtime layout present. This does not claim the downstream evaOS visible-agent ACP behavior is fixed; it only fixes the artifact reproducibility gap tracked here.
Evidence
c84f2784df1a6009c32c34342336d24e3ef37fae.git diff --check -- .github/workflows/ci.yml test/scripts/ci-workflow-guards.test.ts scripts/dist-runtime-build-artifact.mjspassed locally on the PR worktree.node --check scripts/dist-runtime-build-artifact.mjspassed locally on the PR worktree.c84f2784df:node scripts/run-oxlint.mjs --tsconfig config/tsconfig/oxlint.scripts.json scripts/dist-runtime-build-artifact.mjspassed.c84f2784df:node scripts/run-vitest.mjs test/scripts/ci-workflow-guards.test.tspassed, 33 tests.c84f2784df:node_modules\.bin\oxfmt.cmd --check --threads=1 scripts/dist-runtime-build-artifact.mjs test/scripts/ci-workflow-guards.test.tspassed.c84f2784df:python .agents\skills\autoreview\scripts\autoreview --mode commit --commit f002d0df1bwas clean, with no accepted/actionable findings.Real behavior proofpassed on July 2, 2026: https://github.com/openclaw/openclaw/actions/runs/28606714095/job/84828724242.check-lint,build-artifacts, Blacksmith Testboxcheck, and Blacksmith ARM Testboxcheck-armare passing on the PR.0223caf09c: localpnpm build:ci-artifactspassed; localnode scripts/dist-runtime-build-artifact.mjs pack-and-smoke --archive dist-runtime-build.tar.zstproducedsha256=8252ae210644893218abbcbf254ac281ca32ba9847ab5faeb8c595ea2289cb24,entries=13234, ACP import passed, and Gateway/readyzpassed with the bundledbrowserplugin loaded; Crabbox remote Azure runrun_412298228807producedsha256=72c9f1235f2a9623f014762fb5fda04207a5d225cb3617049fbd2a8386782ee9,entries=13234, ACP import passed, and Gateway/readyzpassed with the bundledbrowserplugin loaded.openclaw.mjs,package.json,docs/reference/templates,src/agents/templates,dist, anddist-runtime, while rejecting broad source/package roots outside the runtime-owned template paths; current-head checks show no relevant failed or pending checks.