-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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 another unstable test after eager rent #10120
Fix another unstable test after eager rent #10120
Conversation
Codecov Report
@@ Coverage Diff @@
## master #10120 +/- ##
=======================================
Coverage 81.5% 81.5%
=======================================
Files 281 281
Lines 65971 65972 +1
=======================================
+ Hits 53819 53825 +6
+ Misses 12152 12147 -5 |
@CriesofCarrots Thanks for spotting on this!
Well, there was and is some.... ;) (Past: #10031, waiting for my love: https://buildkite.com/solana-labs/solana/builds/24442#d1c0a942-4d7b-491e-b6b6-71653ffeab06/159-287). Sorry for ongoing trouble. I'll work on these once devnet bloat snapshot issue is settled down asap. |
Yeah, it's correct. undocumented (#10133) and unintuitive. :( But eager rent collection always updates account even if the balance hasn't changed. That's intended behavior to purge too old account states for each epoch #8931 . By the way, I've noticed all touched accounts by eager rent collection would be exposed to get_program_accounts_modified_since_parent and the like, eventually RPC. Would that be problem? I mean, those RPCs will start to return those accounts as noise.
Yeah, that flag is exactly designed for that. Once eager rent collection is enabled across the board, I'll rewrite those tests. |
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.
LGTM! Really thanks for working on my bug..!
Yes, I do think it is a slight UX problem, as it will be confusing for users for accounts to appear as |
(cherry picked from commit 9d89fb5)
Problem
test_bank_get_program_accounts
is flaky since eager rent was implemented.Summary of Changes
Preserve lazy rent for this test, seems to resolve the flakiness (about 40 local runs succeeded, compared with failures every 3-6).
However, @ryoqun, I would like your insight as to whether (a) it is correct that this account should show that it was modified since parent, even though the balance hasn't changes; (b) this is the right solution.
Turning off rent seems like another option, since this test is meant to detect non-rent account changes. (It does fix the flakiness)
I'm actually a bit surprised there aren't more flaky tests like this, but I guess there aren't any other tests using a chain of banks and expecting accounts to stay unchanged in this way. I did a quick scan through bank.rs and didn't see any.
Fyi @mvines