Repository navigation
fix(test): run the browser lane with motion reduced so the map's WebGL is not starved - #550
Merged
Merged
Conversation
…L is not starved Since #540 the skeleton's pulse and the spinner's turn actually animate. Under SwiftShader those frames share the GPU process with mapbox-gl's GL calls, so its supported() probe blocked the main thread for 4-5s in about half of all deep-link loads, and the navigation scenarios missed their 5s budget in CI. With motion reduced: 0 of 30 slow loads (14 of 30 without), and 45 of 45 navigation runs pass under load (8 of 45 failed before). Co-Authored-By: Claude Opus 5.5 <[email protected]>
Contributor
|
🤖 no session running Written by the sydevs dispatcher. Sessions never edit this comment. |
Contributor
There was a problem hiding this comment.
Approved for Ardnived, who wrote it: GitHub refuses an author's own approval. CI is green and the automated review has run. Enable auto-merge when you want it merged: the queue tests it against its base. 🤖 Written by the sydevs autonomous loop — see what this is
Contributor
|
Adversarial review skipped: 2 file(s), 15 changed line(s), under 🤖 sydevs dispatcher |
This was referenced Nov 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
reducedMotion: 'reduce'.Change outline
Behaviour — why a deep link missed its 5s budget
deep link to a class (full-map.html?atlas=…/101) event JSON arrives ~1s in mapbox-gl chunk evaluates → loadMapLib → supported(true) src/components/organisms/Mapbox/map-lib.ts creates a WebGL2 context, compiles a shader (SwiftShader, GPU process) - skeleton pulse + spinner spin composite in the same GPU process (animating since #540) - → probe blocks the main thread 4–5s in ~half the runs → heading not visible in 5s + reducedMotion: 'reduce' (playwright.config.ts) → no animation frames to wait behind + → probe ~0.5–1sPreview
No preview surface: the change is test configuration and docs only.
Test results
navigation.spec.ts --repeat-each 15 --workers 6on a loaded machine: 45/45 pass. Before the fix: 8/45 failed.Notes for reviewer
Tiny diff, read inline. Bisected locally:
ab2be300(before #540) had no slow mode, and05ee47de(#540) has it. #540's keyframe-namespacing fix is what madeanimate-pulse/animate-spinactually run.Detail
:60/:78never failed before thefeat/event-share-inlinebranch (18:18 on 2026-11-27). Since then they fail in roughly half the runs, merge-queue entries for chore(contracts): re-sync copied contracts from SahajCloud #544 and chore(contracts): re-sync copied contracts from SahajCloud #546 included.supported()(iin mapbox-gl) at 2–3s. mapbox-gl's own_setupPainterand_finalizeslow down the same way, so all GL round trips are contended, not just the probe.supported(true)and gets no map.page.emulateMedia.🤖 Generated with Claude Code