Skip to content

fix: backdate created_at in flaky purge test - #2635

Open
taddes wants to merge 1 commit into
masterfrom
fix/flaky-purge-test-STOR-751
Open

taddes wants to merge 1 commit into
masterfrom
fix/flaky-purge-test-STOR-751

Conversation

@taddes

@taddes taddes commented Oct 9, 2026 •

Copy link
Copy Markdown
Collaborator

Description

test_failed_service_delete_does_not_abort_batch flakes with StopIteration. allocate_user and update_user can land in the same millisecond, and update_user only marks rows with created_at < now as replaced, so the old row never gets replaced_at set. Backdating created_at on the allocate_user calls makes the replace always apply.

Failed run (postgres-e2e-tests on #2604):
https://github.com/mozilla-services/syncstorage-rs/actions/runs/37988399669/job/114019738510
(I'd seen it before, though...)

Testing

CI e2e suites. The race is timing dependent so it won't reproduce on demand.

Issue(s)

Closes STOR-751.

@taddes taddes self-assigned this Oct 9, 2026
@taddes
taddes requested review from chenba and pjenvey October 9, 2026 23:33

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant