LearnNewsExamplesConnect
Frontmatter
assigneesneo-opus-ada
createdAtOct 15, 2026, 10:47 PM
updatedAtOct 16, 2026, 12:20 AM
githubUrlhttps://github.com/neomjs/neo/issues/19780
authorneo-opus-ada
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]
closedAtOct 16, 2026, 12:20 AM
milestonev13.3

AnimatedRowSorting e2e acts before the lazily loaded plugin is ready

Closed v13.3.0/archive-v13-3-0-chunk-1 bugaitestinggrid
neo-opus-ada
neo-opus-ada commented on Oct 15, 2026, 10:47 PM

Context

test/playwright/e2e/grid/AnimatedRowSorting.spec.mjs (#19774) failed once in hosted CI, on #19776's merge with dev: e2e-engine (1/3), run 38799316487, job 116644072801. "a filter moves the remaining records up and drops the others" sampled Carol at 128, 128, 128, 128, 128, 64, 64, 64, 64, 64, 64, with no frame between the two offsets. The same spec passed on dev's run and on #19774's own runs. @neo-opus-vega reran the job and filed the defect-note.

The Problem

openExample() waits until 7 rows are displayed, and each test sorts or filters right after. The rows can render before the grid's AnimateRows plugin is in place. A store change made in that window goes through the body's own handler, which renders the new order without a transition, and the sampler sees exactly the CI sequence.

Reproduced on dev at 2d76f3f6df by delaying the plugin module with a route handler (1500 ms) in the spec's own flow:

  • Acting at 7 rows: Carol jumps from the row at 128 to the row at 64, and the plugin logs nothing (3/3).
  • Waiting for the body's neo-animate-rows class first: the move animates (3/3; 12/12 when acting the instant the class appears).

Without the delay, the plugin is ready at 7 rows in every local run (16/16, at 1× and 4× CPU throttling). The hosted runner's cold load is therefore the plausible trigger. The failing run's own path is not recorded: its frames match the reproduced ones, and its trace was not downloaded.

The Architectural Reality

  • grid.Body#afterSetAnimatedRowSorting imports ./plugin/AnimateRows.mjs on demand and adds the plugin once the import resolves.
  • When the plugin gets its window, plugin.Base inserts its theme files, and AnimateRows#construct calls standAside(), which adds neo-animate-rows to the body. A vdom update waits while theme files load (VdomLifecycle#updateVdom, countLoadingThemeFiles), so the class reaches the DOM only once the plugin and its stylesheet are both in place. The transitions hang on that class.
  • Ruled out by measurement:
    • The two steps sharing one style recalc: Main applies vdom deltas in an animation frame and replies only afterwards, and every sampled run paints the first step for one frame.
    • The plugin's in-flight deferral: isVdomUpdating was false at every filter, in 56 instrumented runs.

The Fix

openExample() waits for the body's neo-animate-rows class before it counts rows. The spec also delays AnimateRows.mjs in every run, so the rows always render before the plugin and that wait is exercised, not assumed. Test-only: the plugin and the example stay as they are.

Acceptance Criteria

  • AC-1 openExample() waits until the body carries neo-animate-rows before any sort or filter.
  • AC-2 The spec delays AnimateRows.mjs in every run. Without AC-1's wait, its sort and filter tests fail; with it, they pass.
  • AC-3 AnimatedRowSorting.spec.mjs passes --repeat-each=10, and the e2e engine tier passes.

Out of Scope

  • Animating a store change made before the plugin is in place. The body loads the plugin on demand by design, so a sort in the first moments after load renders without a transition.
  • The plugin's in-flight deferral (a change while the body's own update is in flight renders without a transition). It was not observed here.

Related

#19774 (the spec) · #6858 · #19776 (the run that failed) · @neo-opus-vega's defect-note (A2A, 2026-10-15 20:19Z)

Live latest-open sweep: checked the latest 20 open issues at 2026-10-15T20:46Z; no equivalent (gh search issues "AnimatedRowSorting" finds only closed #6858, #19665, #19666 and #13219, plus open #19772, which is a different defect). A2A sweep: the latest 30 messages hold @neo-opus-vega's defect-note (capture, no claim) and my [lane-intent] (20:44Z); no competing claim. MC sweep: "AnimatedRowSorting e2e flaky no frame between the two offsets, AnimateRows plugin not loaded yet", 6 results, no prior decision found. Own-assignment sweep: 7 open, none overlapping.

Origin Session ID: 8779ddeb-f661-411b-b93d-c3b6c2158b11

Retrieval Hint: "AnimatedRowSorting e2e no frame between the two offsets", "AnimateRows plugin lazy import readiness in e2e"

tobiu closed this issue on Oct 16, 2026, 12:20 AM
tobiu referenced in commit 2a219ff - "test(grid): AnimatedRowSorting waits for its plugin before it sorts or filters (#19780) (#19781) on Oct 16, 2026, 12:20 AM