-
Notifications
You must be signed in to change notification settings - Fork 37.8k
test: Fix intermittent timeout in p2p_tx_download.py #29933
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test: Fix intermittent timeout in p2p_tx_download.py #29933
Conversation
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. Code CoverageFor detailed information about the code coverage, see the test coverage report. ReviewsSee the guideline for information on the review process.
If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update. |
fa003f2
to
fa6c300
Compare
It looks like 29926 is adding a call to To explain it a bit more, the traceback is:
Which is after the test has passed successfully. |
Hm, do you have an example failure where you have seen that traceback? Or is this from reproducing it locally? Because I haven't seen this, at least not the shutdown part. Here is one of the ones I have seen and it seems to be a different failure: https://cirrus-ci.com/task/5622109341220864 |
To get the full error log on Cirrus CI, you'll have to use the "Open Full Logs" button to see the full log. Usually the output is: ... (dots from the test runner) |
I can see the |
Thanks, in this case it seems the issue is transactions relayed to the extraneous peers. I've edited the pull request description. To see what message is the cause for the block, you can inspect the full combined log. In this example:
|
makes sense ACK fa6c300 |
We should probably re-run the multiprocess job at least 2 more times manually here to ensure this actually fixes it and it wasn't just lucky this one time. |
It is already re-run 10 times. You can double check by navigating to the Cirrus CI page for this pull request. |
Thanks, ACK fa6c300 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK fa6c300
Thanks for fixing!
ACK fa6c300 |
Thank you @maflcko! |
Currently the test passes, but may fail during shutdown, because blocks and transactions are synced with
NUM_INBOUND
*self.num_nodes
peers, which may take a long time.There is no need for this test to have this amount of inbounds.
So avoid the extraneous inbounds to speed up the test and avoid the intermittent test failures.