Repository navigation
improve(test): speed up config and device binding browser tests - #192404
Merged
Merged
Conversation
Advance Saved-to-Apply polling with the page clock while preserving config payloads, reloads, acknowledgements, and binding recovery assertions. Co-authored-by: steipete <[email protected]>
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review in progressClawSweeper is reviewing this revision. This supersedes any previous blocked status. |
Collaborator
Author
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
This was referenced Nov 4, 2026
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Nov 4, 2026
…claw#192404) Advance Saved-to-Apply polling with the page clock while preserving config payloads, reloads, acknowledgements, request counts, and binding recovery assertions. All seven browser cases remain covered. Allocate exactly 15 test lines for clock setup, RPC-settled polling, and defaults clock resumption in config/test-lines-allocations/config-form-clock.txt; keep the shared scalar unchanged. Exact-head CI run 41744241640 passed both e2e files. The documented pre-existing-failure route admits the unchanged 46-line test-lines deficit already present on its tested main base; CI remains recorded as failed. Co-authored-by: steipete <[email protected]>
vincentkoc
added a commit
that referenced
this pull request
Nov 4, 2026
* commit 'b4ebd3673fea4932296b92bbc07b7abc4bdc792d': fix(ci): allow serial SDK API reports to finish (#192196) fix(ci): run PostgreSQL checks when its shard planner changes (#191963) fix(ci): model native Linux updater asset entry improve(test): speed up config and device binding browser tests (#192404) improve(ui): show arrivals top right with a contextual session status (#192016) improve(ui): mark error toasts and split two-sentence copy (#192015) fix(sandbox): give dependency builders a writable home (#192390) fix(worktrees): keep archive manifest checks off the main thread (#192358) fix(cron): preserve admitted runs and pacing across unrelated MCP reloads (#192399) improve(ui): stack toasts in a center lane and an arrivals lane (#192014) fix: reclaim abandoned read-only database snapshots (#192368) improve(ui): rebuild the toast on one component with variants and a hover dismiss (#192013) docs: consolidate team server and team setup into one Multiplayer page fix(ci): reconcile remaining unallocated test lines feat: run admitted MCP tools on the worker node that hosts them (#191387)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related: #192116
What Problem This Solves
Config form and device-binding browser tests spend real seconds waiting for Saved to offer Apply changes.
User Impact
No user-visible behavior changes. The same seven E2E cases run faster: summed file medians fall from 35.429s to 16.633s, saving 18.796s (53.1%).
Why This Change Was Made
Reuse the page-clock polling pattern from #192116. Advance one polling window at a time so config RPCs can settle between ticks; resume the defaults clock for later edits and reloads. Preserve every payload, reload, acknowledgement, request-count, Saved, cleared-notice, and inventory-recovery assertion. No negative absence window is shortened.
The two-second grace contract remains owned by
ui/src/lib/config/config-apply-prompt.test.ts; Saved-to-Apply presentation remains covered byui/src/components/settings-save-indicator.test.ts. These E2E files retain the composed browser flows.Test code grows 15 lines (+26/-11).
config/test-lines-allocations/config-form-clock.txtallocates exactly those lines for clock setup, RPC-settled polling, and defaults clock resumption; the shared scalar is unchanged. Whole change: +28/-11, net +17 lines, with no production changes.Evidence
All browser executions and scoped checks ran on the same Blacksmith 16-vCPU Testbox
tbx_01m6hwpwe0p9br50jr7at1y43n, with frozen-lockfile bootstrap: run 41741331852. Baseline was pinned to65a13b12d9609d386dac41a53784d57b710f56aa; candidate file digests match this commit. The conditional device-binding target passed its fresh unchanged baseline before editing.Three baseline and three candidate samples below use native Vitest file-summary durations, including file hooks and excluding shared build/startup. Every sample passed all seven cases. These are file timings, not CI critical-path measurements.
ui/src/e2e/config-form-defaults.e2e.test.tsdevice-binding-state.e2e.test.tsIndividual samples and relevant case medians
config-form-defaults.e2e.test.tsdevice-binding-state.e2e.test.tsEach mutation was paired against unchanged baseline test bytes and the exact candidate bytes. Killed means an existing behavioral assertion failed, not merely a setup or runner failure.
Both binding variants are
removedandcapability-lost. Every baseline kill was retained. All eight production-mutation restorations matched SHA-256 digests, and final restored candidate inputs matched the committed files. No mutation or probe is committed.git diff --checkpassed.Exact-head landing CI
CI run 41744241640, attempt 1 tested head
8e8ed2a011674436df764c1e138214d851f14e66in merge3664ecd108b75710d9b9ceefe2bee1d98d4d759eover mainc16858baa256a33134f35970df04519f48d3d7ed. checks-ui-e2e (1/2) ran and passed all three defaults cases and all four device-binding cases. Security and all other non-aggregate selected CI jobs passed or were intentionally skipped.checks-fast-baseline-ratchets failed only
test-lines: 6,446,293 lines against ceiling 6,446,247, over by 46; net delta +15. Direct comparison of its ordered merge parents shows this PR adds exactly 15 test LF bytes and 15 allocation lines. The tested main base therefore already had 6,446,278 test lines against ceiling 6,446,232: the same 46-line deficit. The shared scalar and checker are unchanged. The classifier marked the job new against an older scheduled main run whose selected scope was not compared; the inspected exact-base arithmetic establishes inherited debt. This landing uses the authorized pre-existing-failure route and retains failed CI; it does not raise the shared baseline or add allocation beyond this PR's own 15 lines.