Skip to content

test: add option to functional test_runner to adjust test timeouts #18266

Closed

Description

@fanquake

It was suggested that we could have an additional argument for the functional test_runner that modifies the timeouts by some factor. This would save having to randomly bump timeouts in the tests themselves, as users that require longer timeouts can opt in by -factor=1.5 etc.

Follow up to #18249.

Want to work on this issue?

The purpose of the good first issue label is to highlight which issues are suitable for a new contributor without a deep understanding of the codebase.

You do not need to request permission to start working on this. You are encouraged to comment on the issue if you are planning to work on it. This will help other contributors monitor which issues are actively being addressed and is also an effective way to request assistance if and when you need it.

For guidance on contributing, please read CONTRIBUTING.md before opening your pull request.

Activity

  1. modfort commented on Mar 19, 2020

    @modfort

    I would like to work on this .

  2. maflcko commented on Mar 19, 2020

    @maflcko
    Member

    To find the timeouts that need to be reworked:

    git grep 'def ' test/functional/test_framework/ | grep 'timeout='
    
    git grep 'self.rpc_timeout = 60' test/functional/test_framework/
    
  3. modfort commented on Apr 8, 2020

    @modfort

    Hi , if you can help with a problem in configure , configure: error: LRELEASE not found , i have manjaro 64 .

  4. maflcko commented on Apr 8, 2020

    @maflcko
    Member

    @modfort Please file a separate issue with steps to reproduce about your build error

  5. brakmic commented on Apr 10, 2020

    @brakmic
    Contributor

    Hi,

    I'm not sure about the current state of this Issue, so in case my work "clashes" with @modfort 's , feel free to pilfer any parts that are valuable to you. I won't be opening a PR unless it's OK with everyone participating in this thread.

    My solution adds a factor option to BitcoinTestMetaClass in test_framework. First, I tried the same with test_runner but couldn't forward the factor arg to test cases (error: the options object and/or factor arg were missing...not sure why, I must be missing something important regarding the test framework's infrastructure).

    Therefore, I went to change BitcoinTestMetaClass.

    The functions with timeoutparameter that I updated are located in authproxy, mininode and test_node. I used @MarcoFalke 's grep commands (thanks for that!).

    I've seen many more functions that expect similar arguments but didn't want to change them without consultation.

    Cheers,

  6. brakmic commented on Apr 13, 2020

    @brakmic
    Contributor

    Maybe it's better to open a proper PR so that others can see that something is happening here? There are so many issues in the backlog and not everyone has enough time to go through all of them to check for changes.

    I will now open a PR, and then we can discuss. If there is anything speaking against it, please let me know.

    Cheers,

  7. locked as resolved and limited conversation to collaborators on Feb 15, 2022
  8. added a commit that references this issue on Sep 13, 2022
  9. added a commit that references this issue on Jul 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions