Skip to content

Fix Node CI sandbox image setup for selected E2E shards - #160489

Merged
VACInc merged 1 commit into
mainfrom
fix/ci-sandbox-image-node-e2e
Sep 28, 2026
Merged

VACInc merged 1 commit into
mainfrom
fix/ci-sandbox-image-node-e2e

Conversation

@VACInc

@VACInc VACInc commented Sep 28, 2026 •

Copy link
Copy Markdown
Member

Summary

High Level TLDR: Build the Docker sandbox image only for Node CI shards that select sandbox container E2E tests, so those tests can run on GitHub-hosted runners.

Root Cause

The changed-node shard failure selected test/e2e/qa-lab/runtime/agent-sandboxed-exec-behavior.e2e.test.ts. That test failed with Sandbox image not found: openclaw-sandbox:bookworm-slim. The Node shard workflow did not prepare this image on a runner without it. The QA profile workflow already builds the image for the same scenarios.

Exact Change

  • Mark a Node matrix row when its selected targets or include patterns can run either sandbox container E2E case. Retain the E2E config fallback when a row has no explicit patterns.
  • Before the Node test step, inspect for openclaw-sandbox:bookworm-slim and run scripts/sandbox-setup.sh only when the selected Linux runner lacks it.
  • Add a workflow-planning regression for selected and unrelated shards, plus a short CI documentation note.

Verification / Proof

  • The new selection regression failed before the workflow change and passed after it.
  • test/scripts/ci-workflow-planning.test.ts: 489/489 passed in 147.31 seconds wall on the isolated worktree (node scripts/run-vitest.mjs test/scripts/ci-workflow-planning.test.ts --maxWorkers=1).
  • Workflow sanity, formatting, lint, and git diff --check passed on the source commit before it was cherry-picked onto main.
  • A local P2 AutoReview found no actionable issue.

What Was Not Tested

  • The Docker image was not built on this local host. The exact-head GitHub Actions run is pending; hosted-runner execution and CI seconds for the new regression will be recorded from that run.
  • No live Gateway or deployed service was changed.

Inherited CI failures (admin exception)

Exact-head run 36434830695 (attempt 2) is red only in UI e2e shards whose failing tests are also red on current main's scheduled run 36437289300 (sha 9fe93a2), in files this PR does not touch:

