e2e teardown races background re-plan work (FK violation) #185
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#185
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 29) A full e2e run logged one
[replan] missed-session check failedwith aMissedSession_userId_fkeyviolation: a flow'safterAlldeleted its throwaway user while the background check started by a log write (here likely the ride delete incorrections.e2e.ts) was still running. Caught and logged; every flow passed. Test teardown only; wait for idle re-plan work before deleting users if the noise matters.Moved from docs/history.md → Parked follow-ups on 2026-11-08.
What this is about. Test noise. Each end-to-end test file makes a throwaway user and deletes it at the end. Sometimes a background job the test started (e.g. the missed-session check after deleting a ride) is still running when the user is deleted, and it logs a foreign-key error. The job catches it, and every test passes.
Status (checked 2026-11-08): as described.
Fix if the log noise matters: wait for background work to finish before deleting the test user. Low priority.