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 --> add minimum wait time that is large enough #4164

Merged
merged 8 commits into from
May 2, 2023

Conversation

mrnicegyu11
Copy link
Member

@mrnicegyu11 mrnicegyu11 commented Apr 25, 2023

This test would always run on my local machine, but fail sometimes on github actions. A timeout is needed here by design since a directory watcher is tested.

By decreasing the minimum timeout period successively I could make the test flaky on my local PC.
Arbitrarily we now set the minimum wait time to 3 seconds, which is 1 second more than the minimum 2sec waittime reported in failed test on github actions

Bonus:
Fixes (maybe impactful?) typo sire_effects --> side_effects

@mrnicegyu11 mrnicegyu11 added the bug buggy, it does not work as expected label Apr 25, 2023
@mrnicegyu11 mrnicegyu11 added this to the Jelly Beans milestone Apr 25, 2023
@mrnicegyu11 mrnicegyu11 self-assigned this Apr 25, 2023
Copy link
Member

@pcrespov pcrespov left a comment

Choose a reason for hiding this comment

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

please reassign when ready (i.e. not draft)

@mrnicegyu11 mrnicegyu11 changed the title Fix flaky test --> Add minimum wait time that is large enough 🐛 fix flaky test --> add minimum wait time that is large enough Apr 25, 2023
@codecov
Copy link

codecov bot commented Apr 25, 2023

Codecov Report

Merging #4164 (c594d9c) into master (3ef7249) will decrease coverage by 19.9%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##           master   #4164      +/-   ##
=========================================
- Coverage    84.3%   64.5%   -19.9%     
=========================================
  Files         957     437     -520     
  Lines       41452   22779   -18673     
  Branches      954     173     -781     
=========================================
- Hits        34975   14694   -20281     
- Misses       6274    8036    +1762     
+ Partials      203      49     -154     
Flag Coverage Δ
integrationtests 62.2% <ø> (+0.8%) ⬆️
unittests 86.0% <ø> (+3.6%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

see 764 files with indirect coverage changes

@mrnicegyu11
Copy link
Member Author

Adresses #3694

@mrnicegyu11 mrnicegyu11 requested a review from sanderegg April 25, 2023 14:12
@mrnicegyu11
Copy link
Member Author

Reassigning to @pcrespov as requested.

@mrnicegyu11 mrnicegyu11 marked this pull request as ready for review April 25, 2023 14:22
@mrnicegyu11 mrnicegyu11 requested a review from GitHK as a code owner April 25, 2023 14:22
@mrnicegyu11 mrnicegyu11 requested a review from pcrespov April 25, 2023 14:23
Copy link
Member

@pcrespov pcrespov left a comment

Choose a reason for hiding this comment

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

thx! Greatly appreciated! :-)

Copy link
Contributor

@matusdrobuliak66 matusdrobuliak66 left a comment

Choose a reason for hiding this comment

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

Thanks

Copy link
Contributor

@GitHK GitHK left a comment

Choose a reason for hiding this comment

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

Nice, please consider my comments

…er.py

Co-authored-by: Andrei Neagu <5694077+GitHK@users.noreply.github.com>
@pcrespov
Copy link
Member

Reassigning to @pcrespov as requested.

@mrnicegyu11 :-))) I meant "re-request review" :-) sorry for the confusion!

@pcrespov pcrespov removed their assignment Apr 28, 2023
@mrnicegyu11 mrnicegyu11 enabled auto-merge (squash) May 2, 2023 11:26
@codeclimate
Copy link

codeclimate bot commented May 2, 2023

Code Climate has analyzed commit c594d9c and detected 0 issues on this pull request.

View more on Code Climate.

@sonarqubecloud
Copy link

sonarqubecloud bot commented May 2, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@mrnicegyu11 mrnicegyu11 merged commit ee12786 into ITISFoundation:master May 2, 2023
@mrnicegyu11 mrnicegyu11 deleted the fix/flakytest1 branch May 5, 2023 12:48
@matusdrobuliak66 matusdrobuliak66 mentioned this pull request May 30, 2023
24 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug buggy, it does not work as expected
Projects
None yet
Development

Successfully merging this pull request may close these issues.

flaky tests/unit/test_modules_outputs_watcher.py::test_port_key_sequential_event_generation
5 participants