mirror of
https://github.com/bitcoin/bitcoin
synced 2026-12-04 10:47:36 +00:00
fuzz: don't set random state for private broadcast test #36404
No reviewers
Labels
No labels
Android
Backport
Block storage
Brainstorming
Bug
Build system
CI failed
Consensus
Data corruption
Descriptors
Docs
DrahtBot Guix build requested
Feature
Fuzzing
GUI
Good First Review
IPC
Insufficient Review
Kernel
Linux/Unix
Mempool
Mining
Needs Backport (31.x)
Needs Backport (32.x)
Needs Benchmark
Needs Conceptual Review
Needs backport (30.x)
Needs rebase
Needs release note
Net
P2P
PSBT
Privacy
Private Broadcast
Questions and Help
RPC/REST/ZMQ
Refactoring
Resource usage
Review club
Scripts and tools
Settings
TX fees and policy
Tests
Tracking Issue
UTXO Db and Indexes
Up for grabs
Upstream
Utils/log/libs
Validation
Waiting for author
Wallet
Windows
good first issue
interfaces
macOS
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
bitcoin/bitcoin!36404
Loading…
Reference in a new issue
No description provided.
Delete branch "private_broadcast_remove_fuzz_seed"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The private broadcast fuzz test does not use any randomness.
This was added in #35129 based on a draft created in #29415. That draft was created when the state of #29415 was still using
SaltedTxidHashers, but this usage was removed before it was merged.Setting the random state while not using it is causing issues with nightly https://github.com/maflcko/bitcoin-core-nightly/issues/25.
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
External sites
Reviews
See the guideline and AI policy for information on the review process.
If your review is incorrectly listed, please copy-paste
<!--meta-tag:bot-skip-->into the comment that the bot should ignore.Base:
7988380da987c0b860885853ace8149b84ac2ee8Head:
1d19cca0761ab35eb46867df2aacdc9715fa5ae0No verified findings are available from this partial review.
Review coverage was incomplete. The archaeology review had incomplete evidence.
Full review report
ACK 1d19cca
Normally this wouldn't fail but in maflcko's nightly build there is this check that causes the test to fail
Link to this code
Nontheless this change makes sense because we do not need
SeedRandomStateForTest(SeedRand::ZEROS);ACK
1d19cca076Is it possible to have this check run on PR CIs so that it is caught before the code is merged into
master?Is this harmful in any way more than being a useless code clutter?
Is there the reverse check either in
masteror elsewhere - to detect if a test does not set the random state and then uses random?cc @maflcko
I don't think it's harmful, but not sure.
Yes, if this line is missing and the harness or code under test accesses the global RNG the CI fails loudly for all fuzz jobs.
No. Fuzz tests are similar to unit tests, because both describe a test case. However, unit tests have their input values hard-coded or hard-derived. Fuzz tests have their input values derived by a fuzz engine and mutable sets of inputs are stored in a folder: qa-assets.
Thus, to know that the fuzz test has "full" coverage and does not need randomness, the fuzz inputs have to be submitted before CI runs. However, usually the fuzz engine is only started after CI runs on a pull, usually even after a pull is merged.
Right, it is just a stupid "linter". I think it makes sense to limit global setup, but no strong opinion.
lgtm ACK
1d19cca076ACK
1d19cca076