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 SynchronousMetricStorageTest flake #5981

Merged
merged 3 commits into from
Nov 14, 2023

Conversation

jack-berg
Copy link
Member

SynchronousMetricStorageTest#recordAndCollect_concurrentStressTest can flake if a final iteration of collection doesn't run after all the record threads have finished.

I was able to simulate this failure locally by adding some select Thread.sleep calls that increase the probability of flake. Fixing this typo in the test eliminated the flake.

@jack-berg jack-berg requested a review from a team November 13, 2023 19:03
Copy link

codecov bot commented Nov 14, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (8901416) 91.18% compared to head (7ae02f2) 91.15%.

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #5981      +/-   ##
============================================
- Coverage     91.18%   91.15%   -0.04%     
+ Complexity     5613     5612       -1     
============================================
  Files           616      616              
  Lines         16566    16566              
  Branches       1642     1642              
============================================
- Hits          15105    15100       -5     
- Misses         1013     1015       +2     
- Partials        448      451       +3     

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

@jack-berg jack-berg merged commit 9ac678e into open-telemetry:main Nov 14, 2023
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