Repository navigation
test(browser): wait for pane, sheet, gesture and request state in the ui suites - #4179
Conversation
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.
|
No actionable comments were generated in the recent review. Summary
Merge Risk:
|
# Conflicts: # scripts/ci-browser-quarantine.ts
|
Merged through 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. |
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]>
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. Theparts' 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 visiblesubfolder 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 copyfixture's prompt and final scroll position, the phone submenu; the pinch swipe models a stopped finger at lift and
waits for
touchendand 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 thebrowser 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) andsplit-view's initial connection (
scripts/split-view-regression.ts). None recurred in the 30 suite runs below; if onereturns in CI, its suite goes back into the quarantine with the trace.
Validation
herdr-ci-runner:local,BROWSER_WORKERS=6,BROWSER_RETRY=0), 10 passes on the final head: allthree 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.