Skip to content

fuzz: Improve fuzzing stability for txorphan harness - #29031

Merged
fanquake merged 1 commit into
bitcoin:masterfrom
dergoegge:2023-12-fuzz-stability-txorphan
Dec 11, 2023
Merged

fanquake merged 1 commit into
bitcoin:masterfrom
dergoegge:2023-12-fuzz-stability-txorphan

Conversation

@dergoegge

Copy link
Copy Markdown
Member

The txorphan harness 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.

@DrahtBot

DrahtBot commented Dec 8, 2023 •

Copy link
Copy Markdown
Contributor

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

Code Coverage

For detailed information about the code coverage, see the test coverage report.

Reviews

See the guideline for information on the review process.

Type Reviewers
ACK maflcko, brunoerg

If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update.

Conflicts

Reviewers, this pull request conflicts with the following ones:

  • #28970 ([WIP] p2p: opportunistically accept 1-parent-1-child packages by glozow)

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.

@dergoegge
dergoegge marked this pull request as ready for review December 8, 2023 13:18
@DrahtBot DrahtBot added the Tests label Dec 8, 2023
@brunoerg

brunoerg commented Dec 8, 2023

Copy link
Copy Markdown
Contributor

Concept ACK

nice!

@maflcko

maflcko commented Dec 8, 2023

Copy link
Copy Markdown
Member

lgtm ACK 15f5a0d

Didn't test the stability score.

@DrahtBot
DrahtBot requested a review from brunoerg December 8, 2023 14:06
@dergoegge

Copy link
Copy Markdown
Member Author

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.

@brunoerg brunoerg left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK 15f5a0d

@glozow glozow left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

concept ACK 15f5a0d

Fabcien pushed a commit to Bitcoin-ABC/bitcoin-abc that referenced this pull request Jul 19, 2024
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
roqqit pushed a commit to doged-io/doged that referenced this pull request Aug 1, 2024
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
@bitcoin bitcoin locked and limited conversation to collaborators Dec 10, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants