#36713 test: remove unused `DynSock::Pipe::GetNetMsg` and `PushNetMsg`
| Reviewability | Reviews | Agreement | Size | ||||
|---|---|---|---|---|---|---|---|
| #36713 test: remove unused `DynSock::Pipe::GetNetMsg` and `PushNetMsg` | Ready | 1 | Positive | 0 + 3 tests | |||
|
|
|
|
| |||
Reviewability: ReadyStalePaused Agreement: StrongPositivePositive w/ caveatsNeutralMildDisputedBlockedCrickets Reviews: current code-review ACKs, then (+stale ACKs) and -NACKs; greener = more ACKs. Size: lines added or modified outside tests, then in tests; greener = smaller. | |||||||
Goal
Removes the unused `DynSock::Pipe::GetNetMsg` and `PushNetMsg` helper methods from the test framework. Also removes the now-unneeded `WaitForDataOrEof` method and the pipe's internal condition variable, changing `DynSock::Pipe::GetBytes` to acquire a normal mutex lock.
Problem: Dead helper code and associated condition-variable synchronization remain in the test socket utilities after being merged in PR #30205 for PR #26812, which was never merged.
Evidence of importance:
Risk of a mistake: low (tests). Only touches test socket utility code, so any issue would at most cause unit test failures rather than affect production nodes.
Changed since the previous assessment: Diff provided; confirms removal of unused test helper methods and associated condition variable synchronization.
Reviewability
Ready
Nothing known that would invalidate a review now.
Waiting on (from the thread read):
- nothing
Agreement
Positive
support without stated reasons, no open objection (jpk68)
Thread notes: Initial record. jpk68 left a bare ACK with no comments or claims. / Initial record. jpk68 gave an ACK with no rationale or evidence of testing.
Objections, suggestions, and questions: none recorded.
Support:
- jpk68 (contributor) (ACK, 2026-10-30): (no reason given) [not substantive]
Participants:
- jpk68 (contributor, support, 1 statements 2026-10-30 to 2026-10-30): bare ACK
Files
100 lines under test/bench/ci.
- src/test/util/net.cpp +1/-51
- src/test/util/net.h +2/-46
Card
The short text the ranking pass compares across PRs.
Removes unused helper methods GetNetMsg and PushNetMsg from the DynSock::Pipe test utility, along with associated condition variable synchronization. The methods were originally introduced in PR #30205 to prepare for PR #26812, which was never merged. This is routine dead code removal in the test utility suite.
Data
thread read through 2026-10-30 (1 statements), head e172eb69df
labels: Tests
Categories
Test infrastructure
P4 · cleanup
Removes dead test utility helpers and unused synchronization primitives. As noted in the description, this helper code was merged in advance of a PR that never landed, making this a low-priority test framework cleanup.
Membership: Matches the 'Tests' label and modifies test utility framework code in src/test/util/net.cpp and src/test/util/net.h.
Factors: security/stability 0, bug 0, performance 0, user value 0, leverage 0