test: Remove vulture from ci, Remove some –min-confidence=60 unused code #34816

pull maflcko wants to merge 6 commits into bitcoin:master from maflcko:2603-ci-lint-less changing 8 files +1 −127
  1. maflcko commented at 12:34 pm on March 12, 2026: member

    Currently, vulture is run with --min-confidence=100, which reduces its checks to dead code after control statements, which is nice, but not really a common nor severe issue. See the discussion in #34810 (comment) and commit 5c005363a880c136cc44ff2456a402e398fcbf44, which had to remove dead code manually.

    Reducing the confidence has shown to be too brittle/tedious in the past, so remove the tool for now from CI.

    Of course, removing this from CI does not prevent anyone from running it locally and removing dead code.

    Fixes https://github.com/bitcoin/bitcoin/issues/34810

  2. ci: Remove vulture fab5072ce1
  3. DrahtBot added the label Tests on Mar 12, 2026
  4. DrahtBot commented at 12:35 pm on March 12, 2026: contributor

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

    Reviews

    See the guideline for information on the review process.

    Type Reviewers
    Stale ACK l0rinc

    If your review is incorrectly listed, please copy-paste <!–meta-tag:bot-skip–> into the comment that the bot should ignore.

  5. l0rinc commented at 12:40 pm on March 12, 2026: contributor
    code review ACK fab5072ce1396484b9caa7320da4dc3c98070adc
  6. maflcko renamed this:
    ci: Remove vulture
    test: Remove vulture from ci, Remove some --min-confidence=60 unused code
    on Mar 12, 2026
  7. maflcko commented at 2:09 pm on March 12, 2026: member

    Of course, removing this from CI does not prevent anyone from running it locally and removing dead code.

    Went ahead and did this myself. I ran vulture $( git ls-files -- '*.py' ) and then manually went through the ~200 lines and removed the stuff that was really unused.

  8. DrahtBot added the label CI failed on Mar 12, 2026
  9. willcl-ark commented at 2:45 pm on March 12, 2026: member

    I see this locally?

     0F401 [*] `test_framework.script_util.key_to_p2pk_script` imported but unused
     1  --> test/functional/feature_segwit.py:32:5
     2   |
     330 | )
     431 | from test_framework.script_util import (
     532 |     key_to_p2pk_script,
     6   |     ^^^^^^^^^^^^^^^^^^
     733 |     key_to_p2wpkh_script,
     834 |     keys_to_multisig_script,
     9   |
    10help: Remove unused import
    11
    12F401 [*] `test_framework.script_util.key_to_p2wpkh_script` imported but unused
    13  --> test/functional/feature_segwit.py:33:5
    14   |
    1531 | from test_framework.script_util import (
    1632 |     key_to_p2pk_script,
    1733 |     key_to_p2wpkh_script,
    18   |     ^^^^^^^^^^^^^^^^^^^^
    1934 |     keys_to_multisig_script,
    2035 |     script_to_p2sh_script,
    21   |
    22help: Remove unused import
    23
    24F401 [*] `test_framework.script_util.script_to_p2sh_script` imported but unused
    25  --> test/functional/feature_segwit.py:35:5
    26   |
    2733 |     key_to_p2wpkh_script,
    2834 |     keys_to_multisig_script,
    2935 |     script_to_p2sh_script,
    30   |     ^^^^^^^^^^^^^^^^^^^^^
    3136 |     script_to_p2wsh_script,
    3237 | )
    33   |
    34help: Remove unused import
    35
    36F401 [*] `test_framework.script_util.script_to_p2wsh_script` imported but unused
    37  --> test/functional/feature_segwit.py:36:5
    38   |
    3934 |     keys_to_multisig_script,
    4035 |     script_to_p2sh_script,
    4136 |     script_to_p2wsh_script,
    42   |     ^^^^^^^^^^^^^^^^^^^^^^
    4337 | )
    4438 | from test_framework.test_framework import BitcoinTestFramework
    45   |
    46help: Remove unused import
    47
    48F401 [*] `enum` imported but unused
    49  --> test/functional/test_framework/address.py:11:8
    50   |
    51 9 | - bech32m segwit v1 P2TR addresses."""
    5210 |
    5311 | import enum
    54   |        ^^^^
    5512 | import unittest
    56   |
    57help: Remove unused import: `enum`
    58
    59Found 5 errors.
    60[*] 5 fixable with the `--fix` option.
    61^^^
    62`ruff` found errors!
    63^---- ⚠️ Failure generated from lint check 'py_lint' (Lint Python code)!
    64
    65
    66src/crc32c in HEAD currently refers to tree 28f07d0bd5d6fcd3273d9651ff3c960ad344c202
    67src/crc32c in HEAD was last updated in commit 9a5d29711afcdc4609da4786673758e641958bb4 (tree 28f07d0bd5d6fcd3273d9651ff3c960ad344c202)
    68GOOD
    69src/crypto/ctaes in HEAD currently refers to tree 1b6c31139a71f80245c09597c343936a8e41d021
    70src/crypto/ctaes in HEAD was last updated in commit 8501bedd7508ac514385806e191aec21ee978891 (tree 1b6c31139a71f80245c09597c343936a8e41d021)
    71GOOD
    72src/ipc/libmultiprocess in HEAD currently refers to tree f88433d756e02de05276361a5c7e41c71dd58231
    73src/ipc/libmultiprocess in HEAD was last updated in commit b7ca3bf061b51108d155283c1ad503c0af7eab0d (tree f88433d756e02de05276361a5c7e41c71dd58231)
    74GOOD
    75src/leveldb in HEAD currently refers to tree fe97d24767d36e3d80902af8da83a46f68c34b96
    76src/leveldb in HEAD was last updated in commit 2f2952c5f2e367ccac34025a159c9fbaffd7f172 (tree fe97d24767d36e3d80902af8da83a46f68c34b96)
    77GOOD
    78src/minisketch in HEAD currently refers to tree f1581edd423bcf531d0d956149eb8abe45f75570
    79src/minisketch in HEAD was last updated in commit 4543a3bde26ff2440c16b06cc1dcf1994dc85720 (tree f1581edd423bcf531d0d956149eb8abe45f75570)
    80GOOD
    81src/secp256k1 in HEAD currently refers to tree 15001ae05f06101b13596633fad8c75dcec693b0
    82src/secp256k1 in HEAD was last updated in commit 9d4c9b00356e02de223033adb7680b47b743caab (tree 15001ae05f06101b13596633fad8c75dcec693b0)
    83GOOD
    84test/functional/feature_segwit.py:70: error: Need type annotation for "txs_mined" (hint: "txs_mined: dict[<type>, <type>] = ...")  [var-annotated]
    85Found 1 error in 1 file (checked 311 source files)
    86^---- ⚠️ Failure generated from lint-python.py
    87^^^
    88
    89^---- ⚠️ Failure generated from lint check 'all_python_linters' (Run all linters of the form: test/lint/lint-*.py)!
    
  10. test: Remove unused AddressType
    unused after commit c847dee1488a294c9a9632a00ba1134b21e41947
    fa803710e2
  11. test: Remove unused self.p2p_conn_index = 1
    Was never used
    fa388a3585
  12. test: Remove unused wait_for_addr, firstAddrnServices, on_addr
    Unused after commit be25ac3092b7755e26e1ec6c33a27cd0e3dd9eac
    fa7bac94d8
  13. test: Remove unused CUSTOM_._COUNT
    Unused after commit cf3ab8e1d0a2f2bdf72e61e2c2dcb35987e5b9bd
    fa6b05c96f
  14. test: Remove unused feature_segwit.py functions
    Unused after commit c847dee1488a294c9a9632a00ba1134b21e41947
    fa90b21430
  15. maflcko force-pushed on Mar 12, 2026
  16. maflcko commented at 3:06 pm on March 12, 2026: member

    I see this locally?

    Thx, removed all those lines as well. Let’s see if lint CI passes … edit: passed

  17. DrahtBot removed the label CI failed on Mar 12, 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-03-13 09:13 UTC

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