Skip to content

Conversation

@brakmic
Copy link
Contributor

@brakmic brakmic commented Apr 13, 2020

This PR adds a new option factor that can be used to adjust timeouts in various functional tests.
Several timeouts and functions from authproxy, mininode, test_node and util have been adapted to use this option. The factor-option definition is located in test_framework.py.

Fixes #18266
Also Fixes #18834

@fanquake fanquake added the Tests label Apr 13, 2020
@DrahtBot
Copy link
Contributor

DrahtBot commented Apr 13, 2020

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

Conflicts

Reviewers, this pull request conflicts with the following ones:

If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.

@brakmic
Copy link
Contributor Author

brakmic commented Apr 14, 2020

@MarcoFalke

This one fails on travis, but succeeds on my macOS. Is there anything I could do to make it pass?

mempool_reorg.py                                 | ✖ Failed  | 773 s

Error Log

raise AssertionError("Mempool sync timed out:{}".format("".join("\n  {!r}".format(m) for m in pool)))
AssertionError: Mempool sync timed out:

Copy link
Member

@maflcko maflcko left a comment

Choose a reason for hiding this comment

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

ACK, just style nits

@maflcko
Copy link
Member

maflcko commented May 1, 2020

Could you please bump the factor to 2.0 for the valgrind run and mark this pull as fixing #18834 ?

@brakmic
Copy link
Contributor Author

brakmic commented May 1, 2020

Could you please bump the factor to 2.0 for the valgrind run and mark this pull as fixing #18834 ?

Yes, sure, will do it.

Copy link
Member

@maflcko maflcko left a comment

Choose a reason for hiding this comment

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

ACK

Copy link
Member

@maflcko maflcko left a comment

Choose a reason for hiding this comment

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

ACK

Co-authored-by: MarcoFalke <falke.marco@gmail.com>
@maflcko
Copy link
Member

maflcko commented May 3, 2020

Thanks! ACK 2742c34

@maflcko maflcko merged commit ddc0a60 into bitcoin:master May 3, 2020
@brakmic brakmic deleted the test-timeouts-with-factor branch May 3, 2020 13:00
deadalnix pushed a commit to Bitcoin-ABC/bitcoin-abc that referenced this pull request Jan 22, 2021
Summary:
Co-authored-by: MarcoFalke <falke.marco@gmail.com>
This PR adds a new option factor that can be used to adjust timeouts in various functional tests.
Several timeouts and functions from authproxy, mininode, test_node and util have been adapted to use this option. The factor-option definition is located in test_framework.py.
Fixes #18266
Also Fixes #18834

This is a backport of Core [[bitcoin/bitcoin#18617 | PR18617]]

Test Plan: `ninja check-functional`

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Subscribers: Fabien

Differential Revision: https://reviews.bitcoinabc.org/D9027
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Feb 15, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Intermittent failure in mempool_expiry "Unable to connect to bitcoind after 60s" test: add option to functional test_runner to adjust test timeouts

4 participants