CI: restore web gates and fix the editor startup race #714

Closed
kayg wants to merge 0 commits from fix/ci-web-green-fixtures into dev
Owner

Restores the web CI checks for #697 and #689, with the agreed 300 KB total JavaScript budget unchanged. Supersedes #696, #707, #709 and #713. The bundle work from #696 is already in dev at 26388703; no budget is raised here.

The cached web image lacked ripgrep, which sign-out tests use to inspect their fixture disk. Install it in the image and support older cached images in the workflow; use the public Ubuntu mirror because the inherited Azure mirror stalled. Run app cases with one CI worker because they share a vault and a served shell that update tests rewrite. Allow the complete matrix three hours and report failures immediately; previous runs died at the 60-minute job deadline before printing assertions.

Fix the failures that the complete run exposed:

  • Idle warming waits for the existing session startup promise before building the notes tab. Opening today's editor earlier could join a day before it existed or omit its date heading. The daily-note test holds the startup list until warming runs, then keeps its existing sync, date-heading, disk-write and log assertions.
  • Scripted swipes scroll the row into view and wait until the intended row receives the finger. The callback that checks the target sends the gesture once, so a late list reorder cannot touch its neighbour. Swipe state and content assertions remain.
  • The selector checks both capsule edges at first appearance against the resting target. A pressed option is scaled and is the wrong reference; the original 1.5 px tolerance remains.
  • Duplicate-line shortcuts use complete body anchors. The fixture ID deliberately contains the old short search words, proving that the caret stays out of metadata.

No format rules, test selection, retries, skips or performance budgets are changed. No evidence or artifacts are committed. Reproduction details, first error lines and verbatim gate output are in #697 and #689.

All local gates refreshed in the corrected CI image; wrapper exit 0. Lint includes the filter-motion check. Typecheck and unit tests pass, as do both Rust durability tests and the nine real-server SyncClient tests. Bundle gate passes with unchanged limits: 239.375000 KB first JS, 20.662109 KB first CSS, 299.531250 KB total JS, 37.944336 KB opt-in JS.

Verbatim browser totals:

primitives:
  84 passed (2.3m)
browsers:
  15 skipped
  137 passed (16.7m)
supplemental:
  23 skipped
  61 passed (3.5m)
shortcuts:
  20 skipped
  20 passed (1.1m)
day:
  12 passed (33.8s)

The existing daily-note startup case failed in both desktop browsers before the fix and passes in all four combinations afterward. A controlled moving-row probe failed the original swipe helper in both mobile browsers and passes with the hit-target wait. The selector first-state check passed 20 repeats. The old ambiguous shortcut anchors failed all four browser/platform combinations with a colliding metadata ID; the complete corrected shortcut spec passes. No fixed sleeps were added. Per the job hard rule, app selections were targeted locally; Forgejo runs the complete matrix. Full local gate output and reproduction evidence are in #697 and #689.

Full PR CI is pending.

Head: 66898152f1

Restores the web CI checks for #697 and #689, with the agreed 300 KB total JavaScript budget unchanged. Supersedes #696, #707, #709 and #713. The bundle work from #696 is already in dev at 26388703; no budget is raised here. The cached web image lacked ripgrep, which sign-out tests use to inspect their fixture disk. Install it in the image and support older cached images in the workflow; use the public Ubuntu mirror because the inherited Azure mirror stalled. Run app cases with one CI worker because they share a vault and a served shell that update tests rewrite. Allow the complete matrix three hours and report failures immediately; previous runs died at the 60-minute job deadline before printing assertions. Fix the failures that the complete run exposed: - Idle warming waits for the existing session startup promise before building the notes tab. Opening today's editor earlier could join a day before it existed or omit its date heading. The daily-note test holds the startup list until warming runs, then keeps its existing sync, date-heading, disk-write and log assertions. - Scripted swipes scroll the row into view and wait until the intended row receives the finger. The callback that checks the target sends the gesture once, so a late list reorder cannot touch its neighbour. Swipe state and content assertions remain. - The selector checks both capsule edges at first appearance against the resting target. A pressed option is scaled and is the wrong reference; the original 1.5 px tolerance remains. - Duplicate-line shortcuts use complete body anchors. The fixture ID deliberately contains the old short search words, proving that the caret stays out of metadata. No format rules, test selection, retries, skips or performance budgets are changed. No evidence or artifacts are committed. Reproduction details, first error lines and verbatim gate output are in #697 and #689. All local gates refreshed in the corrected CI image; wrapper exit 0. Lint includes the filter-motion check. Typecheck and unit tests pass, as do both Rust durability tests and the nine real-server SyncClient tests. Bundle gate passes with unchanged limits: 239.375000 KB first JS, 20.662109 KB first CSS, 299.531250 KB total JS, 37.944336 KB opt-in JS. Verbatim browser totals: ```text primitives: 84 passed (2.3m) browsers: 15 skipped 137 passed (16.7m) supplemental: 23 skipped 61 passed (3.5m) shortcuts: 20 skipped 20 passed (1.1m) day: 12 passed (33.8s) ``` The existing daily-note startup case failed in both desktop browsers before the fix and passes in all four combinations afterward. A controlled moving-row probe failed the original swipe helper in both mobile browsers and passes with the hit-target wait. The selector first-state check passed 20 repeats. The old ambiguous shortcut anchors failed all four browser/platform combinations with a colliding metadata ID; the complete corrected shortcut spec passes. No fixed sleeps were added. Per the job hard rule, app selections were targeted locally; Forgejo runs the complete matrix. Full local gate output and reproduction evidence are in #697 and #689. Full PR CI is pending. Head: 66898152f122c301be04696fe80abefbd2d9e662
CI: supply browser test tools and run shared fixtures serially
Some checks failed
CI / server (pull_request) Successful in 1m16s
CI / web (pull_request) Failing after 3m2s
CI / rust (pull_request) Successful in 13m49s
102e841889
Test selector first placement against resting option bounds
Some checks failed
CI / server (pull_request) Successful in 1m36s
CI / rust (pull_request) Successful in 24m25s
CI / web (pull_request) Has been cancelled
c8daee13cc
Anchor shortcut fixture carets to body blocks despite matching metadata
Some checks failed
CI / server (pull_request) Successful in 1m8s
CI / rust (pull_request) Successful in 20m43s
CI / web (pull_request) Has been cancelled
72c990db1a
Wait for startup before warming the editor and target swipe gestures
Some checks failed
CI / server (pull_request) Successful in 1m8s
CI / rust (pull_request) Successful in 13m50s
CI / web (pull_request) Has been cancelled
66898152f1
Author
Owner

Superseded by #719, which landed on dev.

Superseded by #719, which landed on dev.
kayg closed this pull request 2026-10-28 07:52:34 +00:00
Some checks failed
CI / server (pull_request) Successful in 1m8s
CI / rust (pull_request) Successful in 13m50s
CI / web (pull_request) Has been cancelled

Pull request closed

Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
kayg/calternal!714
No description provided.