Skip to content

Speed up slow tests, increase db listener test retries #4456

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

Merged
merged 4 commits into from
Jun 30, 2025

Conversation

tybug
Copy link
Member

@tybug tybug commented Jun 29, 2025

Speeds up some of our slowest tests. Also increases the retries on our db listener tests, since I keep seeing those fail and I'd really like them to stop being flaky. If even this doesn't work then I'll take more drastic measures.

@@ -107,21 +107,20 @@ def test(n):
test()


def test_does_not_trigger_health_check_when_most_examples_are_small(monkeypatch):
with deterministic_PRNG():
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm worried about nondeterministic failures here; maybe we can apply @seed(idx) instead with the loop variable?

Copy link
Member Author

@tybug tybug Jun 30, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

I don't care too much about nondeterministic failures honestly, I'd actually prefer to use less seeding in our tests in general, so that we don't get silently passing seeded tests when they would have caught a real failure eventually. Of course the flipside is dealing with flakes.

@tybug tybug merged commit 30f5cea into HypothesisWorks:master Jun 30, 2025
61 checks passed
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