Flaky front test: router.test.tsx "brings a Player back to a Room they left" #360
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
spec
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
amaurycoudr/chess-project#360
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?
What happens
In CI,
apps/front/src/app/router.test.tsx› "router smoke test — leaving a Room" › "brings a Player back to a Room they left without a glimpse of the Seat they gave up" fails intermittently:The same log shows
[ORPCError: Internal Server Error]andWarning: Error in route match: /room/$code/room/ABC123just before the failure.Where seen
test (front, shard 1/3), onfeat/game-status-326. Attempt 2 passed with no code change, so it is a flake, not a regression.Cost
A manual rerun each time it hits; this one held the PR for about 4 minutes.
Expected
The test passes or fails deterministically. The assertion that counts a glimpse of the given-up Seat likely races a render or a pending query; reproduce by looping the test (
--repeat/ sharded runs) before fixing.Closing: could not reproduce. The failure is at router.test.tsx:297 (theLeaveIsAnswered: queryClient.isMutating() still 1 after waitFor's 1s timeout), not the orientation assertion; the ORPCError / route-match lines in the log come from the earlier 'leaves any other failure to the router' test and are unrelated. No failures in 100x repeats with jittered RPC latency, 4x/8x Chromium CPU throttling, whole-file loops, or cold-cache runs of shard 1/3. One hit in the last 100 CI runs. Reopen with the failing job's log if it recurs.