Page MenuHomePhabricator

test: add option to speed up tx relay/mempool sync
ClosedPublic

Authored by PiRK on Nov 12 2024, 14:28.

Details

Reviewers
Fabien
Group Reviewers
Restricted Project
Commits
rABC7fbc409146b0: test: add option to speed up tx relay/mempool sync
Summary

when self.noban_tx_relay=True, the following flag
-whitelist=noban,in,out@127.0.0.1is added to extra_args
to speed up tx relay/mempool sync.

Before (all functional tests):

ALL                                        | ✓ Passed  | 1465 s (accumulated)
Runtime: 163 s

After:

ALL                                        | ✓ Passed  | 1350 s (accumulated)
Runtime: 150 s

This makes test duration shorter and hopefully solves some rare timeouts in interface_rest.py

This concludes backport of core#27114
https://github.com/bitcoin/bitcoin/pull/27114/commits/c985eb854cc86deb747caea5283c17cf51b6a983

Bypasses core#26970 and core#29822

Depends on D17114

Test Plan

ninja check-functional

Diff Detail

Event Timeline

PiRK requested review of this revision.Nov 12 2024, 14:28

Before

interface_rest.py                          | ✓ Passed  | 21 s

After

interface_rest.py                          | ✓ Passed  | 3 s
Fabien requested changes to this revision.Nov 12 2024, 14:40
Fabien added a subscriber: Fabien.

You should go through the abc tests also. I use this a lot to speed up proof relay in tests

This revision now requires changes to proceed.Nov 12 2024, 14:40
PiRK edited the summary of this revision. (Show Details)

add more tests (mostly abc*). Note that the new way of setting the option is persistent accross node restarts. abc_p2p_avalanche_proof_voting is an example that fails if we set this attribute, because it needs to restart without the noban permission in one of the subtests.

test/functional/mempool_reorg.py
24 ↗(On Diff #50789)

in this test it does not hurt to set the flag for both nodes, so do it for a reduction in number of loc

please include the mining_getblocktemplate_longpoll.py from D17113

Fabien requested changes to this revision.Nov 12 2024, 15:41
Fabien added inline comments.
test/functional/abc_feature_persist_avapeers.py
35 ↗(On Diff #50789)

it's about proof here. This comment is just annoying imo, you'd better remove it

This revision now requires changes to proceed.Nov 12 2024, 15:41

remove comment (x52), include new test from D17113

This revision is now accepted and ready to land.Nov 12 2024, 16:22