Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Jun 3, 2025. It is now read-only.

[Test] Make test_pipeline_call_is_async less problematic.#1251

Merged
dbogunowicz merged 9 commits into
mainfrom
feature/damian/make_test_less_problematic
Sep 18, 2023
Merged

[Test] Make test_pipeline_call_is_async less problematic.#1251
dbogunowicz merged 9 commits into
mainfrom
feature/damian/make_test_less_problematic

Conversation

@dbogunowicz

@dbogunowicz dbogunowicz commented Sep 18, 2023

Copy link
Copy Markdown
Contributor

Fixing a unit test that very often breaks GHA and requires us to rerun the test suite. Unnecessary and wasteful.
The crux is that, even though the test makes sense, the margin of error is being set too harshly, especially when tests are not locally but in our CI/CD. Very often the difference between dur_1_worker / dur_2_worker is 1.89 or 1.88, which is more than atol=0.1.
By setting atol to 1.5 we are still (roughly) checking the correctness, but we are being less strict and taking into consideration, that asynchronous calls sometimes do not behave as nicely as we would expect them.

Edit: Also makes this test flaky, just for convenience.

@dbogunowicz dbogunowicz marked this pull request as ready for review September 18, 2023 10:09
@dbogunowicz dbogunowicz changed the title Feature/damian/make test less problematic [Test] Make test_pipeline_call_is_async less problematic. Sep 18, 2023
@dbogunowicz dbogunowicz merged commit 71ed9a7 into main Sep 18, 2023
@dbogunowicz dbogunowicz deleted the feature/damian/make_test_less_problematic branch September 18, 2023 13:30
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants