Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix test_chunks_the_same flakiness #2239

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

poodlewars
Copy link
Collaborator

Fix for flaky test test_chunks_the_same

This would fail sometimes on Windows / Mac because the clocks used there are less precise and the two [1000, 1001] segments would collide on exactly the same key with LMDB. I just change the test so their content hashes would be different. The test was written to cover an issue with identical index ranges, so it still meets its original purpose.

This just changes the tests so that their content hashes differ. Theoretically, this could be a real problem that comes up, and we ought to somehow retry when there is a key clash. But that seems very improbable outside of unit testing, so we leave it as is for now.

@poodlewars poodlewars added flaky test Tracking tests that fail inconsistently in CI patch Small change, should increase patch version labels Mar 12, 2025
@poodlewars poodlewars changed the title Test chunks the same flakiness Fix Test chunks the same flakiness Mar 12, 2025
@poodlewars poodlewars changed the title Fix Test chunks the same flakiness Fix test_chunks_the_same flakiness Mar 12, 2025
@poodlewars poodlewars force-pushed the test-chunks-the-same-flakiness branch from f432f3d to 5382581 Compare March 12, 2025 16:34
This would fail sometimes on Windows / Mac because the clocks used there are less precise and the two [1000, 1001] segments would collide on exactly the same key with LMDB. I just change the test so their content hashes would be different. The test was written to cover an issue with identical index ranges, so it still meets its original purpose.

This just changes the tests so that their content hashes differ. Theoretically, this could be a real problem that comes up, and we ought to somehow retry when there is a key clash. But that seems very improbable outside of unit testing, so we leave it as is for now.
@poodlewars poodlewars force-pushed the test-chunks-the-same-flakiness branch from 5382581 to 8e416ab Compare March 12, 2025 17:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flaky test Tracking tests that fail inconsistently in CI patch Small change, should increase patch version
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant