Skip to content

test: reduce flakiness of acceptance tests #3216

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

Conversation

simonpasquier
Copy link
Member

@simonpasquier simonpasquier commented Jan 13, 2023

The CI environment isn't as performant as local machines: the time
needed to fully initialize the test environment can be significant and
skew the verification. Rather than setting the "virtual" clock used to
measure alert timings at the beginning of the acceptance test, it is
better to wait for the test bed to be ready.

I've run the test job several times and it looks like it's way less flaky than before.
cc @gotjosh

@simonpasquier simonpasquier force-pushed the investigate-acceptance-test-failures branch 3 times, most recently from 30759a6 to 7131884 Compare January 13, 2023 14:29
The CI environment isn't as performant as local machines: the time
needed to fully initialize the test environment can be significant and
skew the verification. Rather than setting the "virtual" clock used to
measure alert timings at the beginning of the acceptance test, it is
better to wait for the test bed to be ready.

Signed-off-by: Simon Pasquier <[email protected]>
@simonpasquier simonpasquier force-pushed the investigate-acceptance-test-failures branch from 7131884 to 01e1f54 Compare January 13, 2023 15:10
@simonpasquier simonpasquier marked this pull request as ready for review January 16, 2023 12:34
@simonpasquier simonpasquier changed the title [wip] investigate acceptance test failures test: reduce flakiness of acceptance tests Jan 16, 2023
@simonpasquier simonpasquier requested a review from gotjosh January 16, 2023 12:36
Copy link
Member

@gotjosh gotjosh left a comment

Choose a reason for hiding this comment

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

LGTM

@simonpasquier simonpasquier merged commit 0ba6441 into prometheus:main Jan 18, 2023
@simonpasquier simonpasquier deleted the investigate-acceptance-test-failures branch January 18, 2023 15:14
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