ci, error: p2p_timeouts.py failed #23800

issue w0xlt opened this issue on December 16, 2021
  1. w0xlt commented at 11:45 PM on December 16, 2021: contributor

    Cirrus CI threw the following error in https://github.com/bitcoin-core/gui/pull/471 . The error is not reproducible on my machine, where the same test (p2p_timeouts.py ) runs successfully.

    This test is very fast, but it took 40 seconds in the CI execution.

    Link: https://cirrus-ci.com/task/5600553806856192?logs=ci#L7239

    18/232 - p2p_timeouts.py failed, Duration: 41 s
    stdout:
    2021-12-16T22:09:14.936000Z TestFramework (INFO): Initializing test directory /tmp/cirrus-build-177014723/ci/scratch/test_runner/test_runner_₿_🏃_20211216_220356/p2p_timeouts_212
    2021-12-16T22:09:55.666000Z TestFramework.utils (ERROR): wait_until() failed. Predicate: ''''
            def test_function():
                if check_connected:
                    assert self.is_connected
                return test_function_in()
    '''
    2021-12-16T22:09:55.666000Z TestFramework (ERROR): Assertion failed
    Traceback (most recent call last):
      File "/tmp/cirrus-build-177014723/ci/scratch/build/bitcoin-x86_64-pc-linux-gnu/test/functional/test_framework/test_framework.py", line 132, in main
        self.run_test()
      File "/tmp/cirrus-build-177014723/ci/scratch/build/bitcoin-x86_64-pc-linux-gnu/test/functional/p2p_timeouts.py", line 92, in run_test
        no_send_node.wait_for_disconnect(timeout=1)
      File "/tmp/cirrus-build-177014723/ci/scratch/build/bitcoin-x86_64-pc-linux-gnu/test/functional/test_framework/p2p.py", line 461, in wait_for_disconnect
        self.wait_until(test_function, timeout=timeout, check_connected=False)
      File "/tmp/cirrus-build-177014723/ci/scratch/build/bitcoin-x86_64-pc-linux-gnu/test/functional/test_framework/p2p.py", line 453, in wait_until
        wait_until_helper(test_function, timeout=timeout, lock=p2p_lock, timeout_factor=self.timeout_factor)
      File "/tmp/cirrus-build-177014723/ci/scratch/build/bitcoin-x86_64-pc-linux-gnu/test/functional/test_framework/util.py", line 269, in wait_until_helper
        raise AssertionError("Predicate {} not true after {} seconds".format(predicate_source, timeout))
    AssertionError: Predicate ''''
            def test_function():
                if check_connected:
                    assert self.is_connected
                return test_function_in()
    ''' not true after 40.0 seconds
    
  2. w0xlt added the label Bug on Dec 16, 2021
  3. w0xlt commented at 4:07 AM on December 18, 2021: contributor

    The same has error occurred in https://github.com/bitcoin/bitcoin/pull/23807/

    Link: https://cirrus-ci.com/task/6110562114338816?logs=ci#L7470

    2021-12-17T23:39:26.601000Z TestFramework (INFO): Initializing test directory /tmp/cirrus-build/ci/scratch/test_runner/test_runner_₿_🏃_20211217_233559/p2p_timeouts_212
    2021-12-17T23:40:07.060000Z TestFramework.utils (ERROR): wait_until() failed. Predicate: ''''
            def test_function():
                if check_connected:
                    assert self.is_connected
                return test_function_in()
    '''
    2021-12-17T23:40:07.060000Z TestFramework (ERROR): Assertion failed
    Traceback (most recent call last):
      File "/tmp/cirrus-build/ci/scratch/build/bitcoin-x86_64-pc-linux-gnu/test/functional/test_framework/test_framework.py", line 132, in main
        self.run_test()
      File "/tmp/cirrus-build/ci/scratch/build/bitcoin-x86_64-pc-linux-gnu/test/functional/p2p_timeouts.py", line 92, in run_test
        no_send_node.wait_for_disconnect(timeout=1)
      File "/tmp/cirrus-build/ci/scratch/build/bitcoin-x86_64-pc-linux-gnu/test/functional/test_framework/p2p.py", line 461, in wait_for_disconnect
        self.wait_until(test_function, timeout=timeout, check_connected=False)
      File "/tmp/cirrus-build/ci/scratch/build/bitcoin-x86_64-pc-linux-gnu/test/functional/test_framework/p2p.py", line 453, in wait_until
        wait_until_helper(test_function, timeout=timeout, lock=p2p_lock, timeout_factor=self.timeout_factor)
      File "/tmp/cirrus-build/ci/scratch/build/bitcoin-x86_64-pc-linux-gnu/test/functional/test_framework/util.py", line 269, in wait_until_helper
        raise AssertionError("Predicate {} not true after {} seconds".format(predicate_source, timeout))
    AssertionError: Predicate ''''
            def test_function():
                if check_connected:
                    assert self.is_connected
                return test_function_in()
    ''' not true after 40.0 seconds
    
  4. mzumsande referenced this in commit 1f3140ffa9 on Dec 18, 2021
  5. mzumsande commented at 10:20 AM on December 18, 2021: member

    See #23812 for a fix.

  6. mzumsande referenced this in commit 0a1b6fa5a1 on Dec 18, 2021
  7. MarcoFalke closed this on Dec 20, 2021

  8. MarcoFalke referenced this in commit 1c41fb9181 on Dec 20, 2021
  9. sidhujag referenced this in commit 3296e07e35 on Dec 20, 2021
  10. mzumsande referenced this in commit 1017b2dab5 on Jan 17, 2022
  11. rebroad referenced this in commit 482e9b6731 on Feb 3, 2022
  12. DrahtBot locked this on Dec 20, 2022

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-04-17 06:14 UTC

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