Merge bitcoin/bitcoin#26561: fuzz: Move-only net utils#1236
Open
DashCoreAutoGuix wants to merge 1 commit intobackport-0.25-batch-488from
Open
Merge bitcoin/bitcoin#26561: fuzz: Move-only net utils#1236DashCoreAutoGuix wants to merge 1 commit intobackport-0.25-batch-488from
DashCoreAutoGuix wants to merge 1 commit intobackport-0.25-batch-488from
Conversation
fa3b2cf fuzz: Move-only net utils (MarcoFalke) Pull request description: This should speed up fuzz builds when `src/test/fuzz/util.h` is modified. Also, it makes sense on its own. ACKs for top commit: dergoegge: ACK fa3b2cf Tree-SHA512: 03d6abeb728ac8eb3f28167e8ac43d8d6e7e1b1738ec14f58a36e17502081fdde2d56f2d47a9e11b991754667e83b2eb22d154e394c0c1c4ffa0945db86b7e21
WalkthroughThis pull request refactors network-related fuzzing utilities by moving the FuzzedSock class and associated consumer functions (ConsumeAddress, ConsumeNode, FillNode, etc.) from Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20–30 minutes
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backports bitcoin#26561
Original commit: 93cae70
Summary
This is a move-only refactoring commit that moves net-related fuzz utilities from
src/test/fuzz/util.cppandsrc/test/fuzz/util.htosrc/test/fuzz/util/net.cppandsrc/test/fuzz/util/net.h.Changes
FuzzedSockclass and its implementations toutil/net.cpp/util/net.hConsumeAddress,ConsumeSubNet,ConsumeService,ConsumeNode,FillNode) toutil/net.cpp/util/net.h#include <test/fuzz/util/net.h>to fuzz tests that use these utilities#include <util/check.h>topow.cppfuzz test as a side effect of the refactoringDash-specific adaptations
FuzzedSockmethod signatures to match Dash'sSockclass API:IsSelectable(bool is_select)instead ofIsSelectable()Wait(..., SocketEventsParams event_params, ...)instead ofWait(...)WaitMany(..., SocketEventsParams event_params)instead ofWaitMany(...)Summary by CodeRabbit
Refactor
Tests
✏️ Tip: You can customize this high-level summary in your review settings.