Repository navigation
Open
Labels
Description
On master (3ab2582) with this patch:
--- a/src/net.cpp
+++ b/src/net.cpp
@@ -2868,7 +2868,7 @@ int64_t CConnman::PoissonNextSendInbound(int64_t now, int average_interval_secon
int64_t PoissonNextSend(int64_t now, int average_interval_seconds)
{
- return now + (int64_t)(log1p(GetRand(1ULL << 48) * -0.0000000000000035527136788 /* -1/2^48 */) * average_interval_seconds * -1000000.0 + 0.5);
+ return now + (int64_t)(log1p(((1ULL << 48) - 1) * -0.0000000000000035527136788 /* -1/2^48 */) * average_interval_seconds * -1000000.0 + 0.5);
}
CSipHasher CConnman::GetDeterministicRandomizer(uint64_t id) consta bunch of functional tests fail due to the timeout:
feature_notifications.py | ✖ Failed | 62 s
interface_rest.py | ✖ Failed | 63 s
interface_zmq.py | ✖ Failed | 64 s
mempool_persist.py | ✖ Failed | 62 s
mempool_unbroadcast.py | ✖ Failed | 32 s
p2p_blocksonly.py | ✖ Failed | 61 s
p2p_feefilter.py | ✖ Failed | 63 s
p2p_getaddr_caching.py | ✖ Failed | 62 s
p2p_permissions.py | ✖ Failed | 63 s
p2p_segwit.py | ✖ Failed | 69 s
p2p_tx_download.py | ✖ Failed | 75 s
rpc_deprecated.py | ✖ Failed | 62 s
rpc_psbt.py | ✖ Failed | 65 s
rpc_psbt.py --descriptors | ✖ Failed | 67 s
rpc_rawtransaction.py | ✖ Failed | 64 s
wallet_abandonconflict.py | ✖ Failed | 63 s
wallet_balance.py | ✖ Failed | 63 s
wallet_basic.py | ✖ Failed | 68 s
wallet_basic.py --descriptors | ✖ Failed | 72 s
wallet_bumpfee.py | ✖ Failed | 64 s
wallet_groups.py | ✖ Failed | 62 s
wallet_implicitsegwit.py | ✖ Failed | 62 s
wallet_listreceivedby.py | ✖ Failed | 62 s
wallet_listtransactions.py | ✖ Failed | 62 s
wallet_resendwallettransactions.py | ✖ Failed | 62 s
Just bumping timeout values only decreases the probability of a new timeout failure occurrence.
Suggested solution #19588 was ugly and controversial, and it has being closed for now.
Related issues:
- intermittent failure in mempool_unbroadcast "Mempool sync timed out after 30s" #18832
- Intermittent error in feature_backwards_compatibility: "Mempool sync timed out after 60s" #18969
- feature_notifications fails with "Mempool sync timed out after 60s" #19265
- travis: spurious feature_notifications.py failure #19311
- qa: Intermittent failure in
p2p_permissions.py"Unable to connect to bitcoind after 60s" #19711
Reacted by practicalswift (Thomas J), S3RK and kanon
Activity
[-]test: Functional tests are intrinsic vulnerable to timeouts[/-][+]qa: Functional tests are intrinsic vulnerable to timeouts[/+]rebroad commentedon Feb 26, 2022
bitcoin-core/gui#559 - I'm also getting a test failing in this PR, probably due to a timeout.
Sjors commentedon Feb 10, 2025
Is #31833 a symptom of this?
mzumsande commentedon Feb 10, 2025
I don't think so, just a missing sync there.
maflcko commentedon May 19, 2026
Just to give a status update on this: The issue still exists, however:
The current list of failing tests is smaller, probably:
The current diff to reproduce would be something like:
I wonder if a possible solution could be to:
Sjors commentedon May 21, 2026
This seems like a good idea.
[-]qa: Functional tests are intrinsic vulnerable to timeouts[/-][+]qa: Functional tests are intrinsically vulnerable to timeouts[/+]Merge #35324: test: Document rare failure in test_inv_block better
Merge bitcoin/bitcoin#35324: test: Document rare failure in test_inv_…
Merge bitcoin/bitcoin#35324: test: Document rare failure in test_inv_…
Merge bitcoin/bitcoin#35324: test: Document rare failure in test_inv_…
test: opt flaky functional tests into immediate tx relay
ronnakamoto commentedon Sep 21, 2026
Hi @hebasto, I opened #36306 to address part of this issue.
Following the approach suggested in the thread, it opts tests that don't test relay timing into immediate tx relay via noban_tx_relay = True, which whitelists the local peer and skips the Poisson-delayed relay.
Merge #36624: test: Enable noban_tx_relay in a few more tests
maflcko commentedon Oct 26, 2026
Just checking in here again, on current master, with the diff:
the list is: