Skip to content

ci: run get_previous_releases as part of test cross win job

Cirrus CI / lint failed Apr 10, 2025 in 1m 4s

Task Summary

Instruction lint failed in 00:26

Details

✅ 00:02 clone
✅ 00:01 merge_base
✅ 00:32 unshallow
❌ 00:26 lint

[14:51:19.997] 05d76bc62b test: add windows support to get previous releases script
[14:51:19.997] f10e0d1883 test: remove building from source from get prev releases script
[14:51:19.997] 
[14:51:20.275] Args used        : 215
[14:51:20.275] Args documented  : 227
[14:51:20.275] Args undocumented: 0
[14:51:20.275] set()
[14:51:20.275] Args unknown     : 12
[14:51:20.275] {'-zmqpubhashtx', '-zmqpubsequencehwm', '-zmqpubhashblock', '-zmqpubhashblockhwm', '-zmqpubrawblock', '-zmqpubsequence', '-testdatadir', '-zmqpubrawtxhwm', '-includeconf', '-zmqpubrawblockhwm', '-zmqpubhashtxhwm', '-zmqpubrawtx'}
[14:51:24.414] test/get_previous_releases.py:147:18: F823 Local variable `last_print_time` referenced before assignment
[14:51:24.414]     |
[14:51:24.414] 145 |         filled_length = int(bar_length * percent / 100)
[14:51:24.414] 146 |         bar = '█' * filled_length + '-' * (bar_length - filled_length)
[14:51:24.414] 147 |         if now - last_print_time >= 1 or percent >= 100:
[14:51:24.414]     |                  ^^^^^^^^^^^^^^^ F823
[14:51:24.414] 148 |             sys.stdout.write(f'\rDownloading: [{bar}] {percent:.1f}%')
[14:51:24.414] 149 |             sys.stdout.flush()
[14:51:24.414]     |
[14:51:24.414] 
[14:51:24.414] test/get_previous_releases.py:150:13: F841 Local variable `last_print_time` is assigned to but never used
[14:51:24.414]     |
[14:51:24.414] 148 |             sys.stdout.write(f'\rDownloading: [{bar}] {percent:.1f}%')
[14:51:24.414] 149 |             sys.stdout.flush()
[14:51:24.414] 150 |             last_print_time = now
[14:51:24.414]     |             ^^^^^^^^^^^^^^^ F841
[14:51:24.414] 151 |     urllib.request.urlretrieve(url, archive, reporthook=progress_hook)
[14:51:24.414] 152 |     print('\n', end="")
[14:51:24.414]     |
[14:51:24.414]     = help: Remove assignment to unused variable `last_print_time`
[14:51:24.414] 
[14:51:24.414] Found 2 errors.
[14:51:24.414] No fixes available (1 hidden fix can be enabled with the `--unsafe-fixes` option).
[14:51:24.416] ^^^
[14:51:24.416] `ruff` found errors!
[14:51:24.416] ^---- ⚠️ Failure generated from lint check 'py_lint' (Lint Python code)!
[14:51:24.416] 
[14:51:24.416] 
[14:51:24.680] src/crc32c in HEAD currently refers to tree 454691a9b89ee8b9e1f71a48a7398edba49c3805
[14:51:24.682] src/crc32c in HEAD was last updated in commit 5d45552fd4303f8d668ffbc50cce1053485aeead (tree 454691a9b89ee8b9e1f71a48a7398edba49c3805)
[14:51:24.682] GOOD
[14:51:25.128] src/crypto/ctaes in HEAD currently refers to tree 1b6c31139a71f80245c09597c343936a8e41d021
[14:51:25.131] src/crypto/ctaes in HEAD was last updated in commit 8501bedd7508ac514385806e191aec21ee978891 (tree 1b6c31139a71f80245c09597c343936a8e41d021)
[14:51:25.131] GOOD
[14:51:25.149] src/leveldb in HEAD currently refers to tree 5cc97a9cb91c01ec5fc38e2588ef4b315efdbb48
[14:51:25.151] src/leveldb in HEAD was last updated in commit a130bbd154d535b80fe9f602a13bf2e322817881 (tree 5cc97a9cb91c01ec5fc38e2588ef4b315efdbb48)
[14:51:25.151] GOOD
[14:51:25.207] src/minisketch in HEAD currently refers to tree 87710f57550ac964d39e1245baa179f0800586e6
[14:51:25.209] src/minisketch in HEAD was last updated in commit f5d8b66a8cf23f9ccc51fb9702943c8a5f755f43 (tree 87710f57550ac964d39e1245baa179f0800586e6)
[14:51:25.209] GOOD
[14:51:25.245] src/secp256k1 in HEAD currently refers to tree a6dd5562b35bdbf5f959a18a8af51d526527b9b1
[14:51:25.247] src/secp256k1 in HEAD was last updated in commit 2d46a89386d34d72edf93a24b67e44b82fe6e390 (tree a6dd5562b35bdbf5f959a18a8af51d526527b9b1)
[14:51:25.247] GOOD
[14:51:27.899] test/functional/mining_basic.py:107: inteference ==> interference
[14:51:27.899] ^ Warning: codespell identified likely spelling errors. Any false positives? Add them to the list of ignored words in test/lint/spelling.ignore-words.txt
[14:51:41.678] Success: no issues found in 306 source files
������