Skip to content

test(store): read the start time before the index build's release timer starts - #197

Merged
AlexS-scale merged 1 commit into
mainfrom
AlexS/fix-index-wait-timing-flake
Oct 14, 2026
Merged

AlexS-scale merged 1 commit into
mainfrom
AlexS/fix-index-wait-timing-flake

Conversation

@AlexS-scale

@AlexS-scale AlexS-scale commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

What and why

test_a_unique_index_is_awaited_however_long_it_builds started its 0.3 s release timer before it read the start time. Thus the timer can release the index build less than 0.3 s after started, and the >= 0.3 assertion fails. On #193 and #194, CI measured 0.29995 s (#193, #194).

The test now reads the start time first. The timer starts after started and releases the build at least 0.3 s after it starts, so the assertion always holds.

How it was tested

The test ran 25 times locally: 25 passed.

@AlexS-scale
AlexS-scale requested a review from a team as a code owner October 14, 2026 15:18
@AlexS-scale
AlexS-scale merged commit f49d891 into main Oct 14, 2026
14 checks passed
@AlexS-scale
AlexS-scale deleted the AlexS/fix-index-wait-timing-flake branch October 14, 2026 17:50
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.

2 participants