-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Use is_trusted bool in insert_shreds() instead manually adjusting root #34010
Conversation
5b2984e
to
bb2bfc7
Compare
The test_duplicate_with_pruned_ancestor test needs to get around a limitation where the shreds with a parent older than the latest root are discarded. The previous approach manually adjusted the root value in the blockstore; this is not ideal in that it is fiddling with the inner working of Blockstore. So, use the is_trusted argument in Blockstore::insert_shreds(); setting is_trusted=true bypasses the sanity checks (including the parent >= latest root check).
bb2bfc7
to
f423e5d
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.
thanks for this, a much better solution than my hack! just a minor nit on a comment
Codecov Report
@@ Coverage Diff @@
## master #34010 +/- ##
=======================================
Coverage 81.9% 81.9%
=======================================
Files 811 811
Lines 219427 219424 -3
=======================================
+ Hits 179769 179771 +2
+ Misses 39658 39653 -5 |
I was initially a little concerned in that one of the local-cluster CI steps took 3 retries to succeed. However, looking at the logs for those 3 failures, all 3 failed at the same spot on a different test:
This is not the test whose behavior I altered; So, it would appear that this test was previously flaky, and my PR does not alter the flaky test so I think I can ok to submit. Do you agree with my conclusion @AshwinSekar; also CC @yihau as I know you've been keeping an eye on flaky tests |
yeah that's a known flaky test. i was unable to reproduce it locally and then it quickly got buried in my todo. I'll take a look again at it next week #29221 |
Problem
Summary of Changes