-
Notifications
You must be signed in to change notification settings - Fork 111
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
Restore and update mempool tests #2966
Conversation
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.
Looks good to me, thanks for making this happen!
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 one of the tests sometimes fails:
---- components::mempool::storage::tests::vectors::mempool_storage_basic stdout ----
The application panicked (crashed).
Message: assertion failed: !some_rejected_transactions.is_empty()
Location: zebrad/src/components/mempool/storage/tests/vectors.rs:104
This intermittent test failure is a blocker for merging this PR.
The same failure also happened in the coverage build, along with:
|
If the randomised tests are quick, we might want to run them multiple times, to make sure we catch any intermittent failures. |
Good idea! I did that and fixed the tests in ca21735 |
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.
I'm fine with these retries for now 👍
teor approved then requested changes for failing tests that are now fixed
Motivation
See #2959
Specifications
Designs
Solution
Restore and update the tests. In most cases, instead of working with a transaction count, a cost limit was derived by summing the costs of some of the transactions that will be inserted.
Closes #2959
Review
I just focused on restoring the tests and still want to think a bit more about if these tests still test everything that we want or if something is missing. But since we want to get this done soon I'm opening the PR as is. Feel free to suggest additions, otherwise I can also amend the tests in a later PR.
Anyone can review, but @teor2345 and/or @dconnolly might be particularly interested.
This seems to be one of the last pending issues for the beta so it's best to review it soon.
Reviewer Checklist
Follow Up Work