test: Allow --usecli in more tests #35363

pull maflcko wants to merge 5 commits into bitcoin:master from maflcko:2605-test-use-cli-more changing 10 files +17 −20
  1. maflcko commented at 3:56 PM on May 22, 2026: member

    Some tests disallow to be run under --usecli. This reduces the coverage and risks that bugs in the bitcoin-cli go unnoticed.

    The commits should be self-explanatory and can be reviewed and tested one-by-one.

  2. test: Set TestNode url field early, so that feature_loadblock.py --usecli works fa4fc8c1d7
  3. DrahtBot added the label Tests on May 22, 2026
  4. DrahtBot commented at 3:56 PM on May 22, 2026: contributor

    <!--e57a25ab6845829454e8d69fc972939a-->

    The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

    <!--006a51241073e994b41acfe9ec718e94-->

    Code Coverage & Benchmarks

    For details see: https://corecheck.dev/bitcoin/bitcoin/pulls/35363.

    <!--021abf342d371248e50ceaed478a90ca-->

    Reviews

    See the guideline for information on the review process.

    Type Reviewers
    ACK willcl-ark

    If your review is incorrectly listed, please copy-paste <code>&lt;!--meta-tag:bot-skip--&gt;</code> into the comment that the bot should ignore.

    <!--5faf32d7da4f0f540f40219e4f7537a3-->

  5. DrahtBot added the label CI failed on May 22, 2026
  6. willcl-ark commented at 9:00 PM on May 24, 2026: member

    Looks like dbcrash needs to handle failure (when using cli) in the form of subprocess.CalledProcessError?

  7. test: Stop node before modifying config to support rpc_users.py --usecli
    Otherwise, bitcoin-cli will read the wrong config from the "future".
    faf993ee44
  8. test: use echojson to allow rpc_named_arguments.py --usecli
    The echo and echojson RPCs are identical in the server. The only
    difference is that echojson is in the client conversion table.
    faf0f848ef
  9. test: Catch CalledProcessError to support --usecli in feature_dbcrash.py fa8d4d5c35
  10. test: Allow --usecli in tests that already support it fa24693819
  11. maflcko force-pushed on May 26, 2026
  12. DrahtBot removed the label CI failed on May 26, 2026
  13. willcl-ark approved
  14. willcl-ark commented at 6:54 AM on May 26, 2026: member

    ACK fa24693819e054c4e795dcaa510f17a757421b9e

    LGTM now. More usecli tests running in the Apline job 👍🏼

  15. fanquake merged this on May 26, 2026
  16. fanquake closed this on May 26, 2026

  17. maflcko deleted the branch on May 26, 2026
  18. maflcko commented at 10:05 AM on May 26, 2026: member

    Looks like dbcrash needs to handle failure (when using cli) in the form of subprocess.CalledProcessError?

    Right, but I forgot to apply it to verify_utxo_hash :sweat_smile:

    Given that it is tedious, due to the non-determinism, to enumerate all possible exception types, errno values, etc on all platforms and all test configs, I went with an alternative fix in https://github.com/bitcoin/bitcoin/pull/35379

  19. maflcko commented at 10:41 AM on May 26, 2026: member

    About the remaining instances of supports_cli=False:

    I think they are all about the bitcoin-cli client conversion table, so I think I'll move the relevant coverage to a dedicated sub-test (maybe in rpc_named_arguments.py), remove the coverage from each of those tests and then remove the unused supports_cli field.

Labels

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

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