Skip to content

test: add factor option to adjust test timeouts - #18617

Merged
maflcko merged 1 commit into
bitcoin:masterfrom
brakmic:test-timeouts-with-factor
May 3, 2020
Merged

maflcko merged 1 commit into
bitcoin:masterfrom
brakmic:test-timeouts-with-factor

Conversation

@brakmic

@brakmic brakmic commented Apr 13, 2020 •

Copy link
Copy Markdown
Contributor

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

DrahtBot commented Apr 13, 2020 •

Copy link
Copy Markdown
Contributor

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

brakmic commented Apr 14, 2020 •

Copy link
Copy Markdown
Contributor Author

@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:

@maflcko maflcko left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

ACK, just style nits

Comment thread test/functional/test_framework/util.py Resolved
@maflcko

maflcko commented May 1, 2020

Copy link
Copy Markdown
Member

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

@brakmic

brakmic commented May 1, 2020

Copy link
Copy Markdown
Contributor Author

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.

@maflcko maflcko left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

ACK

Comment thread test/functional/test_framework/util.py Resolved
Comment thread test/functional/test_framework/util.py Resolved

@maflcko maflcko left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

ACK

Comment thread test/functional/test_framework/util.py Resolved
@maflcko

maflcko commented May 3, 2020

Copy link
Copy Markdown
Member

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 <[email protected]>
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