Functional tests: `feature_bind_port_discover.py` is failing #31336

issue andremralves opened this issue on November 20, 2024
  1. andremralves commented at 5:21 PM on November 20, 2024: none

    Is there an existing issue for this?

    • I have searched the existing issues

    Current behaviour

    The test is failing due to Discover() not being able to finding the local addresses "1.1.1.1" and "2.2.2.2".

    Expected behaviour

    The test should pass. Addr1 and Addr2 should be found.

    Steps to reproduce

    Run the following commands:

    sudo ifconfig lo:0 1.1.1.1/32 up && sudo ifconfig lo:1 2.2.2.2/32 up
    ./build/test/functional/test_runner.py --ihave1111and2222 feature_bind_port_discover.py
    

    Relevant log output

    andre@acer:~/repos/bitcoin$ build/test/functional/test_runner.py --ihave1111and2222 feature_bind_port_discover.py
    Temporary test directory at /tmp/test_runner_₿_🏃_20241120_141406
    Remaining jobs: [feature_bind_port_discover.py]
    1/1 - feature_bind_port_discover.py failed, Duration: 1 s
    
    stdout:
    2024-11-20T17:14:06.192000Z TestFramework (INFO): PRNG seed is: 4142310399432710311
    2024-11-20T17:14:06.193000Z TestFramework (INFO): Initializing test directory /tmp/test_runner_₿_🏃_20241120_141406/feature_bind_port_discover_0
    2024-11-20T17:14:06.511000Z TestFramework (INFO): Test that if -bind= is not passed then all addresses are added to localaddresses
    2024-11-20T17:14:06.512000Z TestFramework (ERROR): Assertion failed
    Traceback (most recent call last):
      File "/home/andre/repos/bitcoin/test/functional/test_framework/test_framework.py", line 132, in main
        self.run_test()
      File "/home/andre/repos/bitcoin/build/test/functional/feature_bind_port_discover.py", line 63, in run_test
        assert found_addr1
    AssertionError
    2024-11-20T17:14:06.563000Z TestFramework (INFO): Stopping nodes
    2024-11-20T17:14:06.716000Z TestFramework (WARNING): Not cleaning up dir /tmp/test_runner_₿_🏃_20241120_141406/feature_bind_port_discover_0
    2024-11-20T17:14:06.716000Z TestFramework (ERROR): Test failed. Test logging available at /tmp/test_runner_₿_🏃_20241120_141406/feature_bind_port_discover_0/test_framework.log
    2024-11-20T17:14:06.716000Z TestFramework (ERROR): 
    2024-11-20T17:14:06.716000Z TestFramework (ERROR): Hint: Call /home/andre/repos/bitcoin/test/functional/combine_logs.py '/tmp/test_runner_₿_🏃_20241120_141406/feature_bind_port_discover_0' to consolidate all logs
    2024-11-20T17:14:06.716000Z TestFramework (ERROR): 
    2024-11-20T17:14:06.716000Z TestFramework (ERROR): If this failure happened unexpectedly or intermittently, please file a bug and provide a link or upload of the combined log.
    2024-11-20T17:14:06.716000Z TestFramework (ERROR): https://github.com/bitcoin/bitcoin/issues
    2024-11-20T17:14:06.716000Z TestFramework (ERROR): 
    
    
    stderr:
    
    
    
    TEST                          | STATUS    | DURATION
    
    feature_bind_port_discover.py | ✖ Failed  | 1 s
    
    ALL                           | ✖ Failed  | 1 s (accumulated) 
    Runtime: 1 s
    

    How did you obtain Bitcoin Core

    Compiled from source

    What version of Bitcoin Core are you using?

    Bitcoin Core daemon version v28.99.0-22ef95dbe3e4

    Operating system and version

    Ubuntu 22.04

    Machine specifications

    No response

  2. andremralves commented at 10:38 PM on November 20, 2024: none
  3. maflcko added the label Tests on Nov 21, 2024
  4. maflcko added the label CI failed on Nov 21, 2024

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-05-02 15:13 UTC

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