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

[TEST] Rules: Sleep 15ms to fit Windows behaviour better #14100

Merged
merged 1 commit into from
May 16, 2024

Conversation

bboreham
Copy link
Member

On Windows, Go will sleep 15ms if you ask for less. TestAsyncRuleEvaluation compares actual delay to the nominal time, so using 15ms should work better on Windows, and be hardly noticeable elsewhere.

Attempting to fix #13547

On Windows, Go will sleep 15ms if you ask for less.  TestAsyncRuleEvaluation
compares actual delay to the nominal time, so using 15ms should work
better on Windows, and be hardly noticeable elsewhere.

Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
Copy link
Collaborator

@machine424 machine424 left a comment

Choose a reason for hiding this comment

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

Let's give it a try.
We could also just store the duration of the sequential evalution somewhere and assert the // evals are lesser.

(not related to the PR, I think the comment at 1889 is not longer up to date?)

@roidelapluie roidelapluie merged commit d1eff95 into prometheus:main May 16, 2024
25 checks passed
@roidelapluie
Copy link
Member

Thanks

@bboreham bboreham deleted the windows-flake branch May 16, 2024 14:38
@bboreham
Copy link
Member Author

Anecdata: I re-ran the Windows unit tests 4 times for this PR, with no flake.

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 TestAsyncRuleEvaluation
3 participants