Repository navigation
fuzz: Improve fuzzing stability for txorphan harness - #29031
Conversation
|
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. Code CoverageFor detailed information about the code coverage, see the test coverage report. ReviewsSee the guideline for information on the review process.
If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update. ConflictsReviewers, this pull request conflicts with the following ones:
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first. |
|
Concept ACK nice! |
|
lgtm ACK 15f5a0d Didn't test the stability score. |
I'm seeing 87% stability locally, up from 51% reported by oss-fuzz. Not sure why it isn't a 100%, can't see anything else in the orphanage that would be non-deterministic. |
Summary: Backport of [[bitcoin/bitcoin#29031 | core#29031]]. Note that we don't have the fuzz test backported yet, the point is to bring the file up to date with upstream. Test Plan: ninja all check-all Reviewers: #bitcoin_abc, PiRK Reviewed By: #bitcoin_abc, PiRK Differential Revision: https://reviews.bitcoinabc.org/D16506
Summary: Backport of [[bitcoin/bitcoin#29031 | core#29031]]. Note that we don't have the fuzz test backported yet, the point is to bring the file up to date with upstream. Test Plan: ninja all check-all Reviewers: #bitcoin_abc, PiRK Reviewed By: #bitcoin_abc, PiRK Differential Revision: https://reviews.bitcoinabc.org/D16506
The
txorphanharness has low stability as eviction of orphan txs is entirely random at the moment.Fix this by passing the rng to
LimitOrphans, which can be deterministic in tests.Also see #29018.