Skip to content

fix: avoid cold-build timeouts in Control UI E2E - #184458

Merged
steipete merged 1 commit into
mainfrom
fix/ui-e2e-runtime-prep-without-prebuilt
Oct 26, 2026
Merged

steipete merged 1 commit into
mainfrom
fix/ui-e2e-runtime-prep-without-prebuilt

Conversation

@steipete

@steipete steipete commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Prevents the production stale-build recovery fixture from timing out when a path-scoped PR selects Control UI E2E without selecting build-artifacts.

User Impact

CI-only change. The recovery test keeps its existing assertions and deadlines; product behavior is unchanged.

Why This Change Was Made

Without prebuilt assets, gateway.entrypoint() runs a cold runtime build through scripts/run-node.mjs inside the helper's 120-second subprocess budget. In #179223, job 121458903277 passed the fixture in 116.197 seconds, while job 121469335096 and job 121475507271 killed the cold build at 120 seconds. The artifact producer was skipped.

Reuse the shard's existing Vitest discovery to prepare the runtime before starting Vitest, only when that shard selects the production recovery fixture. The test helper then consumes the completed build. Delegated production-artifact fixtures remain excluded as before.

CI cost: no new jobs, shards, or runners. The same cold build moves earlier in the existing step; unrelated shards do no runtime preparation, and test discovery is shared with the existing WebKit requirement check.

Evidence

  • Workflow regression passes for selected/unselected shards and preparation failure; it fails against the original workflow.
  • Existing frozen-target and Control UI routing tests pass.
  • Workflow validation, focused lint, formatting, and git diff --check pass.
  • Isolated Codex review: no actionable P0–P2 findings.
  • No-prebuilt proof passed locally: removed both runtime build stamps, cleared production-artifact injection, then ran VITEST=1 node scripts/run-node.mjs --help before the single production recovery test. Cold runtime preparation succeeded in 736.947 seconds; the unchanged test passed against a real Gateway, with the recovery assertion completing in 3.260 seconds (Vitest duration 291.92 seconds including harness and UI setup). This is local Mac timing, not a CI build-time measurement. Node 26.12.1; admission load 21.29 for preparation and 23.22 for the test, with more than 36 GiB internal free space.
  • This PR's planner selects build-artifacts, so the local run above supplies the no-prebuilt proof. Exact-head CI run 40300650173 passed; the native exact-head watcher reports GREEN.
  • The local type-aware check is blocked by the external dependency store's checkout-ownership guard; The passing PR CI supplies that check.

@clawsweeper

clawsweeper Bot commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

ClawSweeper review in progress

ClawSweeper is reviewing this revision. This supersedes any previous blocked status.

View the workflow run.

@steipete
steipete marked this pull request as ready for review October 26, 2026 09:34
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-26T09:43:45.996310Z 598b962 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation size: S labels Oct 26, 2026
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 26, 2026
@steipete
steipete merged commit b765997 into main Oct 26, 2026
190 of 193 checks passed
@steipete
steipete deleted the fix/ui-e2e-runtime-prep-without-prebuilt branch October 26, 2026 10:06
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

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

Labels

clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. docs Improvements or additions to documentation size: S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant