Skip to content

Conversation

@hebasto
Copy link
Member

@hebasto hebasto commented Nov 7, 2021

This PR should mitigate timeouts for wait_until() in the p2p_feefilter.py functional test.

Such failures are only observable recently, since the native Windows task was improved:

The value 12 is just my guess.

This change should mitigate timeouts for `wait_until()` in the
`p2p_feefilter.py` functional test.
@hebasto
Copy link
Member Author

hebasto commented Nov 8, 2021

A similar failure has just happened in p2p_compactblocks.py.

Copy link
Contributor

@lsilva01 lsilva01 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK e72096f

@maflcko
Copy link
Member

maflcko commented Nov 8, 2021

Why do the timeout failures give the impression that increasing the timeout will fix them?

@hebasto
Copy link
Member Author

hebasto commented Nov 8, 2021

Why do the timeout failures give the impression that increasing the timeout will fix them?

No, I don't think that this PR fixes timeout failures. It mitigates them by tuning of a parameter which is used already.

Btw, the default value in CI:

export TEST_RUNNER_TIMEOUT_FACTOR=${TEST_RUNNER_TIMEOUT_FACTOR:-40}

@maflcko
Copy link
Member

maflcko commented Nov 8, 2021

Increasing the timeout this far should only be needed when running on slow environments (such as valgrind on a raspberry pi).

The underlying issue here is a missing sync_all. There is a patch fixing this available for more than a year (#23300), but review interest seems low.

To explain:

test_feefilter generates blocks and txs on node1 (without syncing with node0). Then node1 won't accept/request the txs (because it is still busy syncing the blocks). Thus the test fails (times out).

https://cirrus-ci.com/task/6483187195969536?logs=functional_tests#L1202

 node0 2021-11-07T19:20:39.512760Z [C:\Users\ContainerAdministrator\AppData\Local\Temp\cirrus-ci-build\src\net_processing.cpp:3405]
[ProcessMessage] f131ea1bb61a094f7d4a4d16298c321212a7c8dd40a6645db59b3e25e623dc75 from peer=0 was not accepted: bad-txns-premature-spend-of-coinbase, tried to spend coinbase at depth 64 

@maflcko
Copy link
Member

maflcko commented Nov 8, 2021

Just checked, #20362 was opened on Nov 10th, so it is a year short 2 days, not more than a year, but still.

@maflcko
Copy link
Member

maflcko commented Nov 8, 2021

So yeah.

NACK on this pull unless there is a reason to do this.

@hebasto
Copy link
Member Author

hebasto commented Nov 8, 2021

Closing in favor of #23300.

@hebasto hebasto closed this Nov 8, 2021
@bitcoin bitcoin locked and limited conversation to collaborators Nov 8, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants