Repository navigation
Fix Node CI sandbox image setup for selected E2E shards - #160489
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. Reviewed September 28, 2026, 10:27 AM ET / 14:27 UTC. ClawSweeper reviewWhat this changesThe 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 Review scores
Verification
How this fits togetherCI 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
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +55, Docs 0, Config +18. Total +73 across 3 files. View PR surface stats
Review metrics
Technical reviewBest 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. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
…#160489) Co-authored-by: VACInc <[email protected]>
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 withSandbox 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
openclaw-sandbox:bookworm-slimand runscripts/sandbox-setup.shonly when the selected Linux runner lacks it.Verification / Proof
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).git diff --checkpassed on the source commit before it was cherry-picked ontomain.What Was Not Tested
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:checks-ui-e2e (6/9):ui/src/e2e/chat-user-avatar-alignment.e2e.test.ts(red on main; also red on fix: deliver final replies after unrelated plugin reloads #160009, fix(agents): show activity while yielded parents resume #160039, fix(sessions): keep steering queued while the target is busy #160490)checks-ui-e2e (5/9):ui/src/e2e/model-catalog-partial-refresh.e2e.test.ts(red on main; also red on fix: deliver final replies after unrelated plugin reloads #160009)checks-ui-e2e (1/9):ui/src/e2e/chat-flow.sidebar-presentation.e2e.test.ts(red on main; also red on fix: deliver final replies after unrelated plugin reloads #160009)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.