Skip to content

fix(ci): prepare sandbox before repo E2E - #122525

Merged
vincentkoc merged 1 commit into
mainfrom
fix/release-e2e-sandbox-r13
Aug 12, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
fix/release-e2e-sandbox-r13

Conversation

@vincentkoc

Copy link
Copy Markdown
Member

What Problem This Solves

Resolves a release-validation problem where the repository E2E lane could run without the sandbox image it exercises and could time out after 60 minutes on non-full profiles.

Why This Change Was Made

The reusable release workflow now builds the canonical sandbox image before starting repository E2E and gives that lane a consistent 90-minute budget. Workflow guards lock both the ordering and timeout without changing the sandbox setup script.

User Impact

Maintainers get deterministic repository E2E validation for frozen release candidates instead of a missing-prerequisite failure or premature timeout.

Evidence

  • node scripts/run-vitest.mjs test/scripts/ci-workflow-guards.test.ts (114 passed, 2 skipped)
  • node scripts/check-changed.mjs -- .github/workflows/openclaw-live-and-e2e-checks-reusable.yml test/scripts/ci-workflow-guards.test.ts (Testbox green; testRoot and tooling lanes)
  • git diff --check
  • Autoreview: clean, no accepted/actionable findings

AI-assisted: yes. The change and evidence were reviewed by the maintainer before publication.

@clawsweeper

clawsweeper Bot commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@openclaw-barnacle openclaw-barnacle Bot added size: XS maintainer Maintainer-authored PR labels Aug 12, 2026
@vincentkoc vincentkoc self-assigned this Aug 12, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review August 12, 2026 07:25
@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper review

@clawsweeper

clawsweeper Bot commented Aug 12, 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: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper status

@clawsweeper

clawsweeper Bot commented Aug 12, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper status:

  • Current PR: 122525
  • Branch: fix/release-e2e-sandbox-r13
  • ClawSweeper PR: no
  • Automerge: not-enabled
  • Automerge job: jobs/openclaw/inbox/automerge-openclaw-openclaw-122525.md
  • Merge state: UNKNOWN
  • Checks: SUCCESS:74 SKIPPED:27 NEUTRAL:1

@clawsweeper clawsweeper Bot added merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. P2 Normal backlog priority with limited blast radius. 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. labels Aug 12, 2026
@clawsweeper

clawsweeper Bot commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 12, 2026, 4:05 AM ET / 08:05 UTC.

ClawSweeper review

What this changes

The PR builds OpenClaw’s default sandbox image before repository E2E in the reusable release workflow and gives that job a fixed 90-minute timeout.

Merge readiness

⚠️ Ready for maintainer review - 2 items remain

Keep open for release-owner review: the PR repairs a source-proven missing prerequisite in the reusable repository-E2E job, but intentionally raises the stable/beta job budget to 90 minutes.

Priority: P2
Reviewed head: d9370bd7ab10ddb1853eb161ee3a088125a0a73a
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The patch is focused, source-aligned, and guarded; remaining approval is the release-time budget choice.
Proof confidence 🌊 off-meta tidepool Not applicable: This is a maintainer-member CI workflow PR, so the external-contributor real-behavior-proof gate does not apply; its targeted workflow guard and exact-head checks remain relevant validation.
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 maintainer-member CI workflow PR, so the external-contributor real-behavior-proof gate does not apply; its targeted workflow guard and exact-head checks remain relevant validation.
Evidence reviewed 6 items Current workflow lacks the prerequisite: Current main runs pnpm test:e2e after Playwright installation, with no sandbox-image build step; its timeout is 60 minutes outside the full profile.
Repository E2E consumes the default sandbox image: The sandboxed-exec E2E test defaults to openclaw-sandbox:bookworm-slim and provisions a Docker sandbox, so an absent image is a concrete failure path.
Canonical builder matches the E2E default: The existing sandbox setup script builds openclaw-sandbox:bookworm-slim unless explicitly overridden, matching the E2E test default.
Findings None None.
Security None None.

How this fits together

