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 all flaky tests #600

Merged
merged 1 commit into from
Oct 8, 2024
Merged

Conversation

julienduchesne
Copy link
Member

@julienduchesne julienduchesne commented Oct 8, 2024

  • TestPartitionInstanceLifecycler: Increase test polling timeout. 1s seems tight, as it sometimes fails with -race. Fixes Flaky test TestPartitionInstanceLifecycler #572
  • TestBasicLifecycler_HeartbeatWhileRunning: Same as above
  • TestRejoin: Converted the test to use require.Eventually instead of a custom func + increased polling timeout a bit
  • TestTLSServerWithLocalhostCertWithClientCertificateEnforcementUsingClientCA1: Wait until the server is ready before running tests

Mostly increasing timeouts, but I believe -race is making those tests fail. Can't rely on time working correctly

- `TestPartitionInstanceLifecycler`: Increase test polling timeout. 1s seems tight, it fails with `-race`. Fixes #572
- `TestBasicLifecycler_HeartbeatWhileRunning`: Same as above
- `TestRejoin`: Converted the test to use `require.Eventually` instead of a custom func + increased polling timeout a bit
- `TestTLSServerWithLocalhostCertWithClientCertificateEnforcementUsingClientCA1`: Wait until the server is ready before running tests
@julienduchesne julienduchesne force-pushed the julienduchesne/fix-partition-flaky branch from 1625ab3 to a6ad4d0 Compare October 8, 2024 19:08
@julienduchesne julienduchesne changed the title Fix flaky test: TestPartitionInstanceLifecycler Fix all flaky tests Oct 8, 2024
@julienduchesne
Copy link
Member Author

julienduchesne commented Oct 8, 2024

/find-flaky-tests

Run: https://github.com/grafana/dskit/actions/runs/11242094613
All 🟢

Copy link
Contributor

@seizethedave seizethedave left a comment

Choose a reason for hiding this comment

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

LGTM nice!

@julienduchesne julienduchesne merged commit 13d10a4 into main Oct 8, 2024
5 checks passed
@julienduchesne julienduchesne deleted the julienduchesne/fix-partition-flaky branch October 8, 2024 22:02
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.

Flaky test TestPartitionInstanceLifecycler
2 participants