mirror of
https://github.com/bitcoin/bitcoin
synced 2026-12-04 10:50:37 +00:00
WIP: iwyu: Fix warnings in src/test/fuzz and treat them as errors #36808
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!36808
Loading…
Reference in a new issue
No description provided.
Delete branch "261108-iwyu-fuzz"
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?
This PR continues the ongoing effort to enforce IWYU warnings.
See Developer Notes.
Based on https://github.com/bitcoin/bitcoin/pull/36844.
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.
A summary of reviews will appear here.
Conflicts
Reviewers, this pull request conflicts with the following ones:
MSG_BLOCKby stripping witnesses in place by l0rinc)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.
Earlier concerns neither republished nor resolved: 1 suggestion. See the Run archive linked from the Review report for their assessments.
🔵 Suggestion · The new
wallet.hcheck is report-onlyThe new
--check_alsoreports suggestions fortest/fuzz/util/wallet.honly through a non-enforced wallet fuzz target, so those suggestions do not fail CI.Location:
ci/test/03_test_script.sh:271(head).🔵 Suggestion · The fuzz-enforcement commit leaves shared-header changes unexplained
The fuzz-enforcement commit has no message body explaining its shared-header, downstream-consumer and tooling changes, making their relationship to the new enforcement harder to review.
Location: src/private_broadcast.h:21 (commit).
Review coverage was incomplete.
Reviewed:
3d224a742c87· Review report · Previous reportspermalink
🚧 At least one of the CI tasks failed.
Task
Alpine (musl): https://github.com/bitcoin/bitcoin/actions/runs/42513074263/job/128830134615LLM reason (✨ experimental): CI failed during compilation:
headerssync.cpphas missing declarations/includes, causing incompleteCBlockIndexand undefined symbols.Hints
Try to run the tests locally, according to the documentation. However, a CI failure may still
happen due to a number of reasons, for example:
Possibly due to a silent merge conflict (the changes in this pull request being
incompatible with the current code in the target branch). If so, make sure to rebase on the latest
commit of the target branch.
A sanitizer issue, which can only be found by compiling with the sanitizer and running the
affected test.
An intermittent issue.
Leave a comment here, if you need help tracking down a confusing failure.
this should be left as-is. Also, I am unsure how to review the non-fuzz header changes? How do I know they are enforced by iwyu? I think it would be easier if the header changes are addition-only for now?
Why is this needed? Has it been upstreamed?
Working on this.
🐙 This pull request conflicts with the target branch and needs rebase.
Thanks! Fixed.
The changes in non-fuzz headers are enforced by IWYU because, due to the stem name coincidence, it considers them associated headers of the corresponding fuzz sources. For example,
src/test/fuzz/protocol.cppandsrc/protocol.h. However, they are not, because the fuzz sources contain no definitions for any declarations from those headers.This, in turn, requires adding includes to some non-fuzz sources for headers that were previously included transitively.
I'm going to split out the non-fuzz changes so that they can be reviewed separately.
See https://github.com/bitcoin/bitcoin/pull/36844.
🐙 This pull request conflicts with the target branch and needs rebase.
🐙 This pull request conflicts with the target branch and needs rebase.
🐙 This pull request conflicts with the target branch and needs rebase.