-
Notifications
You must be signed in to change notification settings - Fork 117
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(test) switch zebrad to a non-blocking tracing logger #5032
Conversation
Codecov Report
@@ Coverage Diff @@
## main #5032 +/- ##
==========================================
+ Coverage 79.27% 79.34% +0.06%
==========================================
Files 310 310
Lines 38907 39108 +201
==========================================
+ Hits 30843 31029 +186
- Misses 8064 8079 +15 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great!
I just want to double-check a few edge cases. Let me know if you have any questions, or you'd like me to help with the code changes.
6d2d118
to
9a2101d
Compare
I noticed that some tests were failing, so I pushed a commit that shows the error they are failing with. |
… to "trace" in acceptance test
… 10 seconds, removes unnecessary echo command, and reduces # of rpc requests to 500
1194af9
to
590bb91
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like two other tests are failing with these changes, but only on macOS:
- restart_stop_at_height
- sync_one_checkpoint_mainnet
These are the tests that exit()
abruptly, and don't drop the worker guard.
Here are some things to try:
- make the test-only state code sleep for a few seconds before calling
exit()
- make the test-only state code panic instead of exiting (this could be complicated, I'm not sure if we propagate panics correctly from that far inside the state)
If we can't fix it quickly, it's ok to disable these tests on macOS. It's a tier 2 platform, so we don't guarantee test coverage. |
Co-authored-by: Arya <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for fixing those tests, let's go!
Motivation
We want to switch zebrad to a non-blocking tracing logger to use a separate thread when writing tracing logs to stdout so that our tests won't deadlock.
Fixes #4834.
Solution
Review
Anyone can review this PR
Reviewer Checklist