Release validation calls a reusable workflow that checks out the selected revision, builds artifacts, and runs repository E2E. The E2E suite includes Docker-sandbox tests that require the default sandbox image to exist before test execution.

flowchart LR
  A[Release workflow caller] --> B[Reusable validation workflow]
  B --> C[Repository E2E job]
  C --> D[Build artifacts and browser]
  D --> E[Build sandbox image]
  E --> F[Repository E2E suite]
  F --> G[Release validation result]
Loading

Decision needed

Question Recommendation
Should stable and beta repository-E2E validation receive the fixed 90-minute budget now that sandbox-image preparation runs inside the job? Approve the 90-minute budget: Accept the bounded release-time increase so every repository-E2E profile builds the required sandbox image before running tests.

Why: The source proves the prerequisite gap, but the added timeout is a release-capacity policy choice rather than a correctness fact.

Before merge

  • Resolve merge risk (P2) - The fixed 90-minute cap now covers both sandbox-image construction and repository E2E for non-full release profiles; the release owner should explicitly accept that capacity and timeout tradeoff.
Agent review details

Security

None.

PR surface

Tests +8, Config +3. Total +11 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 8 0 +8
Docs 0 0 0 0
Config 1 4 1 +3
Generated 0 0 0 0
Other 0 0 0 0
Total 2 12 1 +11

Review metrics

Metric Value Why it matters
Production versus test delta workflow +3/-1, tests +8/-0 The small workflow behavior change is paired with a structural guard for timeout and prerequisite ordering.

Merge-risk options

Maintainer options:

  1. Approve the unified release budget (recommended)
    Accept the 90-minute repository-E2E timeout after confirming it is appropriate for stable and beta release capacity.
  2. Prove a tighter budget
    Keep profile-specific limits only with an exact release-lane run showing image preparation and E2E complete within the selected limit.

Technical review

Best possible solution:

Keep the canonical sandbox builder in the reusable E2E job, retain the ordering guard, and use a release-owner-approved budget that covers both image preparation and the suite.

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

Yes, from source: current main’s job runs repository E2E without creating the default image required by sandbox E2E tests; this read-only review did not execute the release lane.

Is this the best way to solve the issue?

Yes: the reusable job owns the prerequisite boundary, and it invokes the existing canonical image builder instead of duplicating setup in individual tests.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 5a643e354310.

Labels

Label changes:

  • add P2: This is a bounded release-validation reliability repair with no evidence of a current user-facing outage.
  • add merge-risk: 🚨 automation: The reusable workflow changes repository-E2E ordering and the timeout used by release callers.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool 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 maintainer-member CI workflow PR, so the external-contributor real-behavior-proof gate does not apply; its targeted workflow guard and exact-head checks remain relevant validation.

Label justifications:

  • P2: This is a bounded release-validation reliability repair with no evidence of a current user-facing outage.
  • merge-risk: 🚨 automation: The reusable workflow changes repository-E2E ordering and the timeout used by release callers.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool 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 maintainer-member CI workflow PR, so the external-contributor real-behavior-proof gate does not apply; its targeted workflow guard and exact-head checks remain relevant validation.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Current-main blame assigns the repository-E2E job and its timeout/test steps to this commit. (role: introduced the current release-E2E job; confidence: high; commits: b82ad646a515; files: .github/workflows/openclaw-live-and-e2e-checks-reusable.yml)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Confirm the 90-minute stable/beta release-E2E budget with the release-workflow owner.

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

Copy link
Copy Markdown
Member Author

Release-owner decision: approved the unified 90-minute stable/beta repository-E2E budget. This is intentional so the job can build the required sandbox image and complete the suite within one bounded release-validation lane.

ClawSweeper reported no actionable findings; its optional rank-up move is satisfied by this explicit approval.

@vincentkoc
vincentkoc merged commit 716f996 into main Aug 12, 2026
157 checks passed
@vincentkoc
vincentkoc deleted the fix/release-e2e-sandbox-r13 branch August 12, 2026 08:08
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XS 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