test: feature_framework_startup_failures.py fails with --timeout-factor=0 #32506

issue fanquake openend this issue on May 15, 2025
  1. fanquake commented at 10:19 am on May 15, 2025: member

    master @ c779ee3a4044df3a263394bbb8b104aeeaa7c727

     0./build/test/functional/test_runner.py feature_framework_startup_failures.py --timeout-factor=0
     1Temporary test directory at /tmp/test_runner_₿_🏃_20250515_101739
     2Remaining jobs: [feature_framework_startup_failures.py]
     31/1 - feature_framework_startup_failures.py failed, Duration: 1 s
     4
     5stdout:
     62025-05-15T10:17:39.659000Z TestFramework (INFO): PRNG seed is: 8331063254222734517
     72025-05-15T10:17:39.660000Z TestFramework (INFO): Initializing test directory /tmp/test_runner_₿_🏃_20250515_101739/feature_framework_startup_failures_0
     82025-05-15T10:17:40.344000Z TestFramework (INFO): Verifying _verify_startup_failure() functionality (self-check).
     92025-05-15T10:17:40.346000Z TestFramework (ERROR): Assertion failed
    10Traceback (most recent call last):
    11  File "/root/bitcoin/test/functional/test_framework/util.py", line 100, in assert_raises_message
    12    fun(*args, **kwds)
    13    ~~~^^^^^^^^^^^^^^^
    14  File "/root/bitcoin/build/test/functional/feature_framework_startup_failures.py", line 52, in _verify_startup_failure
    15    output = subprocess.run(args, timeout=60 * self.options.timeout_factor,
    16             ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    17                            stdout=subprocess.PIPE, stderr=subprocess.STDOUT).stdout.decode("utf-8")
    18                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    19  File "/usr/lib64/python3.13/subprocess.py", line 556, in run
    20    stdout, stderr = process.communicate(input, timeout=timeout)
    21                     ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^
    22  File "/usr/lib64/python3.13/subprocess.py", line 1222, in communicate
    23    stdout, stderr = self._communicate(input, endtime, timeout)
    24                     ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
    25  File "/usr/lib64/python3.13/subprocess.py", line 2125, in _communicate
    26    ready = selector.select(timeout)
    27  File "/usr/lib64/python3.13/selectors.py", line 398, in select
    28    fd_event_list = self._selector.poll(timeout)
    29OverflowError: timeout is too large
    30
    31During handling of the above exception, another exception occurred:
    32
    33Traceback (most recent call last):
    34  File "/root/bitcoin/test/functional/test_framework/test_framework.py", line 183, in main
    35    self.run_test()
    36    ~~~~~~~~~~~~~^^
    37  File "/root/bitcoin/build/test/functional/feature_framework_startup_failures.py", line 74, in run_test
    38    assert_raises_message(
    39    ~~~~~~~~~~~~~~~~~~~~~^
    40        AssertionError,
    41        ^^^^^^^^^^^^^^^
    42    ...<6 lines>...
    43        "NonExistentError",
    44        ^^^^^^^^^^^^^^^^^^^
    45    )
    46    ^
    47  File "/root/bitcoin/test/functional/test_framework/util.py", line 108, in assert_raises_message
    48    raise AssertionError("Unexpected exception raised: " + type(e).__name__)
    49AssertionError: Unexpected exception raised: OverflowError
    502025-05-15T10:17:40.400000Z TestFramework (INFO): Not stopping nodes as test failed. The dangling processes will be cleaned up later.
    512025-05-15T10:17:40.400000Z TestFramework (WARNING): Not cleaning up dir /tmp/test_runner_₿_🏃_20250515_101739/feature_framework_startup_failures_0
    522025-05-15T10:17:40.400000Z TestFramework (ERROR): Test failed. Test logging available at /tmp/test_runner_₿_🏃_20250515_101739/feature_framework_startup_failures_0/test_framework.log
    532025-05-15T10:17:40.400000Z TestFramework (ERROR): 
    542025-05-15T10:17:40.400000Z TestFramework (ERROR): Hint: Call /root/bitcoin/test/functional/combine_logs.py '/tmp/test_runner_₿_🏃_20250515_101739/feature_framework_startup_failures_0' to consolidate all logs
    552025-05-15T10:17:40.400000Z TestFramework (ERROR): 
    562025-05-15T10:17:40.400000Z TestFramework (ERROR): If this failure happened unexpectedly or intermittently, please file a bug and provide a link or upload of the combined log.
    572025-05-15T10:17:40.401000Z TestFramework (ERROR): https://github.com/bitcoin/bitcoin/issues
    582025-05-15T10:17:40.401000Z TestFramework (ERROR): 
    
  2. fanquake added the label Tests on May 15, 2025
  3. fanquake commented at 10:19 am on May 15, 2025: member
  4. hodlinator commented at 10:44 am on May 15, 2025: contributor
    Thanks for finding & reporting. I’ve been preparing a follow-up PR for the one that introduced the test (#30660) last week, will add a commit to resolve this issue there.
  5. hodlinator referenced this in commit 1235a0df5f on May 15, 2025
  6. hodlinator commented at 12:01 pm on May 15, 2025: contributor
    Proposed fix in #32509.

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2025-05-25 21:12 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me