-
Notifications
You must be signed in to change notification settings - Fork 112
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
Make nullifier tests faster and consistent with UTXO tests #2513
Conversation
The state tests should be about 4x faster after these changes. They reduce total state test "user CPU" time to 20-30 seconds on my machine. Previously it was around 2 minutes.
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.
Reviewed 4 of 4 files at r1.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @teor2345)
zebra-state/src/service/non_finalized_state/tests/prop.rs, line 17 at r1 (raw file):
}; const DEFAULT_PARTIAL_CHAIN_PROPTEST_CASES: u32 = 16;
I think it will be good to change this one as well: https://github.com/ZcashFoundation/zebra/blob/main/zebra-state/src/service/non_finalized_state/tests/prop.rs#L17 but we can do it in a separated PR.
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.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @teor2345)
zebra-state/src/service/non_finalized_state/tests/prop.rs, line 17 at r1 (raw file):
Previously, oxarbitrage (Alfredo Garcia) wrote…
I think it will be good to change this one as well: https://github.com/ZcashFoundation/zebra/blob/main/zebra-state/src/service/non_finalized_state/tests/prop.rs#L17 but we can do it in a separated PR.
Sorry, i posted the link for the one changed. I wanted to say to make an additional change here: https://github.com/ZcashFoundation/zebra/blob/main/zebra-state/src/service/finalized_state/tests/prop.rs#L15
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.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @teor2345)
zebra-state/src/service/non_finalized_state/tests/prop.rs, line 17 at r1 (raw file):
Previously, oxarbitrage (Alfredo Garcia) wrote…
Sorry, i posted the link for the one changed. I wanted to say to make an additional change here: https://github.com/ZcashFoundation/zebra/blob/main/zebra-state/src/service/finalized_state/tests/prop.rs#L15
I opened a PR for this at #2521
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.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @teor2345)
Motivation
The nullifier tests are a bit slow on some developers' machines.
This PR also makes minor changes to the nullifier test code to match the UTXO tests in PR #2511.
This PR does not close any tickets.
Solution
Review
@oxarbitrage can review this PR. It's not urgent at all.
Reviewer Checklist
This change is