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

core/deadliner: fix deadliner flappy test #2047

Merged
merged 1 commit into from
Apr 6, 2023

Conversation

dB2510
Copy link
Contributor

@dB2510 dB2510 commented Apr 6, 2023

Fixes flappy deadliner test. Looks like clockwork.FakeClock is not thread safe. Found out while debugging we were calling clock.Advance in deadline_test and setCurrState in deadline.go at the same time.

category: test
ticket: #1721

@codecov
Copy link

codecov bot commented Apr 6, 2023

Codecov Report

Patch coverage has no change and project coverage change: +0.05 🎉

Comparison is base (0ae3027) 53.40% compared to head (78dfc6e) 53.45%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2047      +/-   ##
==========================================
+ Coverage   53.40%   53.45%   +0.05%     
==========================================
  Files         174      174              
  Lines       22481    22513      +32     
==========================================
+ Hits        12005    12034      +29     
- Misses       8968     8973       +5     
+ Partials     1508     1506       -2     

see 9 files with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@dB2510 dB2510 linked an issue Apr 6, 2023 that may be closed by this pull request
@dB2510 dB2510 added the merge when ready Indicates bulldozer bot may merge when all checks pass label Apr 6, 2023
@obol-bulldozer obol-bulldozer bot merged commit 1505355 into main Apr 6, 2023
@obol-bulldozer obol-bulldozer bot deleted the dhruv/fixdeadlinerflap branch April 6, 2023 14:36
LukeHackett12 pushed a commit that referenced this pull request Apr 11, 2023
Fixes flappy deadliner test. Looks like clockwork.FakeClock is not thread safe. Found out while debugging we were calling `clock.Advance` in deadline_test and `setCurrState` in deadline.go at the same time.

category: test
ticket: #1721
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merge when ready Indicates bulldozer bot may merge when all checks pass
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Flapping deadliner test
2 participants