Skip to content

test: add coverage for migrating watch-only script

Cirrus CI / lint failed Nov 26, 2024 in 1m 53s

Task Summary

Instruction lint failed in 00:36

Details

✅ 00:04 clone
✅ 00:29 merge_base
✅ 00:01 test_runner
✅ 00:07 python
✅ 00:31 unshallow
❌ 00:36 lint

[16:42:36.322] ++ git rev-list -1 HEAD
[16:42:36.325] ++ git rev-list -1 --merges HEAD
[16:42:36.327] + '[' 128118aa78a72877bbb2dcc8a0392236cd7e974e '!=' 128118aa78a72877bbb2dcc8a0392236cd7e974e ']'
[16:42:36.327] + export COMMIT_RANGE
[16:42:36.327] + echo
[16:42:36.327] 
[16:42:36.327] + git log --no-merges --oneline HEAD~..HEAD
[16:42:36.329] 982ce98a42 test: add coverage for migrating watch-only script
[16:42:36.329] 4a18a537ad wallet: fix crash during watch-only wallet migration
[16:42:36.330] + echo
[16:42:36.330] 
[16:42:36.330] + test/lint/commit-script-check.sh HEAD~..HEAD
[16:42:36.372] + RUST_BACKTRACE=1
[16:42:36.372] + /lint_test_runner/test_runner
[16:42:36.666] Args used        : 214
[16:42:36.666] Args documented  : 226
[16:42:36.666] Args undocumented: 0
[16:42:36.666] set()
[16:42:36.666] Args unknown     : 12
[16:42:36.666] {'-zmqpubhashblockhwm', '-zmqpubrawblock', '-zmqpubsequence', '-zmqpubrawtxhwm', '-zmqpubrawtx', '-zmqpubhashtx', '-zmqpubhashblock', '-testdatadir', '-zmqpubrawblockhwm', '-zmqpubhashtxhwm', '-includeconf', '-zmqpubsequencehwm'}
[16:42:40.656] test/functional/wallet_migration.py:20:15: F401 [*] `test_framework.key.generate_privkey` imported but unused
[16:42:40.656]    |
[16:42:40.656] 18 | from test_framework.descriptors import descsum_create
[16:42:40.656] 19 | from test_framework.key import (
[16:42:40.656] 20 |     ECPubKey, generate_privkey, ECKey
[16:42:40.656]    |               ^^^^^^^^^^^^^^^^ F401
[16:42:40.656] 21 | )
[16:42:40.656] 22 | from test_framework.test_framework import BitcoinTestFramework
[16:42:40.656]    |
[16:42:40.656]    = help: Remove unused import: `test_framework.key.generate_privkey`
[16:42:40.656] 
[16:42:40.656] Found 1 error.
[16:42:40.656] [*] 1 fixable with the `--fix` option.
[16:42:40.658] `ruff` found errors!
[16:42:40.658] ^---- ⚠️ Failure generated from lint check 'py_lint'!
[16:42:40.658] Lint Python code
[16:42:40.856] src/crc32c in HEAD currently refers to tree 454691a9b89ee8b9e1f71a48a7398edba49c3805
[16:42:40.859] src/crc32c in HEAD was last updated in commit 5d45552fd4303f8d668ffbc50cce1053485aeead (tree 454691a9b89ee8b9e1f71a48a7398edba49c3805)
[16:42:40.859] GOOD
[16:42:41.323] src/crypto/ctaes in HEAD currently refers to tree 1b6c31139a71f80245c09597c343936a8e41d021
[16:42:41.326] src/crypto/ctaes in HEAD was last updated in commit 8501bedd7508ac514385806e191aec21ee978891 (tree 1b6c31139a71f80245c09597c343936a8e41d021)
[16:42:41.326] GOOD
[16:42:41.448] src/leveldb in HEAD currently refers to tree cb176f0f0a9a93bcef89bdd70424cae01ad21629
[16:42:41.451] src/leveldb in HEAD was last updated in commit a37778d4d32b4ddeff96f68a130dc8da3a84b278 (tree cb176f0f0a9a93bcef89bdd70424cae01ad21629)
[16:42:41.451] GOOD
[16:42:41.506] src/minisketch in HEAD currently refers to tree 85cb93120ae68ef1f6fa597da30e18298848e0e9
[16:42:41.509] src/minisketch in HEAD was last updated in commit cb59af38e72ab189b052ec84e2d1027473235ba4 (tree 85cb93120ae68ef1f6fa597da30e18298848e0e9)
[16:42:41.509] GOOD
[16:42:41.534] src/secp256k1 in HEAD currently refers to tree a6dd5562b35bdbf5f959a18a8af51d526527b9b1
[16:42:41.539] src/secp256k1 in HEAD was last updated in commit 2d46a89386d34d72edf93a24b67e44b82fe6e390 (tree a6dd5562b35bdbf5f959a18a8af51d526527b9b1)
[16:42:41.539] GOOD
[16:42:45.817] src/txmempool.cpp:445: tranaction ==> transaction
[16:42:45.817] src/txmempool.h:813: transacion ==> transaction
[16:42:45.817] ^ Warning: codespell identified likely spelling errors. Any false positives? Add them to the list of ignored words in test/lint/spelling.ignore-words.txt
[16:43:00.310] Success: no issues found in 302 source files
����