failure in wallet_sendall.py –descriptors #31571

issue SwimmingRieux openend this issue on December 27, 2024
  1. SwimmingRieux commented at 11:42 am on December 27, 2024: none

    Is there an existing issue for this?

    • I have searched the existing issues

    Current behaviour

    When I try to run functional tests using build/test/functional/test_runner.py, only 1 test gets failed:

    Screenshot from 2024-12-27 10-45-53

    error : Temporary test directory at /tmp/test_runner_₿_🏃_20241227_142837 usage: create_cache.py [options] create_cache.py: error: unrecognized arguments: --descriptors Traceback (most recent call last): File "/path/to/bitcoin/build/test/functional/test_runner.py", line 954, in <module> main() File "/path/to/bitcoin/build/test/functional/test_runner.py", line 576, in main run_tests( File "/path/to/bitcoin/build/test/functional/test_runner.py", line 629, in run_tests subprocess.check_output([sys.executable, tests_dir + 'create_cache.py'] + flags + ["--tmpdir=%s/cache" % tmpdir]) File "/usr/lib/python3.10/subprocess.py", line 421, in check_output return run(*popenargs, stdout=PIPE, timeout=timeout, check=True, File "/usr/lib/python3.10/subprocess.py", line 526, in run raise CalledProcessError(retcode, process.args, subprocess.CalledProcessError: Command '['/usr/bin/python3', '/path/to/bitcoin/build/test/functional/create_cache.py', '--cachedir=/path/to/bitcoin/build/test/cache', '--descriptors', '--configfile=/path/to/bitcoin/build/test/functional/../config.ini', '--tmpdir=/tmp/test_runner_₿_🏃_20241227_142837/cache']' returned non-zero exit status 2.

    But when i run that very test using build/test/functional/test_runner.py wallet_sendall.py, it gets passed:

    Screenshot from 2024-12-27 10-50-39

    Expected behaviour

    I expect that 1 test to get passed when I run all the tests in parallel.

    Steps to reproduce

    I just built using:

    ` cmake -B build
    -DBUILD_GUI=OFF
    -DWITH_BDB=OFF
    -DBUILD_BENCH=OFF
    -DBUILD_FOR_FUZZING=OFF
    -DBUILD_KERNEL_LIB=OFF
    -DBUILD_SHARED_LIBS=OFF
    -DBUILD_TESTS=OFF
    -DBUILD_TX=OFF
    -DBUILD_UTIL=OFF
    -DBUILD_WALLET_TOOL=OFF

    cmake –build build -j$(nproc) `

    And then ran the functional tests using build/test/functional/test_runner.py

    Relevant log output

    No response

    How did you obtain Bitcoin Core

    Compiled from source

    What version of Bitcoin Core are you using?

    v28.0

    Operating system and version

    Ubuntu 22.04.5 LTS

    Machine specifications

    No response

  2. maflcko added the label Tests on Jan 2, 2025
  3. maflcko commented at 7:18 pm on January 2, 2025: member

    Did you run any other command while running the tests?

    Does it reproduce?

    I can’t reproduce with your steps on Ubuntu 22.04: cmake -B ./bld-cmake -DBUILD_GUI=OFF -DWITH_BDB=OFF -DBUILD_BENCH=OFF -DBUILD_FOR_FUZZING=OFF -DBUILD_KERNEL_LIB=OFF -DBUILD_SHARED_LIBS=OFF -DBUILD_TESTS=OFF -DBUILD_TX=OFF -DBUILD_UTIL=OFF -DBUILD_WALLET_TOOL=OFF && cmake --build ./bld-cmake --parallel $(nproc) && ./bld-cmake/test/functional/test_runner.py

  4. brunoerg commented at 11:30 pm on January 6, 2025: contributor

    I can’t reproduce with the provided steps on Ubuntu 22.04 as well. Just tried it on MacOS 14.3 and worked.

     0...
     1wallet_resendwallettransactions.py --descriptors         | ✓ Passed  | 3 s
     2wallet_send.py --descriptors                             | ✓ Passed  | 16 s
     3wallet_sendall.py --descriptors                          | ✓ Passed  | 2 s
     4wallet_sendmany.py --descriptors                         | ✓ Passed  | 1 s
     5wallet_signer.py --descriptors                           | ✓ Passed  | 3 s
     6wallet_signmessagewithaddress.py                         | ✓ Passed  | 1 s
     7wallet_signrawtransactionwithwallet.py --descriptors     | ✓ Passed  | 2 s
     8wallet_simulaterawtx.py --descriptors                    | ✓ Passed  | 1 s
     9wallet_spend_unconfirmed.py                              | ✓ Passed  | 1 s
    10wallet_startup.py                                        | ✓ Passed  | 2 s
    11wallet_taproot.py --descriptors                          | ✓ Passed  | 14 s
    12wallet_timelock.py                                       | ✓ Passed  | 1 s
    13wallet_transactiontime_rescan.py --descriptors           | ✓ Passed  | 5 s
    14wallet_txn_clone.py                                      | ✓ Passed  | 1 s
    15wallet_txn_clone.py --mineblock                          | ✓ Passed  | 4 s
    16wallet_txn_clone.py --segwit                             | ✓ Passed  | 1 s
    17wallet_txn_doublespend.py --descriptors                  | ✓ Passed  | 1 s
    18wallet_txn_doublespend.py --mineblock                    | ✓ Passed  | 3 s
    19...
    
  5. maflcko commented at 8:17 am on January 7, 2025: member
    Ok, closing for now
  6. maflcko closed this on Jan 7, 2025


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-01-21 06:12 UTC

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