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 flaky test by increasing tolerance to process pauses #5400

Merged
merged 1 commit into from
Oct 9, 2023

Conversation

thampiotr
Copy link
Contributor

@thampiotr thampiotr commented Oct 6, 2023

PR Description

In CI, especially on slower machines or in presence of noisy neighbours, the execution of tests may be paused by GC or resource exhaustion for longer period of time, sometimes even multiple seconds. When our tests rely on some code executing within certain deadline, we can end up with flaky tests.

One way to fix it is to add more slack to the test, allowing it to pause for longer time. Another is to retry test on failure where it makes sense. In this PR I picked the first option as a simpler one that should increase the tolerance for pauses from 20ms to 200ms.

Which issue(s) this PR fixes

Notes to the Reviewer

PR Checklist

  • CHANGELOG.md updated
  • Documentation added
  • Tests updated
  • Config converters updated

@thampiotr thampiotr force-pushed the thampiotr/fix-flaky-test-2 branch from bac7b9d to e645772 Compare October 6, 2023 13:35
@thampiotr thampiotr marked this pull request as ready for review October 9, 2023 12:13
@thampiotr thampiotr requested a review from a team as a code owner October 9, 2023 12:13
@thampiotr thampiotr merged commit 9a53c48 into main Oct 9, 2023
6 checks passed
@thampiotr thampiotr deleted the thampiotr/fix-flaky-test-2 branch October 9, 2023 12:13
@github-actions github-actions bot added the frozen-due-to-age Locked due to a period of inactivity. Please open new issues or PRs if more discussion is needed. label Feb 22, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 22, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
frozen-due-to-age Locked due to a period of inactivity. Please open new issues or PRs if more discussion is needed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants