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

Address flakiness in tests #4565

Merged
merged 3 commits into from
Jul 26, 2024
Merged

Address flakiness in tests #4565

merged 3 commits into from
Jul 26, 2024

Conversation

sergei-maertens
Copy link
Member

@sergei-maertens sergei-maertens commented Jul 26, 2024

  • Report the random state of factory body - this may help in reproducing flaky tests.
  • Fixed a cache isolation/reset causing flaky tests

Copy link

codecov bot commented Jul 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.58%. Comparing base (42f53ce) to head (0062214).
Report is 459 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #4565   +/-   ##
=======================================
  Coverage   96.58%   96.58%           
=======================================
  Files         725      725           
  Lines       24150    24151    +1     
  Branches     3176     3176           
=======================================
+ Hits        23325    23326    +1     
  Misses        567      567           
  Partials      258      258           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@sergei-maertens
Copy link
Member Author

well, that test flakiness does not appear to be due to factory boy random state, can't reproduce locally yet :(

@sergei-maertens sergei-maertens changed the title 🔊 Report the random state from factory boy in CI Address flakiness in tests Jul 26, 2024
This may help in reproducing flaky tests.
The cache is shared between tests and when using Redis, even between
parallel test processes. Certain global configuration options can
affect other tests.
There's a possible race condition here that the clicks happen too
quickly and the state change was not processed yet and the old state
is then sent to the backend.
@sergei-maertens sergei-maertens marked this pull request as ready for review July 26, 2024 14:37
@sergei-maertens
Copy link
Member Author

Going to merge this one as-is, and other issues that pop up I will try to investigate asap.

@sergei-maertens sergei-maertens merged commit 7cb4d20 into master Jul 26, 2024
34 checks passed
@sergei-maertens sergei-maertens deleted the chore/test-flakiness branch July 26, 2024 14:45
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.

1 participant