Skip to content

test(browser): wait for pane, sheet, gesture and request state in the ui suites - #4179

Merged
devswha merged 4 commits into
mainfrom
fix/q1218-group-e
Nov 18, 2026
Merged

devswha merged 4 commits into
mainfrom
fix/q1218-group-e

Conversation

@devswha

@devswha devswha commented Nov 18, 2026

Copy link
Copy Markdown
Owner

Summary

The three composite browser suites quarantined until 2026-12-18 (ui-regression, ui-contexts-regression,
ui-contexts-layout-regression) run several parts each, and CI recorded several independent failures per suite. The
parts' waits now match the state each next step needs, and the three entries leave the browser quarantine. Test-only.

  • ui-regression: the New workspace folder picker waits for Browse to finish and show ~ (a home with no visible
    subfolder is a valid result) instead of waiting for a first child folder.
  • ui-contexts-regression: phone usage popovers, the empty roster in wake lock, telemetry acknowledgement, the copy
    fixture's prompt and final scroll position, the phone submenu; the pinch swipe models a stopped finger at lift and
    waits for touchend and the wheel queue's drain (Chromium need not deliver a touchmove at the exact endpoint).
  • ui-contexts-layout-regression: the hidden mount hides at the first roster request; split docking waits for the
    browser to accept the drop point, and the title swap waits for the native drag start before measuring.

Three failure sites from CI history stay unexplained: secret-input's below-line masked prompt
(scripts/secret-input-regression.ts), chat-size's watched masked prompt (scripts/chat-size-regression.ts) and
split-view's initial connection (scripts/split-view-regression.ts). None recurred in the 30 suite runs below; if one
returns in CI, its suite goes back into the quarantine with the trace.

Validation

  • CI runner image (herdr-ci-runner:local, BROWSER_WORKERS=6, BROWSER_RETRY=0), 10 passes on the final head: all
    three suites 10/10. (An earlier head failed terminal-pinch and the folder picker 3/3; both were fixed in a98dfc1.)
  • bun run check fast: green.
  • Not run: the other browser scripts (CI runs them on this PR).

Group E CI evidence and the states each check needs:

ui-regression
- Alerts (:961, three onboarding PR retries): granting permission and
  selecting the Alerts action were separate operations. Main already
  keeps an external grant from changing the action to Turn off; wait
  for Chromium to report the grant before selecting the action.
