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

Flaky Test: solana-runtime bank::tests::test_bank_update_sysvar_account #3002

Closed
anza-team opened this issue Sep 27, 2024 · 3 comments · Fixed by #3209
Closed

Flaky Test: solana-runtime bank::tests::test_bank_update_sysvar_account #3002

anza-team opened this issue Sep 27, 2024 · 3 comments · Fixed by #3209
Assignees
Labels

Comments

@anza-team
Copy link
Collaborator

AUTO-GENERATED. DO NOT EDIT.

📝 Buildkite Analytics

@steviez
Copy link

steviez commented Oct 7, 2024

I saw one of these fail just now.
https://buildkite.com/anza/agave/builds/11601#01925922-690d-4b40-b66a-2f67a1d9a60c

failures:

---- bank::tests::test_bank_update_sysvar_account stdout ----
thread 'bank::tests::test_bank_update_sysvar_account' panicked at runtime/src/bank/tests.rs:3967:17:
assertion `left == right` failed
  left: 44
 right: 18446744073709551615

failures:
    bank::tests::test_bank_update_sysvar_account

Seeing the rent epoch fail intermittently is a bit surprising:

bank2.update_sysvar_account(&dummy_clock_id, |optional_account| {
let slot = from_account::<Clock, _>(optional_account.as_ref().unwrap())
.unwrap()
.slot
+ 1;
create_account(
&Clock {
slot,
..Clock::default()
},
bank2.inherit_specially_retained_account_fields(optional_account),
)
});
let current_account = bank2.get_account(&dummy_clock_id).unwrap();
assert_eq!(
expected_next_slot,
from_account::<Clock, _>(&current_account).unwrap().slot
);
assert_eq!(dummy_rent_epoch, current_account.rent_epoch());

@brooksprumo
Copy link

Looks like this is conditional based on if the dummy pubkey and if it gets rent collection in this bank or not.

let dummy_clock_id = solana_sdk::pubkey::new_rand();

@steviez
Copy link

steviez commented Oct 7, 2024

Good catch Brooks. From DM's, Brooks mentioned a couple potential ideas/options:

  • Disable rent in the test
  • Use a fixed pubkey that we know will get rent-collected
  • Jump by an epoch so we know that the pubkey will get rent-collected no matter what the value is

I am not going to pick this up right now, so posting that above for when I come back and/or if somebody else picks this one up

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants