[loop-cycle] fix: three-strike route test isolation for xdist #1254

Merged
Timmy merged 1 commits from fix/three-strike-test-isolation into main 2026-03-23 23:49:03 +00:00
Owner

Fixes 2 flaky test failures on main: test_record_strike_first and test_third_strike_returns_409.

Root cause: hardcoded keys in three-strike route tests collided across parallel xdist workers and repeated runs on the shared SQLite DB.

Fix: each test generates a uuid4-based unique key.

435/435 tests pass after fix.

Fixes 2 flaky test failures on main: `test_record_strike_first` and `test_third_strike_returns_409`. Root cause: hardcoded keys in three-strike route tests collided across parallel xdist workers and repeated runs on the shared SQLite DB. Fix: each test generates a uuid4-based unique key. 435/435 tests pass after fix.
Timmy added 1 commit 2026-03-23 23:48:52 +00:00
fix: three-strike route tests use unique keys for xdist isolation
Some checks failed
Tests / lint (pull_request) Failing after 13s
Tests / test (pull_request) Has been skipped
fd4773acad
Tests used hardcoded keys that collided across parallel xdist workers
and repeated runs on the shared SQLite DB. Each test now generates a
uuid4-based key so state never leaks between tests.

Fixes 2 flaky failures on main: test_record_strike_first and
test_third_strike_returns_409.
Timmy merged commit 2240ddb632 into main 2026-03-23 23:49:03 +00:00
Timmy deleted branch fix/three-strike-test-isolation 2026-03-23 23:49:04 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Rockachopa/Timmy-time-dashboard#1254