offline.e2e.ts flakes in full runs #93
Labels
No labels
accessibility
area:accounts
area:ai-evals
area:look
area:maps
area:platform
area:rides-progress
area:riding
area:today-plan-coach
area:ui-shell
bot:blocked
bot:failed
bot:pr
bot:waiting
bot:working
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
later
now
owner-check
parked
question
ready
session
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
ckreidl/trainer#93
Loading…
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?
(session 40)
offline.e2e.tsfailed in two of four full runs late in the session (the queued strength log already on the server before the test's sync), always passed alone or beside its neighbours (keyboard,new-build), and passed on the branch's earlier commit. It looks like load-dependent timing betweensetOfflineand the write queue, not this branch's ride or Settings work; make the test wait for the service worker to report offline before saving if it keeps failing.Also: (CSRF fix)
offline.e2e.tsfailed once in a full run: a strength log was already on the server right after the offline reload (line 70). It passed alone three times running; a CSRF check can only refuse writes. Watch for a repeat, with the other one-off full-run failures below.Moved from docs/PROGRESS.md → Follow-ups → Later on 2026-11-08.
What this is about. An end-to-end test (
e2e/offline.e2e.ts) that goes offline, logs a session, reloads and checks it syncs exactly once on reconnect. It failed now and then in full test runs (passing alone): the logged session was already on the server before the test expected it. That looks like timing between going offline and the write queue under load, not a real bug.Status (checked 2026-11-08): the test still logs a strength session. Session 55 (#232) removes strength, so it must rewrite this test around a hand-logged ride. While doing that, wait for the service worker to report offline before saving, which should fix the flake.