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 MetricsQueries test #17097

Merged
merged 4 commits into from
Sep 27, 2022
Merged

Fix flaky MetricsQueries test #17097

merged 4 commits into from
Sep 27, 2022

Conversation

pmossman
Copy link
Contributor

What

Every now and then, this MetricsQueries test fails with a message like expected <1000>, but was <999>. I think this issue occurs when the test happens to execute near the boundary of a second, so the oldest pending job age is computed 1 second off from what we expected.

How

This PR adds +/- 1 second wiggle room so that this timing/rounding issue still allows the test to pass.

@pmossman pmossman temporarily deployed to more-secrets September 23, 2022 15:13 Inactive
@pmossman pmossman temporarily deployed to more-secrets September 26, 2022 16:29 Inactive
@pmossman pmossman temporarily deployed to more-secrets September 26, 2022 21:46 Inactive
@pmossman pmossman merged commit 4d9c585 into master Sep 27, 2022
@pmossman pmossman deleted the parker/fix-flaky-metric-test branch September 27, 2022 21:14
robbinhan pushed a commit to robbinhan/airbyte that referenced this pull request Sep 29, 2022
* fix flaky test

* also add wiggle room for job age
jhammarstedt pushed a commit to jhammarstedt/airbyte that referenced this pull request Oct 31, 2022
* fix flaky test

* also add wiggle room for job age
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