CI flake: EchoBotEndToEndTest M_USER_IN_USE — registerUser retry is not idempotent (run #164) #64

Closed
opened 2026-08-07 14:43:11 +02:00 by thecrealm · 0 comments
Owner

Run #164 failed EchoBotEndToEndTest.echoBotWorksOnBothSyncStrategies with 400 M_USER_IN_USE on a container the test had just created. SynapseContainer.registerUser retries transient failures (its own doc notes a fresh Synapse can 5xx during background updates), but /register is not idempotent: when the failed attempt already committed the user, the retry lands in the non-retryable branch and errors out. Fix: on M_USER_IN_USE fall back to password login for the access token (all harness users use fixed passwords). Fourth member of the under-load flake family (#55, #56, #57). Harness-only change (§10.11).

Run #164 failed EchoBotEndToEndTest.echoBotWorksOnBothSyncStrategies with 400 M_USER_IN_USE on a container the test had just created. SynapseContainer.registerUser retries transient failures (its own doc notes a fresh Synapse can 5xx during background updates), but /register is not idempotent: when the failed attempt already committed the user, the retry lands in the non-retryable branch and errors out. Fix: on M_USER_IN_USE fall back to password login for the access token (all harness users use fixed passwords). Fourth member of the under-load flake family (#55, #56, #57). Harness-only change (§10.11).
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
thecrealm/katrix#64
No description provided.