Main was green on all UI shards at 13:36 (baf2edd) and red after d769e31af2b (#160002); a forward fix for that is being prepared separately. This PR changes .github/workflows/ci.yml, docs/ci.md, and one planning test only. Landed under the AGENTS.md pre-existing-red exception.

@clawsweeper

clawsweeper Bot commented Sep 28, 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.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation size: S labels Sep 28, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 28, 2026
@clawsweeper

clawsweeper Bot commented Sep 28, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 28, 2026, 10:27 AM ET / 14:27 UTC.

ClawSweeper review

What this changes

The branch marks Node CI shards that select Docker sandbox E2E tests, builds the image when absent on Linux, and adds a planning regression and CI documentation.

Merge readiness

✅ Ready for maintainer review

Keep open. Current main still lacks the image setup needed by the reported Node shard, and source inspection found no definite defect in this targeted repair.

Priority: P2
Reviewed head: 7ad45aeefd2fb02044cfb5f017cbebbf2cc660fe

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The focused patch and planning regression are credible, while the changed hosted image-build path has not yet been observed after the fix.
Proof confidence 🦐 gold shrimp (3/6) Not applicable: The changed CI owner selects sandbox E2E rows and prepares their image before Vitest; the captured PR evidence proves planning behavior but does not show an after-fix hosted image build. The MEMBER-authored PR is exempt from the contributor proof gate, and no stored-data contract changes.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The changed CI owner selects sandbox E2E rows and prepares their image before Vitest; the captured PR evidence proves planning behavior but does not show an after-fix hosted image build. The MEMBER-authored PR is exempt from the contributor proof gate, and no stored-data contract changes.
Evidence reviewed 9 items Introduced workflow change: The pinned merge-base-to-head diff adds sandbox-test selection and a conditional image-build step before the Node test step.
Current-main gap: At the fetched main revision, the Node job proceeds from prerequisite setup to resource configuration without preparing the sandbox image.
Sandbox test prerequisite: The selected E2E test defaults to openclaw-sandbox:bookworm-slim before provisioning a Docker sandbox.
Findings None None.
Security None None.

How this fits together

CI planning turns selected tests into Node runner jobs. Sandbox E2E tests then start Docker containers and need the sandbox image available before Vitest runs.

flowchart LR
  A[Selected test targets] --> B{Sandbox test selected?}
  B --> C[Node CI matrix]
  C --> D{Image present?}
  D -->|No| E[Build sandbox image]
  D -->|Yes| F[Run Node tests]
  E --> F
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests +55, Docs 0, Config +18. Total +73 across 3 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 55 0 +55
Docs 1 1 1 0
Config 1 18 0 +18
Generated 0 0 0 0
Other 0 0 0 0
Total 3 74 1 +73

Review metrics

Metric Value Why it matters
Planning-suite cost 489 cases; 147.31 s local wall The PR reports a measured run of the suite containing the new regression; per-file CI seconds were still pending in the captured body.

Technical review

Best possible solution:

Keep image preparation in the Node shard that owns the selected sandbox tests and confirm the repair when that shard next runs on a hosted runner.

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

Yes. A referenced hosted Node job failed in its test step, and current-main source shows that the selected Docker sandbox test needs an image the Node job does not prepare; I did not rerun the job.

Is this the best way to solve the issue?

Yes. The conditional prerequisite follows the existing QA workflow's setup path and is limited to shards that can select the affected tests.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 670415932ee7.

Labels

Label changes:

  • add P2: A selected CI shard cannot run its sandbox E2E test without the image, but the impact is limited to CI validation.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp 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 changed CI owner selects sandbox E2E rows and prepares their image before Vitest; the captured PR evidence proves planning behavior but does not show an after-fix hosted image build. The MEMBER-authored PR is exempt from the contributor proof gate, and no stored-data contract changes.

Label justifications:

  • P2: A selected CI shard cannot run its sandbox E2E test without the image, but the impact is limited to CI validation.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp 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 changed CI owner selects sandbox E2E rows and prepares their image before Vitest; the captured PR evidence proves planning behavior but does not show an after-fix hosted image build. The MEMBER-authored PR is exempt from the contributor proof gate, and no stored-data contract changes.

Evidence

What I checked:

  • Introduced workflow change: The pinned merge-base-to-head diff adds sandbox-test selection and a conditional image-build step before the Node test step. (.github/workflows/ci.yml:2305, 7ad45aeefd2f)
  • Current-main gap: At the fetched main revision, the Node job proceeds from prerequisite setup to resource configuration without preparing the sandbox image. (.github/workflows/ci.yml:4540, 670415932ee7)
  • Sandbox test prerequisite: The selected E2E test defaults to openclaw-sandbox:bookworm-slim before provisioning a Docker sandbox. (test/e2e/qa-lab/runtime/agent-sandboxed-exec-behavior.e2e.test.ts:53, 670415932ee7)
  • Existing QA workflow pattern: The QA profile workflow already invokes the same image setup script when either sandbox scenario is selected. (.github/workflows/qa-profile-evidence.yml:635, 670415932ee7)
  • Planning regression: The added test checks selected, grouped, unrelated, and broad E2E matrix rows, plus the setup step's placement before test execution. The PR body reports a baseline failure and 489 passing cases after the change; those executions were not repeated in this read-only review. (test/scripts/ci-workflow-planning.test.ts:10713, 7ad45aeefd2f)
  • Reported failing job: GitHub job metadata confirms that the referenced changed-node shard failed at Run Node test shard. The specific missing-image message comes from the PR body; the job-log download redirected to a host unavailable to this reviewer.

Likely related people:

  • Peter Steinberger: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Dallin Romney: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Vincent Koc: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

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.

@VACInc VACInc self-assigned this Sep 28, 2026
@VACInc
VACInc merged commit cf7de81 into main Sep 28, 2026
241 of 257 checks passed
@VACInc
VACInc deleted the fix/ci-sandbox-image-node-e2e branch September 28, 2026 15:30
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: S 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