Repository navigation
Guided lesson tests: wait out the simulator's rebuild, not a fixed time - #175
Merged
Merged
Conversation
learn-guided's "the ring is on the board again" and learn-journey's "changing the words meets it" failed now and then in CI and locally. Traced: when the simulator comes back, its 3D view is built again, and under the software renderer the tests run on (no GPU) that is one task holding the page's main thread for 8 to 15 seconds; the coach's 250 ms timer (and the goal watcher) run only after it. The lesson logic is right: the part is found and on screen within a second. The tests now wait for the ring (30 s) and for the met step (15 s) instead of 10 s and a fixed 900 ms. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SS5gJ3k8r2g6DZMxocZDyP
|
Visit the preview URL for this PR (updated for commit 38fd018): https://firialabs-open-editor--pr175-guided-ring-flake-xqwv442b.web.app (expires Thu, 10 Dec 2026 16:28:11 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 Sign: 81259a1fec315ca1af3747d225d9c7424890be3e |
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.
Fixes two intermittent CI failures that block unrelated PRs (seen on #172, and on a build of main):
learn-guided"and the ring is on the board again" andlearn-journey"changing the words meets it". Tests only; nothing a person sees changes.Cause. Timed in the browser: after
device.disconnect()the simulator is back and the CodeX part the step points at is found and on screen within about a second, but the ring shows only 8 to 15 seconds later. A PerformanceObserver shows one long task of about 8.6 s starting right after the restart: the simulator's 3D view being built again under the software renderer the tests run on (no GPU). The coach's 250 ms follow timer cannot fire until it ends (it fired twice in 10 s); it is never cleared, and no new coach is made. The check allowed 10 s. The journey check waited a fixed 900 ms for the goal watcher, which the same stall can outlast.Fix. Wait for the ring up to 30 s, and for the step to be met up to 15 s, with the reason in a comment. Both files pass locally against a build of main.
Worth a look separately: the length of that rebuild on a real Chromebook's GPU. Under software rendering it is 8 to 15 s of a frozen page; if a real device shows even a few seconds, the view's rebuild (shader compiles, the showroom's sky) is the place to look.
🤖 Generated with Claude Code
https://claude.ai/code/session_01SS5gJ3k8r2g6DZMxocZDyP