[GH-ISSUE #6399] desktop-chromium is red on staging: drag-list-scroll persona spec times out on every run since it was added #3577

Closed
opened 2026-10-21 06:04:27 +07:00 by bsakaguchi · 3 comments
Owner

Originally created by @kolacheee on GitHub (Sep 20, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6399

Originally assigned to: @kolacheee on GitHub.

What happens

e2e/drag-list-scroll.e2e.ts:23 ("persona lists scroll during a drag and persist the folder drop") times out at 60 seconds on desktop-chromium 3/4 in every Release Regression Matrix run on staging since the spec was added (9823a14e1, then 630299ce0), so desktop-chromium is red on staging itself and on every PR based on it.

staging commit run result
c324acfdd https://github.com/Pasta-Devs/Marinara-Engine/actions/runs/35473596152 desktop-chromium 3/4 failed
57499fcb2 https://github.com/Pasta-Devs/Marinara-Engine/actions/runs/35477312604 desktop-chromium 3/4 failed
66bb9bcea https://github.com/Pasta-Devs/Marinara-Engine/actions/runs/35478770939 desktop-chromium 3/4 failed

It fails the same way on a PR that does not touch lists or dragging (#6397, run https://github.com/Pasta-Devs/Marinara-Engine/actions/runs/35479330254).

1) [desktop-chromium] › e2e/drag-list-scroll.e2e.ts:23:3 › persona lists scroll during a drag and persist the folder drop
   Test timeout of 60000ms exceeded.

The mobile projects pass it; only the desktop Chromium project times out. Each failed run has the screenshot and video under test-results/drag-list-scroll.e2e.ts-pe-1f8e3-and-persist-the-folder-drop-desktop-chromium/ in its artifacts.

Why it matters

Four runs in a row is not a flake: the spec, or the desktop drag path it drives, needs a look. Until then every PR's desktop-chromium verdict is red for a reason the PR did not cause.

Related: #6398 (the node lane is red on staging for a separate reason).

Originally created by @kolacheee on GitHub (Sep 20, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6399 Originally assigned to: @kolacheee on GitHub. ## What happens `e2e/drag-list-scroll.e2e.ts:23` ("persona lists scroll during a drag and persist the folder drop") times out at 60 seconds on `desktop-chromium 3/4` in every Release Regression Matrix run on `staging` since the spec was added (9823a14e1, then 630299ce0), so `desktop-chromium` is red on `staging` itself and on every PR based on it. | staging commit | run | result | |---|---|---| | c324acfdd | https://github.com/Pasta-Devs/Marinara-Engine/actions/runs/35473596152 | `desktop-chromium 3/4` failed | | 57499fcb2 | https://github.com/Pasta-Devs/Marinara-Engine/actions/runs/35477312604 | `desktop-chromium 3/4` failed | | 66bb9bcea | https://github.com/Pasta-Devs/Marinara-Engine/actions/runs/35478770939 | `desktop-chromium 3/4` failed | It fails the same way on a PR that does not touch lists or dragging (#6397, run https://github.com/Pasta-Devs/Marinara-Engine/actions/runs/35479330254). ``` 1) [desktop-chromium] › e2e/drag-list-scroll.e2e.ts:23:3 › persona lists scroll during a drag and persist the folder drop Test timeout of 60000ms exceeded. ``` The mobile projects pass it; only the desktop Chromium project times out. Each failed run has the screenshot and video under `test-results/drag-list-scroll.e2e.ts-pe-1f8e3-and-persist-the-folder-drop-desktop-chromium/` in its artifacts. ## Why it matters Four runs in a row is not a flake: the spec, or the desktop drag path it drives, needs a look. Until then every PR's `desktop-chromium` verdict is red for a reason the PR did not cause. Related: #6398 (the node lane is red on `staging` for a separate reason).
bsakaguchi 2026-10-21 06:04:27 +07:00
Author
Owner

@kolacheee commented on GitHub (Sep 20, 2026):

Where it hangs, from the trace

I pulled the failure artifact from a run of this spec (playwright-desktop-chromium-shard-3-failure) and read trace.zip. One action is started and never finishes, and it is not an assertion:

page.mouse.move  { "x": 1204, "y": 513.0625, "steps": 8 }

That is this line of the desktop branch, the move that drags the card sideways after the button is pressed:

await page.mouse.move(primary.clientX, primary.clientY);
await page.mouse.down();
await page.mouse.move(primary.clientX + 50, primary.clientY, { steps: 8 });   // never returns
await expect(source).toHaveAttribute("data-proof-dragging", "true");

So the test is not waiting for a selector and it is not slow: the drag begins, Chromium enters its native drag loop, and the synthetic mouse move never comes back. The 60 second timeout is the whole test budget expiring on that one call. Every assertion after it is unreached, which is why the log shows only "Test timeout of 60000ms exceeded" with no locator named.

The page snapshot in error-context.md agrees: the personas panel is open and all 26 rows are rendered, so nothing is missing from the page.

Why only personas, and only desktop

The mobile projects take the touch branch of the same spec, which dispatches synthetic touch events rather than driving a native drag, so they never enter that loop and they pass.

On desktop the three kinds differ in one way that matters here: PersonasPanel sets draggable={nativePersonaDragEnabled}, where that flag is !(pointer: coarse || max-width: 767px), so on a desktop viewport a persona card really is natively draggable. CharactersPanel and the chat sidebar reach that point differently. Whatever the exact reason the other two do not block, a native Chromium drag started from raw mouse.down plus mouse.move is the known shape of this hang, and it is the one the trace caught.

Suggested direction

Driving native HTML5 drag and drop with raw mouse events is not reliable in Chromium. The usual fix is to stop pretending: dispatch dragstart, dragover and drop directly, the way this spec's own mobile branch dispatches touch events, or use locator.dragTo, and keep the raw mouse only for what genuinely needs it. Since the point of the case is that the LIST SCROLLS during a drag and that the drop persists, neither of which needs a real native drag, the synthetic route should prove the same thing without the loop.

I have not written that fix: Playwright will not run on this machine, and rewriting a drag test I cannot execute would be guessing. The trace above should make it quick for whoever does.

For what it is worth on scheduling: this is currently the only failing spec on staging and on every pull request opened against it, so it is charging every contributor a red check.

<!-- gh-comment-id:5747545634 --> @kolacheee commented on GitHub (Sep 20, 2026): ## Where it hangs, from the trace I pulled the failure artifact from a run of this spec (`playwright-desktop-chromium-shard-3-failure`) and read `trace.zip`. One action is started and never finishes, and it is not an assertion: ``` page.mouse.move { "x": 1204, "y": 513.0625, "steps": 8 } ``` That is this line of the desktop branch, the move that drags the card sideways after the button is pressed: ```ts await page.mouse.move(primary.clientX, primary.clientY); await page.mouse.down(); await page.mouse.move(primary.clientX + 50, primary.clientY, { steps: 8 }); // never returns await expect(source).toHaveAttribute("data-proof-dragging", "true"); ``` So the test is not waiting for a selector and it is not slow: the drag begins, Chromium enters its native drag loop, and the synthetic mouse move never comes back. The 60 second timeout is the whole test budget expiring on that one call. Every assertion after it is unreached, which is why the log shows only "Test timeout of 60000ms exceeded" with no locator named. The page snapshot in `error-context.md` agrees: the personas panel is open and all 26 rows are rendered, so nothing is missing from the page. ## Why only personas, and only desktop The mobile projects take the touch branch of the same spec, which dispatches synthetic touch events rather than driving a native drag, so they never enter that loop and they pass. On desktop the three kinds differ in one way that matters here: `PersonasPanel` sets `draggable={nativePersonaDragEnabled}`, where that flag is `!(pointer: coarse || max-width: 767px)`, so on a desktop viewport a persona card really is natively draggable. `CharactersPanel` and the chat sidebar reach that point differently. Whatever the exact reason the other two do not block, a native Chromium drag started from raw `mouse.down` plus `mouse.move` is the known shape of this hang, and it is the one the trace caught. ## Suggested direction Driving native HTML5 drag and drop with raw mouse events is not reliable in Chromium. The usual fix is to stop pretending: dispatch `dragstart`, `dragover` and `drop` directly, the way this spec's own mobile branch dispatches touch events, or use `locator.dragTo`, and keep the raw mouse only for what genuinely needs it. Since the point of the case is that the LIST SCROLLS during a drag and that the drop persists, neither of which needs a real native drag, the synthetic route should prove the same thing without the loop. I have not written that fix: Playwright will not run on this machine, and rewriting a drag test I cannot execute would be guessing. The trace above should make it quick for whoever does. For what it is worth on scheduling: this is currently the only failing spec on `staging` and on every pull request opened against it, so it is charging every contributor a red check.
Author
Owner

@SpicyMarinara commented on GitHub (Sep 20, 2026):

Codex is taking this in #6420 for @SpicyMarinara as part of the requested issue sweep. I am tracing the existing flow and will add focused regression evidence before merging to staging.

<!-- gh-comment-id:5748721990 --> @SpicyMarinara commented on GitHub (Sep 20, 2026): Codex is taking this in #6420 for @SpicyMarinara as part of the requested issue sweep. I am tracing the existing flow and will add focused regression evidence before merging to staging.
Author
Owner

@SpicyMarinara commented on GitHub (Sep 20, 2026):

Resolved by #6420, merged into staging at 49faeabfe4. Required checks and CodeRabbit passed before merge.

<!-- gh-comment-id:5749555109 --> @SpicyMarinara commented on GitHub (Sep 20, 2026): Resolved by #6420, merged into staging at 49faeabfe42b02d3648e29e226b773d4a33259ce. Required checks and CodeRabbit passed before merge.
Sign in to join this conversation.
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
Pasta-Devs/Marinara-Engine#3577
No description provided.