Green web CI: a drag holds the sidebar still, the list catches up once live, and six specs stop racing (#410) #421

Closed
kayg wants to merge 0 commits from issue/410-ci-green into dev
Owner

Fixes #410: the CI web job is red on dev, with 9 failures in glass, tag-rename, keys-no-motion, tooltips and flow.

Two app bugs, and the rest were test races. The cause of each failure and the evidence are on #410.

App

  • Sidebar: a drag found rows by their place in the list, both when pressed and when let go. If tags changed in between (another device renaming, merging or adding one), the drop asked to merge the wrong tags. On CI the bar asked "Merge #keep-… into #glass…" after #merge-…-src was dropped onto #merge-…-dst. Now the list holds still from press to release, and a move is placed next to the same row in the list as it is then. A new test adds a tag mid-drag: it fails before this change and passes after.
  • List: a first live connection starts at the journal head. A note saved between the app reading its list and the socket connecting stayed out of the list, or stayed the blank row a just-made note has, until something else changed (seen in a full webkit-1440 run). Once the first connection is live, the app reads the newest page again. A new test (list-catch-up) holds the list response and the socket: it fails before this change and passes after.

Tests (none weakened; each now checks what it meant to)

  • glass and keys-no-motion: these opened notes in the shared lists, where other tests' notes keep arriving and the rows slide in and make room. Each test now opens its note in a tag list of its own. keys-no-motion also counts only animations you can see (the hidden Settings screen eases its switches when other tests save preferences), as glass.spec already does.
  • tag-rename: the dst-…/src-… pair had every other test's d-to-s tag between them, so in a full run the list was long and scrolled. The pair now shares one stem, is scrolled into view, and the drag checks it picked up the right row.
  • tooltips: the test hovered triggers in the hidden, inert Notes screen (opacity 0 since #287; Playwright counts opacity 0 as visible). It now skips inert triggers.
  • flow: the "Made …" toast's clock is held while Settings is on top (#324, #325), so on a fast run the toast was still over the note tools when the test came back. The test now waits for the toast to come, then for it to go.
  • bar-focus (from train l): it passes on clean dev but runs 7 to 25 s of the default 30 s on WebKit, so the test now gets 60 s. No assertion changed.

🤖 Generated with Claude Code

https://claude.ai/code/session_018Yyy8fQGxPLkLa8v8NXz7T

Fixes #410: the CI web job is red on dev, with 9 failures in glass, tag-rename, keys-no-motion, tooltips and flow. Two app bugs, and the rest were test races. The cause of each failure and the evidence are on #410. **App** - **Sidebar:** a drag found rows by their place in the list, both when pressed and when let go. If tags changed in between (another device renaming, merging or adding one), the drop asked to merge the wrong tags. On CI the bar asked "Merge #keep-… into #glass…" after `#merge-…-src` was dropped onto `#merge-…-dst`. Now the list holds still from press to release, and a move is placed next to the same row in the list as it is then. A new test adds a tag mid-drag: it fails before this change and passes after. - **List:** a first live connection starts at the journal head. A note saved between the app reading its list and the socket connecting stayed out of the list, or stayed the blank row a just-made note has, until something else changed (seen in a full webkit-1440 run). Once the first connection is live, the app reads the newest page again. A new test (`list-catch-up`) holds the list response and the socket: it fails before this change and passes after. **Tests** (none weakened; each now checks what it meant to) - **glass and keys-no-motion:** these opened notes in the shared lists, where other tests' notes keep arriving and the rows slide in and make room. Each test now opens its note in a tag list of its own. keys-no-motion also counts only animations you can see (the hidden Settings screen eases its switches when other tests save preferences), as glass.spec already does. - **tag-rename:** the `dst-…`/`src-…` pair had every other test's d-to-s tag between them, so in a full run the list was long and scrolled. The pair now shares one stem, is scrolled into view, and the drag checks it picked up the right row. - **tooltips:** the test hovered triggers in the hidden, inert Notes screen (opacity 0 since #287; Playwright counts opacity 0 as visible). It now skips inert triggers. - **flow:** the "Made …" toast's clock is held while Settings is on top (#324, #325), so on a fast run the toast was still over the note tools when the test came back. The test now waits for the toast to come, then for it to go. - **bar-focus** (from train l): it passes on clean dev but runs 7 to 25 s of the default 30 s on WebKit, so the test now gets 60 s. No assertion changed. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_018Yyy8fQGxPLkLa8v8NXz7T
- glass, keys-no-motion: the usual lists keep receiving other tests' notes on the shared
  server, and their rows glide in (row-in) and make room (FLIP). That is the list following
  changes from elsewhere, not motion at rest or from a key. Each test now opens its note in a
  tag list of its own.
- tag-rename (drop to merge): tags are listed A to Z, so `dst-…` and `src-…` had every other
  test's tag from d to s between them; in a full run that list was long, scrolled and changing
  mid-drag, and the drop never landed on the other tag. The pair now shares one random stem,
  next to each other, and is scrolled into view before the drag.
- tooltips: Notes stays mounted under Settings at opacity 0 and inert (#287). Playwright
  counts opacity 0 as visible, so the test hovered triggers nobody can reach; it skips inert ones.
- flow: the "Made …" toast from → takes the bar for 8 s of on-screen time, held while Settings
  is on top (#324, #325). On a fast run it was still over the note tools when the test came back
  for Show markdown. The test lets it run out where it appears.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018Yyy8fQGxPLkLa8v8NXz7T
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018Yyy8fQGxPLkLa8v8NXz7T
Sidebar: a pressed row holds the list still, so a drop never merges the wrong tags (#410)
Some checks failed
CI / server (pull_request) Successful in 26s
CI / rust (pull_request) Successful in 2m5s
CI / web (pull_request) Has been cancelled
4e03c94cac
The drag found rows by their place in the list when pressed and again when let go. Tags that
changed in between (another device renaming, merging or adding one) moved those places, and
the bar asked to merge two tags nobody had touched: CI's full run showed "Merge #keep-… into
#glass…" after dragging #merge-…-src onto #merge-…-dst. Now the list holds still from press to
release; a move is placed next to the same row in the list as it is then. What changed shows
the moment the row is let go.

Tests:
- tag-rename: a tag arriving mid-drag (fails before this change, passes after); the drag
  checks it picked up the row it meant to before moving it, since the list can move between
  measuring a row and pressing it.
- keys-no-motion: counts only what can be seen. Settings, mounted under Notes at opacity 0,
  eases its switches when preferences saved by other tests arrive (as glass.spec already does).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018Yyy8fQGxPLkLa8v8NXz7T
Tests: flow waits for the "Made …" toast to come before waiting for it to go (#410)
Some checks failed
CI / server (pull_request) Successful in 27s
CI / rust (pull_request) Successful in 2m19s
CI / web (pull_request) Has been cancelled
1a6dfefcac
The toast comes when the server's job is done, which can be after the new note opens. On a
fast run the wait for it to be gone passed before it had come, and it then sat over the note
tools when the test came back from Settings (seen once in a full local run).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018Yyy8fQGxPLkLa8v8NXz7T
List: once live, read the newest page again, so a note saved while the app opened shows (#410)
Some checks failed
CI / server (pull_request) Successful in 31s
CI / rust (pull_request) Successful in 3m6s
CI / web (pull_request) Failing after 43m38s
6e99a6ee80
A first live connection starts at the journal's head: a note saved between the app reading its
list and the socket connecting stayed out of the list, or stayed the blank row a just-made note
has ("No text yet", no tags), until something else changed. Seen in a full webkit-1440 run:
the test's note was saved 40 ms before the list was read, and the sidebar never showed its tag.
A reconnect resumes from its token and misses nothing; only the first connection reads again.

New test (list-catch-up): the note is saved while the list response and the socket are held;
fails before this change, passes after.

bar-focus: 60 s instead of the default 30. One long walk through the text bar and the Style
sheet, where a control that slid away waits out its 5 s; 7-25 s on CI, over 30 s on a busy
machine (train l). No assertion changed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018Yyy8fQGxPLkLa8v8NXz7T
kayg changed title from Green web CI: a drag holds the sidebar still; five specs stop racing the shared server (#410) to Green web CI: a drag holds the sidebar still, the list catches up once live, and six specs stop racing (#410) 2026-10-15 13:46:14 +00:00
Author
Owner

Train k ran the full suite per project (11 projects) plus fmt, clippy, workspace tests and the build. Everything passed except opacity.spec:62 on webkit-1440, which timed out 3 times at load ~20. Alone it passes 6/6 at about 16 s each, the same as on dev, so it's a time-budget flake: each test does 4 note loads plus waits. Follow-up issue to come. Contents: #421 #377 #379 #392 #408 #404 #405 #403 #401 #424 #431. Merging.

Train k ran the full suite per project (11 projects) plus fmt, clippy, workspace tests and the build. Everything passed except opacity.spec:62 on webkit-1440, which timed out 3 times at load ~20. Alone it passes 6/6 at about 16 s each, the same as on dev, so it's a time-budget flake: each test does 4 note loads plus waits. Follow-up issue to come. Contents: #421 #377 #379 #392 #408 #404 #405 #403 #401 #424 #431. Merging.
kayg closed this pull request 2026-10-15 14:34:11 +00:00
Some checks failed
CI / server (pull_request) Successful in 31s
CI / rust (pull_request) Successful in 3m6s
CI / web (pull_request) Failing after 43m38s

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!421
No description provided.