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

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

    master @ c779ee3a4044df3a263394bbb8b104aeeaa7c727

    ./build/test/functional/test_runner.py feature_framework_startup_failures.py --timeout-factor=0
    Temporary test directory at /tmp/test_runner_₿_🏃_20250515_101739
    Remaining jobs: [feature_framework_startup_failures.py]
    1/1 - feature_framework_startup_failures.py failed, Duration: 1 s
    
    stdout:
    2025-05-15T10:17:39.659000Z TestFramework (INFO): PRNG seed is: 8331063254222734517
    2025-05-15T10:17:39.660000Z TestFramework (INFO): Initializing test directory /tmp/test_runner_₿_🏃_20250515_101739/feature_framework_startup_failures_0
    2025-05-15T10:17:40.344000Z TestFramework (INFO): Verifying _verify_startup_failure() functionality (self-check).
    2025-05-15T10:17:40.346000Z TestFramework (ERROR): Assertion failed
    Traceback (most recent call last):
      File "/root/bitcoin/test/functional/test_framework/util.py", line 100, in assert_raises_message
        fun(*args, **kwds)
        ~~~^^^^^^^^^^^^^^^
      File "/root/bitcoin/build/test/functional/feature_framework_startup_failures.py", line 52, in _verify_startup_failure
        output = subprocess.run(args, timeout=60 * self.options.timeout_factor,
                 ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                                stdout=subprocess.PIPE, stderr=subprocess.STDOUT).stdout.decode("utf-8")
                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/usr/lib64/python3.13/subprocess.py", line 556, in run
        stdout, stderr = process.communicate(input, timeout=timeout)
                         ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^
      File "/usr/lib64/python3.13/subprocess.py", line 1222, in communicate
        stdout, stderr = self._communicate(input, endtime, timeout)
                         ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/usr/lib64/python3.13/subprocess.py", line 2125, in _communicate
        ready = selector.select(timeout)
      File "/usr/lib64/python3.13/selectors.py", line 398, in select
        fd_event_list = self._selector.poll(timeout)
    OverflowError: timeout is too large
    
    During handling of the above exception, another exception occurred:
    
    Traceback (most recent call last):
      File "/root/bitcoin/test/functional/test_framework/test_framework.py", line 183, in main
        self.run_test()
        ~~~~~~~~~~~~~^^
      File "/root/bitcoin/build/test/functional/feature_framework_startup_failures.py", line 74, in run_test
        assert_raises_message(
        ~~~~~~~~~~~~~~~~~~~~~^
            AssertionError,
            ^^^^^^^^^^^^^^^
        ...<6 lines>...
            "NonExistentError",
            ^^^^^^^^^^^^^^^^^^^
        )
        ^
      File "/root/bitcoin/test/functional/test_framework/util.py", line 108, in assert_raises_message
        raise AssertionError("Unexpected exception raised: " + type(e).__name__)
    AssertionError: Unexpected exception raised: OverflowError
    2025-05-15T10:17:40.400000Z TestFramework (INFO): Not stopping nodes as test failed. The dangling processes will be cleaned up later.
    2025-05-15T10:17:40.400000Z TestFramework (WARNING): Not cleaning up dir /tmp/test_runner_₿_🏃_20250515_101739/feature_framework_startup_failures_0
    2025-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
    2025-05-15T10:17:40.400000Z TestFramework (ERROR): 
    2025-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
    2025-05-15T10:17:40.400000Z TestFramework (ERROR): 
    2025-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.
    2025-05-15T10:17:40.401000Z TestFramework (ERROR): https://github.com/bitcoin/bitcoin/issues
    2025-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.

  7. hodlinator referenced this in commit bd8ebbc4ab on May 16, 2025
  8. achow101 closed this on May 27, 2025

  9. achow101 referenced this in commit ce46000712 on May 27, 2025
  10. saikiran57 referenced this in commit 01fc228eae on Jul 28, 2025
  11. bitcoin locked this on Jul 30, 2026

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: 2026-08-11 10:51 UTC

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