LearnNewsExamplesConnect
Frontmatter
assigneesneo-opus-ada
createdAtNov 20, 2026, 5:37 AM
updatedAtNov 20, 2026, 4:01 PM
githubUrlhttps://github.com/neomjs/neo/issues/21559
authorneo-opus-ada
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]
closedAtNov 20, 2026, 4:01 PM

The window-move cell-edit spec reads a cell before its rows re-render

neo-opus-ada
neo-opus-ada commented on Nov 20, 2026, 5:37 AM

Context

test/playwright/e2e/workstation/WorkstationCellEditingWindowMoveNL.spec.mjs went red three times within a day on pull requests that cannot reach it. Each time the failure was a visible name cell is found — Received: null, from startCellDraft (:206), in a different test:

PR Diff Failing test Shard
#21436 menu.List :285 e2e-engine (5/15), run 44455886438
#21538 button menus :442 e2e-engine (6/15), job 135995802587
#21557 Cesium addon :381 e2e-engine (13/15), job 136067346267

Every rerun passed. Captured as defect-notes 120e56ea and 91d174ef; the third sighting promotes it.

The Problem

Every test starts with setupEditableScaleGrid, which wheels the 100k-row scale grid down 6000 px and waits until scrollManager.scrollTop and the view's DOM scrollTop both pass 1000. Then startCellDraft reads a visible name cell once. Scroll position is not the state that read needs: the pooled rows reach their new positions a few frames later.

Measured at dev 32096957fc with a per-frame recorder started just before the wheel (headless Chromium, 4 runs per setting). DOM scrollTop reaches 6000 at about 25 ms. The next 2 frames (about 32 ms) hold no name row inside the view, and the rows are back at 57 ms. At 4× CPU throttle the gap is 3 frames (about 60 ms). Locally the settle poll returns later (about 125 ms, or 165 ms throttled), after the rows are back, so all 29 local probe runs (unthrottled, 4× and 6×) found a cell on the first read. On a loaded CI runner the render can outlast the poll's round trip, and the single read lands in the empty frames.

popOutAndSettle ends the same way in the popup (scroll position holds in popup DOM and engine). The read after it at :328 is also single, and :329 dereferences postCell.recordId before :331 checks it.

The Architectural Reality

  • findVisibleNameCell (:26) and findAnotherVisibleCell (:64) are one-shot evaluate reads that return null when no row qualifies.
  • The reads whose cell the test then uses: :204 (asserted at :206), :292 (asserted at :294), and :328 and :329 (asserted at :331, after the dereference).
  • The same file already waits on render state with expect.poll elsewhere (the plugin install, both scroll settles).
  • Design authority: n/a. No engine behavior is called wrong: pooled rows rendering a few frames after the scroll event is how the grid works. The defect is the test's read.

The Fix

In the spec only: add one helper that polls a finder until it returns a cell, failing with a message that names the read, and route the four reads through it. The two finders stay one-shot.

Acceptance Criteria

  • AC-1: Each of the four reads waits until its cell exists, and a timeout fails with a message naming that read (the opener reads keep their existing messages; the popup pair, which shared one combined check, gets one message each).
  • AC-2: A probe that reads in the gap (straight after a scrollTop jump) gets null from the one-shot read on dev, and a cell from the new helper.
  • AC-3: The spec passes 5 of 5 locally, and its CI shard is green.

Out of Scope

  • A different, local-only symptom of the same spec: util.VNode.getVnode: Component not found for id: neo-textfield-1 during the landed pane's repaint (defect-note 64c2ad6e).
  • One-shot reads after a scroll in other specs.

Related

#20800 (the behavior this spec covers) · PR #21048 (the spec) · #21436, #21538, #21557 (the three sightings)

Live latest-open + closed sweep: checked the latest 20 open and open and closed searches (WorkstationCellEditingWindowMoveNL, visible name cell, cell edit window move flaky, e2e flake scroll rows render; #21535 and #18439 read on hits) at 2026-11-20T04:36Z, plus open PRs naming the spec; no equivalent or prior exclusion found. Backlog band: 54 open (red); no epic owns e2e flakes, so this files standalone. A2A in-flight claim sweep: the newest 15 messages in all read states at 04:36Z; no claim on this spec. MC sweep: one query on the symptom found the two defect-notes above and no ticket. Own-assignment sweep: nothing open on this surface.

Ownership: self-assigned; I'm fixing it now so the shard stops reddening contributors' PRs before Monday's cut. No contributor labels for that reason.

Origin Session ID: 8f8ccb51-64c6-4e1c-9bcb-f3e6f812b897 Retrieval Hint: "WorkstationCellEditingWindowMoveNL a visible name cell is found flake one-shot read after scroll rows re-render"

tobiu referenced in commit 95bbd71 - "test(e2e): the window-move cell-edit spec waits for its cells (#21559) (#21560) on Nov 20, 2026, 4:01 PM
tobiu closed this issue on Nov 20, 2026, 4:01 PM