Repository navigation
ci: defer slow real-Gateway UI proofs to release validation - #155996
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 22, 2026, 8:27 PM ET / September 23, 2026, 00:27 UTC (Revision 4). ClawSweeper reviewWhat this changesMoves six slow browser-and-Gateway test suites from ordinary main CI to full manual and release validation, using the shared test-selection planner. Merge readiness✅ Ready for maintainer review The PR remains useful and has no actionable correctness findings. The completed release-tier qualification and recorded test costs resolve the prior review requests; the maintainer-owned contribution should proceed through normal merge gates. Priority: P3 Review scores
Verification
How this fits togetherOpenClaw’s CI planner selects tests from the event type and changed files. The real-Gateway browser job now consumes that selection while canonical test configurations retain the complete release inventory. flowchart TD
A[CI event and changed files] --> B[Shared test planner]
B --> C{Full validation?}
C -->|Yes| D[Complete browser test inventory]
C -->|No| E[Ordinary selection with direct edits retained]
D --> F[Real Gateway browser job]
E --> F
F --> G[Test results and diagnostics]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +56, Docs +1, Config +25, Other +10. Total +92 across 12 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep one shared selection owner, complete release coverage, and unchanged test contracts while reducing ordinary main-CI cost. Do we have a high-confidence way to reproduce the issue? Not applicable to a product defect: native CI timings establish the operational cost, and paired ordinary/full-validation results exercise the changed selection. Is this the best way to solve the issue? Yes. Extending the existing release-tier selector and sharing the canonical inventory avoids competing selection rules while retaining full-validation coverage. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against a61c909ac91c. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
History |
…#155996) * ci: defer slow real-Gateway UI proofs to release validation * test(ci): name the release-only UI selection fixture
What Problem This Solves
Main-shaped CI spends more than 13 minutes in the real-Gateway Control UI test step. This moves six slow browser/Gateway compositions into the existing full-release tier while preserving their complete execution and faster contract coverage.
Related: #155979. Its fixture optimizations are already on main and remain intact.
User Impact
No product behavior changes. Ordinary PRs already omit this real-Gateway proof job; this change removes six files from ordinary main-shaped selection. Full manual CI and Full Release Validation's
normal_cichild retain them. Failures unique to these compositions can now first surface during release validation; the named faster siblings below remain in ordinary CI.Why This Change Was Made
RELEASE_ONLY_UI_TEST_FILESnow owns the six paths alongside the existing three UI matrices. The real-Gateway job consumes the same packed UI selection as ordinary UI E2E. The complete real-Gateway inventory moves to the existing lightweight path owner, so both the planner and canonical configs retain QA Lab membership without loading Vitest during preflight. The prebuilt job consumes its canonical config; the preceding desktop transport proof remains separate. Historical targets retain their original command.All six test bodies, assertions, deadlines, process isolation, worker limits, and serial/parallel scheduling remain unchanged. No retries or additional jobs are introduced. Main-shaped plans retain directly edited test files; full manual/release selection and historical fallback retain their existing rules. Ordinary PR proof-job admission remains unchanged.
Evidence
Candidate head:
77bf9ea9679e8acd45dad2f25595591a3e561655, based on main3f341061594210e824b05aa20826af23ec0c5c76after TP-E1 merged. Branch autoreview is P2 scoped-clean. The main-shaped real-Gateway job passed 27 files / 49 cases in 573 s of tests and 854 s overall, meeting both targets. Full Release Validation’s real-Gateway job restored and passed 33 files / 63 cases, including all six moved files and their 14 cases.All 36 before/after standalone invocations passed. Every moved file then passed ten additional executions (60 file executions / 140 cases), and all 12 named faster sibling files passed. No auto-merge; this lane does not land the PR. Broader CI is red outside the changed UI tier, as detailed below.
ui/src/e2e/cron-duration-save.real-gateway.e2e.test.tsui/src/e2e/cron-descriptions.e2e.test.ts: “configured duration precision: preserves stagger milliseconds when changing the expression”;ui/src/lib/cron/index.test.ts: “keeps omitted policy fields inherited when editing metadata” and “clears mode, threshold, and cooldown overrides without disabling the policy”.extensions/qa-lab/src/control-ui-automation-management.real-gateway.e2e.test.tssrc/agents/tools/cron-tool.management.test.ts: “forwards a normalized partial update without recapturing creator authority (%s, trigger=%s)”;src/gateway/server-methods/requester-cron-authority.integration.test.ts: “permits the stored mutation only for an admitted manager: %s”.ui/src/e2e/quota-reset-status.real-gateway.e2e.test.tssrc/agents/auth-profiles/usage.test.ts: “half-opens a stale long WHAM block and clears it when capacity returns” and “does not apply an available result over a newer WHAM block”;ui/src/e2e/model-providers.e2e.test.ts: “lists configured providers with auth state, quota, billing, and local spend”.ui/src/e2e/session-pr-reader-lifetime.real-gateway.e2e.test.tssrc/gateway/control-ui-session-pr-access.test.ts: “rechecks the original reader after a pending snapshot (%s)” and “keeps pending details bound to the original reader (%s)”;ui/src/e2e/chat-pull-requests.e2e.test.ts: “pins detected PR chips above the composer with rate-limit staleness”.ui/src/e2e/chat-collaborator-scroll.real-gateway.e2e.test.tsui/src/e2e/chat-collaborator-scroll.e2e.test.ts: “keeps the viewport stable when a collaborator sends a follow-up while %s” and “holds the reader anchor across another identified client’s send while %s”, covering following, reading, older history, and near-bottom states.ui/src/e2e/mcp-app-conformance.e2e.test.tssrc/gateway/mcp-app-standalone-cancellation.test.ts: “owns the HTTP request lifetime (disconnect=%s)”;src/gateway/server-methods/mcp-app.test.ts: “rechecks current widget authority for every interactive capability”;ui/src/components/mcp-app-view.test.ts: “pushes live theme and container changes and cleans up their observers”.The after column measures retained release execution, not a speedup within these unchanged files. Standalone seconds are not additive job-wall savings. Ordinary PR-plan savings are zero. The six omitted files account for 401.050 s of baseline standalone command wall and 301.187 aggregate module-seconds, measured on Linux in three independent invocations each. The exact-head native job passed 27 files / 49 cases, with none of the six moved files executed. Its test step is 796 → 573 s (223 s removed), and complete job 1,173 → 854 s (319 s observed reduction), meeting both the 600 s test target and 15-minute job target. Standalone release medians sum to 391.580 s after; no per-file runtime optimization is claimed.
Baseline: run 35789708692, job 106955510070, head
99cd5e31b0564d2fcac3df7cbf6c0f5063ca8e94. Linux Testboxes expose four CPUs/~16 GiB; the native CI baseline exposes eight CPUs/~32 GiB, so standalone and native measurements are reported separately.All five guard/planner files passed on the rebased candidate before the type-only fixture correction: 2,666 tests plus 10 existing skips. The three affected selection cases pass after that correction. Two superseded source-text expectations were removed: exact discovered-file/project ownership still guards inventory, and the executable workflow guard checks the desktop exclusion, release selection, and child failure propagation.
Type-aware lint and its negative canary passed. Formatting, 14,341 docs links (zero broken), and
git diff --checkpassed. Canonicalnode scripts/check-changed.mjspassed on Linux at the corrected exact head in 361 s, including realtsgo:scripts,tsgo:test:root, dead-export scan, script and changed-file lint, and shared guards. Strict Control UI locale parity passed in 8 s. Both strict locale checks andOPENCLAW_BUILD_PRIVATE_QA=1 pnpm build:ci-artifactspassed on the exact candidate; its UI build took 9.69 s.Full Release Validation 35797023866 dispatched its CI-only diagnostic group from trusted main against the exact candidate. Its normal-CI real-Gateway job 106979627234 passed all 33 files / 63 cases, explicitly including all six moved files and 14 cases, in 1,258 s tests / 1,719 s job wall. The immutable tuple is validation SHA
77bf9ea9679e8acd45dad2f25595591a3e561655+ tooling SHA370e17484d5876c8ca69437f92021980d5efc57a+ groupci, parent attempt 1. Full parent/child completion is separate from this passing tier job; broader CI has the known fixture failures. No visual or product change; no screenshots are required.Native qualification and remaining CI failures
Real-Gateway job 106977474701 passed on the exact candidate at 573 s test-step wall / 570.676 s Vitest duration / 854 s complete job. The build step also improved 92 s; rebased-main, host and cache differences limit whole-job attribution, so the complete 319 s delta is not claimed as solely tier savings.
The main-shaped qualification and ordinary PR CI completed with failures in two fixtures outside this tier change. The real-Gateway job passed. No failed job was rerun to seek green:
src/plugin-state/plugin-state-worker.test.tshas two stale late-custody blocking assertions. Main commit3f341061594intentionally added late same-process custody delegation. Original compact-plan replay reproduced both assertions; diagnostic observation confirmed both operations fulfill while the parent lease remains open, with 6/5 authority checks. Existing shared-state tests cover late delegation, foreign-owner exclusion, and revoked authority. A bounded test-only repair was verified privately for that owner: 15/15 worker cases (23.38 s wall at one worker) plus 45/45 authority/custody sibling cases (89.79 s including build preparation). The privately verified repair also received P2 scoped-clean review. It awaits successful completion while the parent lease remains open, preserves authority and persisted-value assertions, and removes obsolete polling; the tier PR does not change these fixtures. Original compact replay and the safe diagnostic are separate from this repair proof.src/gateway/session-groups.test.tscase “retains source defaults changed while a rename moves its members” expected/changed/but received state-lifecycle contention. Its authority callback repeatedly performs a synchronous defaults write after the new worker custody boundary; production callbacks only validate authority. Original hosted-11 replay 35797771286 reproduced the exact failure: 384 cases passed, 1 failed, 250.29 s. The proposed owner repair is one-shot race injection while retaining all existing rejection/persistence assertions; it remains unproven. This file belongs to the reserved P-gateway-isolated lane and remains unchanged here.All six requested files received RELEASE-ONLY membership changes. Their test bodies are byte-identical to the baseline; no assertions, cases, retries, workers or budgets were weakened.
All baseline and after file measurements used Linux Blacksmith Testboxes via the repository Crabbox wrapper, Node 24.19.0, four exposed CPUs, approximately 16 GiB RAM, and root
--maxWorkers=2; canonical serial projects retain their own one-worker policy. Baseline source99cd5e31b0564d2fcac3df7cbf6c0f5063ca8e94ran ontbx_01m35km53j3c9f6dgd0fn87ygh(35792374133). Candidate source is the exact PR head. Lease cleanup cancellation is separate from remotely measured command success.The complete Linux baseline shard passed 33 files / 63 cases in 931.420 s command / 927.730 s Vitest. The exact-head main-shaped Testbox replay passed 27 files / 49 cases in 572.190 s command / 569.593 s reporter duration, with 0 unhandled errors. This observed 359.230 s command reduction includes runtime/host variation: untouched delegation and media files also became faster after the rebase, so it is not attributed wholly to tier membership. Native CI remains the primary job proof.
Full Release Validation's broader CI child is still draining native iOS checks at this handoff; its passing real-Gateway job is the tier proof, not a claim of a green full-release parent. The child also reports non-UI failures in
server.tasks-list-metadata.test.tsandserver-methods/task-history.test.ts(active native borrowers during cleanup), andtalk/relay/index.test.ts(host-broker admission / database drainage), in addition to the two fixtures above. These additional Gateway/runtime failures were captured from their failed job logs; they were not reproduced or changed in this six-file lane.Linux samples, shard receipts, endurance and check costs
Each sample below is a separate single-file invocation of
node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e-prebuilt.config.ts --maxWorkers=2 <file>with already prepared CI artifacts. The same canonical projects own before and after scheduling. Endurance used ten independent three-file invocations per cohort under the same worker cap; it was not a retry mechanism.cron-duration-save.real-gateway.e2e.test.tscontrol-ui-automation-management.real-gateway.e2e.test.tsquota-reset-status.real-gateway.e2e.test.tssession-pr-reader-lifetime.real-gateway.e2e.test.tschat-collaborator-scroll.real-gateway.e2e.test.tsmcp-app-conformance.e2e.test.tsBaseline in-shard module walls were 77.637 s cron, 64.278 s automation, 97.102 s quota, 58.956 s reader, 50.788 s scroll, and 39.386 s MCP. The main-shaped after shard selected none of them. These overlapping module durations are not additive job wall.
Candidate leases:
tbx_01m35nyky6sswpqsfaa23bb5nb(cron/automation/quota run 35795814946) andtbx_01m35pdeea0yqx8tszvra0d604(reader/scroll/MCP run 35796497644). Each cohort passed all ten invocations; all six test-file hashes match baseline. All owned leases stopped and temporary proof worktrees were removed.Required one-worker guard/planner command walls were 114.39 s (
ci-workflow-guards), 70.29 s (ci-node-test-plan), 93.48 s (ci-changed-node-test-plan), 190.37 s (test-projects), and 103.39 s (ci-workflow-planning). They are existing large contract suites; the new tier checks extend their existing fixtures. The final named-constant correction's three selected cases passed in 3.84 s command wall; the canonical Linux root typecheck then passed.Qualification 35794606088 was canceled after Linux typechecking caught the task-owned indexed-fixture
string | undefinederror on the preceding head. The named string/Set repair preserves the selected file and assertions; its focused tests, full root typecheck, and fresh branch P2 review passed. No failed CI job was rerun to seek green. Early Crabbox carrier-ref/cwd assertion mistakes were corrected before the affected checks ran; source/tree/base verification remained enabled.