Repository navigation
refactor(ui): adopt shared control-ui e2e suite bootstrap - #119978
Conversation
|
ClawSweeper review is skipped for this landing because the declared GitHub Actions incident prevents its workers from posting, and the operator directed proceeding. Compensating gates: coordinator line-by-line diff review; clean structured Codex autoreview (gpt-5.6-sol); green exact-head CI before the incident; locally passing focused tests (13 e2e files, 19 tests, plus the forced missing-Chromium skip path); and mechanical zero-title-delta verification across all 87 migrated files. |
a2308f9 to
7b6ec50
Compare
|
Baseline comparison blocks incident-mode landing of head The branch local gate passed
Result: 10 shards pass on baseline; 9 fail on baseline, including 2 with incomplete/different failure sets. This does not satisfy the unrelated-on-main equality rule, so the PR is not being landed. Separate scoped proof remains green: 7 focused Control UI E2E files, 10 tests, 0 skips, plus clean three-pass structured Codex autoreview. GitHub's declared Actions incident prevented hosted CI from attaching to the rebased head, but the operator-directed incident-mode landing is now blocked by this baseline comparison. |
7b6ec50 to
2853bdd
Compare
Final incident-mode landing evidenceFinal state: the operator directed incident-mode landing from exact source head The applicable repository rule was followed exactly:
Full-run failure classification
All 10 disputed load-sensitive failures passed focused on the branch. The other 9 failed identically on the latest-main baseline as pre-existing local-environment failures. The comparison identified zero PR-caused failures. Symmetric focused results and load analysis
The original 318-shard concurrent full run took about 44 minutes under full-machine contention and system load 16–20. The focused reruns ran at idle load. All 10 disputed failure shapes were load-sensitive; the old 120s kills were watchdog jitter under that contention, not branch-specific behavior. Scoped change and direct proof
This evidence, the exact-head checks, and the operator's explicit incident-mode direction were the basis for landing while the declared Actions outage prevented the normal hosted attachment path. |
…19978) * test(ui): extend shared e2e suite fixture * refactor(ui): adopt shared e2e suite bootstrap * refactor(ui): migrate page e2e suite bootstrap
What Problem This Solves
Control UI browser E2E files duplicated Chromium resolution, missing-browser gating, browser/server startup and teardown, and per-test context/page cleanup. This made lifecycle fixes repetitive and allowed suites to drift subtly.
Why This Change Was Made
This adopts
createControlUiE2eSuitein 87 previously hand-rolled suites and adds a smallwithPagefixture used by 136 test paths. The shared helper now supports only the variants the migrated files require: server-before-browser ordering, custom server factories, and browser launch options. Existing describe/it names, Chromium skip semantics, timeouts, context options, Gateway scenarios, and assertions are preserved.Thirty-two files keep their explicit lifecycle because they use materially different ownership: standalone or production servers, one browser per test/context, real transport or multi-context cleanup, or always-skip Chromium gates.
User Impact
No product behavior changes. The Control UI E2E lane has one canonical bootstrap and page cleanup path for the clean majority of suites, reducing duplicated test infrastructure while retaining specialized harnesses.
Evidence
env PLAYWRIGHT_CHROMIUM_EXECUTABLE_PATH=/tmp/openclaw-missing-chromium OPENCLAW_UI_E2E_ALLOW_MISSING_CHROMIUM=1 node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts --configLoader runner ui/src/e2e/about.e2e.test.ts— passed with 1 file and 1 test skipped, proving the missing-Chromium gate.node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts --configLoader runner ui/src/e2e/about.e2e.test.ts ui/src/e2e/activity-summaries.e2e.test.ts ui/src/e2e/agent-page-scope.e2e.test.ts ui/src/e2e/avatar-initial-emoji.e2e.test.ts ui/src/e2e/build-info-unicode.e2e.test.ts ui/src/e2e/file-drop-guard.e2e.test.ts ui/src/e2e/mount-recovery.e2e.test.ts ui/src/e2e/worktrees.e2e.test.ts ui/src/pages/chat/background-tasks.e2e.test.ts ui/src/pages/tasks/tasks.e2e.test.ts ui/src/e2e/cron-descriptions.e2e.test.ts ui/src/e2e/session-manager-history.e2e.test.ts ui/src/e2e/chat-active-turn-recovery.e2e.test.ts— 13 files passed, 19 tests passed.node scripts/run-oxlint.mjs $(git diff --name-only -- ui/src)— passed.env CI=1 node scripts/check-changed.mjs— passed locally, including core-test typecheck, format, lint, dead-export, i18n, and repository guards. The normal remote route was attempted first but failed before execution because Blacksmith was unhealthy, Daytona timed out, and Azure required admin-token auth.origin/mainverified all 91 touched test files retain identical test names, assertions, context options, and timeouts.git diff origin/main...HEAD --numstat: production 0 additions / 0 deletions; tests and test support 10,178 additions / 12,049 deletions, net -1,871 LOC across 91 files.