- Held machines snapshot (:121): the compact-roster PR's exact glob
  missed the query string; main matches on URL pathname. Upload batch
  (:108/:121), split focus (:125), transcript (:1137), and touch tab
  menu (:2032) already wait on main for upload progress, the focus
  frame, the transcript mount, and the neighbor tab (#4029).
- Lane caps and site-less retries/AbortError do not identify a remaining
  part. The access and IME fixes already landed separately.

ui-contexts-regression
- Usage (:215/:413/:467): the phone popover follows its sliding drawer.
  Wait until the drawer finishes moving before opening the popover.
- Wake lock (:100, 1 request instead of 0): the empty HTTP roster
  fixture left the preferred WebSocket roster live. Filter that feed
  before reload, await the empty HTTP roster, and check no pane mounted.
- Copy (:83, first fixture line absent): rendered rows can be blank
  before the shell takes the fixture command; wait for its own prompt.
  Edge drag (:343, end exactly 10 lines early): matching top lines can
  agree while a queued 10-line scroll writes. Drain serialized scroll
  requests, then wait for the renderer to show herdr's final top line.
- Pinch (:139, two vs. thirty moves): the CDP call completing does not
  prove the final move arrived, and a quiet frame can precede paced
  wheel reports. Observe the real final touch and lift, then give the
  pacer its frame budget derived from the swipe distance.
- Phone tab menu (:625): some paths reopened More and tapped the
  submenu while More could still be rising or claiming focus. Wait for
  those states at the common tap site.
- Telemetry (:120): a server read could see acknowledgement ahead of
  Playwright's request observer. Subscribe to the actual acknowledgement
  before navigation and verify its version and server state separately.
  The :118 retry used an obsolete notice locator; main uses its role.
- Mobile tabs (:334) and touch typeahead (:145) already use the true
  tablet strip and hold the create answer (#4031). The old typeahead
  no-receipt assertion (:369) predates secret receipt IDs and the
  disconnect/no-draft check (#4034). The old secret result-file race
  (:110) was fixed in #3974. The below-line masked field timeout
  (:171) still occurred on main; the trace cannot tell whether the
  fixture command, renderer, or prompt detection was first to diverge.

ui-contexts-layout-regression
- Hidden mount (:1154, watched while hidden): the HTTP route hid the
  page after fetching, so the socket could mount the pane first. Hide
  when the initial roster read starts, before either transport returns.
  The held-input timeout is already fixed by #4031. The idle-secret
  watched prompt and remaining aggregate errors lack a confirmed cause.
- Split dock (:86): the right preview could come from an earlier drag
  event and a duplicate mouse move need not emit another. Wait for the
  browser's accepted drag event at the release point, while preserving
  the deliberate target-replacement case. Swap (:507): wait for native
  dragstart on the hittable title before measuring the target and await
  the target mark. The startup connection timeout (:49) has no earlier
  evidence to distinguish a selection, socket, or attach failure.

Keep all three quarantine entries for those unresolved and unidentified
signatures. Typecheck and 33 conventions tests pass. Browser execution
is reserved for CI.
The three Group E CI-image runs timed out at the same two waits.

Terminal pinch: the 0.3-step swipe never satisfied the exact last-move
coordinate predicate at line 125. CDP can coalesce or omit short moves,
and the terminal computes glide from the timestamps of the events it
actually gets. Timestamp the injected gesture so any delivered move is
old enough at lift. Keep observing the delivered touchend and let the
wheel pacer drain before checking the same wheel counts.

Core UI: the full log showed the New workspace folder picker, not an
Alerts failure. The picker can successfully list a home directory with
no visible subfolders, so there need not be a first .dir-browser-item.
Wait for Browse to resolve and display the home path, then check that
the Directory input still says ~. Drop the extra Alerts grant wait from
f3141c5; the app reads permission on click and the existing assertions
observe the result.

Keep quarantine unchanged. Browser verification stays with the CI runner.
With the part waits of f3141c5 and a98dfc1, ui-regression, ui-contexts-regression and ui-contexts-layout-regression each passed 10/10 in the CI runner image. Three failure sites from CI history remain unexplained (secret-input's masked prompt, chat-size's watched masked prompt, split-view's initial connection); none recurred in those 30 runs. If one comes back in CI, its suite goes back into the quarantine with the trace.
@coderabbitai

coderabbitai Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Summary

Summary by CodeRabbit

  • Tests
    • Expanded browser regression coverage for hidden-page mounting during machine loading, pane drops at the final pointer position, and telemetry acknowledgements.
    • Improved checks for terminal scrolling and touch gestures, workspace navigation, usage drawer behavior, and wake-lock preferences.
    • Removed several UI regression checks from the browser-test quarantine list.

This pull request updates browser regression checks for page state, split-view dragging, terminal synchronization, telemetry, and wake-lock fixtures. It also removes three scripts from the CI browser quarantine list.

Changes: Browser regression checks

Layer / File(s) Summary
Page and drawer state checks
scripts/chat-size-regression.ts, scripts/tab-menu-regression.ts, scripts/ui-regression.ts, scripts/usage-regression.ts
The checks wait for the roster request to start while the page is hidden, the tab sheet to take focus, the home path to resolve, and the usage drawer to finish opening.
Split-view drag checks
scripts/split-view-regression.ts
Drop checks now verify acceptance at the destination coordinates. Swap drags start from the title and target the destination title; both swap scenarios use the shared helper.
Terminal copy and pinch checks
scripts/terminal-copy-regression.ts, scripts/terminal-pinch-regression.ts
The copy check tracks scroll requests and waits for the displayed row to match the visible top line. The pinch probe waits for touch-end, fling completion, and paced wheel reports.
Telemetry and wake-lock request checks
scripts/telemetry-regression.ts, scripts/wake-lock-regression.ts
The telemetry check verifies the acknowledgement’s notice version. The wake-lock check filters machine events and verifies a successful roster response and an empty pane fixture.

CI browser quarantine entries

Layer / File(s) Summary
Remove quarantine entries
scripts/ci-browser-quarantine.ts
The quarantine list no longer includes ui-contexts-layout-regression.ts, ui-contexts-regression.ts, or ui-regression.ts.

Estimated code review effort: 3 (Moderate) | ~25 minutes

Change: Other

Possibly related issues

  • devswha/ovis#4026 — The report names several regression suites and wait sites changed here. This pull request updates checks at those sites, but does not address every failure site listed in the report.
Merge Risk: Minimal · up to 683d9

This change only adjusts browser regression test waits and removes three suites from CI quarantine. It does not affect production behavior. The main residual risk is that a suite flakes in CI, and the author has said such a suite would go back into quarantine.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title "test(browser): wait for pane, sheet, gesture and request state in the ui suites" matches the main change. The PR updates waits in the three composite browser suites so each step waits for t…
Description check Passed The description follows the template's two sections. The Change section describes the problem and resulting behavior: state-based waits in three suites, quarantine removal, and the unexplained CI fail…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title "test(browser): wait for pane, sheet, gesture and request state in the ui suites" matches the main change. The PR updates waits in the three composite browser suites so each step waits for the state it needs, and removes those suites from quarantine. The title is specific and describes the primary change, so it passes.

Full details: Description check

Explanation

The description follows the template's two sections. The Change section describes the problem and resulting behavior: state-based waits in three suites, quarantine removal, and the unexplained CI failure sites. The Validation section lists the commands run (bun run check fast), the CI runner runs with results, and the browser scripts not run. The template asks to link an issue for features, which does not apply to this test-only change. A CONTRIBUTING.md reference and a changelog.d entry are not mentioned, and the description does not state whether contract tests apply. These gaps are minor, so the check passes.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 32628ad and 683d9fe.

Files selected for processing: 10

  • scripts/chat-size-regression.ts
  • scripts/ci-browser-quarantine.ts
  • scripts/split-view-regression.ts
  • scripts/tab-menu-regression.ts
  • scripts/telemetry-regression.ts
  • scripts/terminal-copy-regression.ts
  • scripts/terminal-pinch-regression.ts
  • scripts/ui-regression.ts
  • scripts/usage-regression.ts
  • scripts/wake-lock-regression.ts
Files with no reviewable changes: 1

  • scripts/ci-browser-quarantine.ts

Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 3 remain after this review.

# Conflicts:
#	scripts/ci-browser-quarantine.ts
@devswha
devswha merged commit 9e49272 into main Nov 18, 2026
15 checks passed
@devswha

devswha commented Nov 18, 2026

Copy link
Copy Markdown
Owner Author

Merged through pr-merge at head 683d9fef3. Seen before the merge was asked for: required checks green, no unresolved thread, no conflict, no hold, main not red, no release in progress. CodeRabbit reviewed this head.

Test-only: the ui suites' parts (ui-regression, ui-contexts, ui-contexts-layout) wait for the pane, sheet, gesture and request state they read; the three quarantine entries are removed, kept as is on the lead's word (t10k) with three unexplained historic sites listed in the PR body. Reviews: dori review CLEAR at f10b679; then merges of main (no new review for a test-only merge). Merged by the lane on the lead's standing word. Evidence: all three 10/10 in the CI runner image on the final code, check fast green.

@devswha
devswha deleted the fix/q1218-group-e branch November 18, 2026 20:49
@devswha devswha mentioned this pull request Nov 18, 2026
devswha added a commit that referenced this pull request Nov 18, 2026
Release 0.5.5.

- `package.json` and `herdr-plugin.toml`: 0.5.4 -> 0.5.5.
- `REMOTE_BUNDLE_VERSION` 48 -> 49 (`shared/machines.ts`): the release
guards require it, since the remote bundle's inputs changed after
`remote-v48`. After this merges, `remote-v49` is tagged on the merge
commit and the Remote PC bundles run publishes it before the Release
run. Until the Release run is done, nothing touching `server/`,
`shared/`, `bun.lock` or `patches/` merges.
- `CHANGELOG.md`: the Unreleased notes and all 101 `changelog.d/`
fragments folded under 0.5.5 (dated 2026-11-19), with outside
contributors credited (`by @login` on each of the 26 PRs by authors
outside the maintainer's accounts, checked against each PR's author).
- `release-summaries.json`: the 0.5.5 lists (new 4, improved 4, fixed 5)
in en, ko, ja and zh.
- `telemetry/deployed.json` is unchanged: the Worker sources
(`telemetry/worker.ts`, `shared/telemetry.ts`) match the deploy recorded
in #3922, so this release needs no Worker deploy.

This PR prepares the release only; it waits for the maintainer's word to
merge, and no tag is pushed and no Release run started from it.

## Validation

- `bun scripts/release-guards.ts`: in order ("Release 0.5.5: remote
bundle, telemetry Worker and release metadata are in order"), before and
after the rebase onto main.
- `bun run typecheck`: passed, before and after the rebase.
- Release metadata tests on the host: `scripts/changelog-fold.test.ts`,
`scripts/conventions.test.ts`, `scripts/release-guards.test.ts`,
`scripts/release-notes.test.ts`, `server/release-notes.test.ts`: 93
pass, 0 fail.
- `bun run check fast` in the CI runner container (no network): workflow
syntax, generated types and themes, typecheck, build and unit tests all
ok; unit 19133 pass, 0 fail, 65 skip in 993 files (this includes
`server/updater.test.ts`, kept off the host because it kills processes
by pid).
- `check fast` ran on the tree before the rebase onto #4179 and #4163,
which change only browser regression scripts and their fixtures;
typecheck and the release guards were re-run after it.
- Not run locally: integration and browser suites (CI runs them).

---------

Co-authored-by: sisyphus-dev-ai <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant