mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #5626] Stabilize mobile WebKit fixture startup in transcript-swipe and Game CYOA tests #3115
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#3115
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @SpicyMarinara on GitHub (Aug 29, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5626
Originally assigned to: @Romuromylus on GitHub.
Problem
The required
mobile-webkitRelease Regression Matrix job is intermittently failing because seeded UI state never appears in two unrelated tests. This forced a full ~23-minute job rerun on PR #5625 even though its import regression was desktop-only and every other required check passed.Failed run: https://github.com/Pasta-Devs/Marinara-Engine/actions/runs/33244659895/job/99079967969
Failures
mobile transcript swipes navigate Conversation and Roleplay alternatives(e2e/core-flows.e2e.ts:5017)[data-message-id]row never appeared.mobile Game keeps CYOA usable above four HUD widgets(e2e/core-flows.e2e.ts:19101)GameSurface.MobileChoiceStagenever appeared.Both failures have the same shape: fixture/page initialization did not reach the expected seeded state, while 99 other WebKit tests passed. Neither failure touched the code changed by #5625.
Requested work
mobile-webkitfrom currentstaging.mobile-webkitjob.Acceptance criteria
mobile-webkitruns.@Romuromylus commented on GitHub (Aug 30, 2026):
Both cases are green on
staging, fixed by other work while I was investigating this, so I am closing it.mobile transcript swipes navigate Conversation and Roleplay alternativeswas fixed under #5633. My reading of the failure artifacts matched that diagnosis: the test navigated twice per fixture, the reload landed about a second into the first page's on-demand module graph and cancelled the tens of module requests still streaming, and WebKit then intermittently failed the next document's own bootstrap scripts. The trace showed/src/main.tsx,/@vite/client,/@react-refreshand/manifest.jsonall starting and never completing, with the app crashed intoAppRecoveryBoundaryand a blank page behind it. The fix that landed uses a fresh page per fixture, which is better than the one I had drafted because it does not rely on init-script evaluation order, which Playwright documents as undefined.mobile Game keeps CYOA usable above four HUD widgetswas never a seeding failure. The accessibility snapshot at failure showed the Game surface rendered in full, with onlyGameSurface.MobileChoiceStagemissing and the widgets in a tray instead of rails, which is the non-compact layout on a phone viewport. The cause was that the compact-HUD effect measures its surface and attaches itsResizeObserverat effect time, whileGameSurfacealso has an early return for its messages-loading branch that mounts no surface at all. When the widget state hydrated during that window the measurement found nothing, no observer was attached, and neither effect dependency changed when the surface mounted, so nothing re-measured. ThecompactByWidthreset that landed under #5618 leaves the stranded value correct on a phone, which is what makes this case pass now.That reset fixed the value rather than the mechanism, so the underlying defect survived at widths where the compact decision comes from the overlap estimate instead of the width shortcut. I filed that as #5654 and fixed it in #5628, merged as
7f43d455e.Verified on the last completed
stagingmatrix run (5c6ac775e): both cases pass in themobile-webkitlane, at 13.7s and 7.3s respectively.