Skip to content

test: feature_init, ensure indexes are synced prior to perturbing files

Cirrus CI / lint failed Jun 30, 2025 in 1m 14s

Task Summary

Instruction lint failed in 00:32

Details

✅ 00:05 clone
✅ 00:01 merge_base
✅ 00:33 unshallow
❌ 00:32 lint

[15:38:10.974] + export COMMIT_RANGE=HEAD~..HEAD
[15:38:10.974] + COMMIT_RANGE=HEAD~..HEAD
[15:38:10.974] ++ git rev-list -1 HEAD
[15:38:10.976] ++ git rev-list -1 --merges HEAD
[15:38:10.979] + '[' 96ec2c2eb300de6e9cc84d469ed3a6d9b6380d9b '!=' 96ec2c2eb300de6e9cc84d469ed3a6d9b6380d9b ']'
[15:38:10.979] + RUST_BACKTRACE=1
[15:38:10.979] + cargo run --manifest-path ./test/lint/test_runner/Cargo.toml
[15:38:11.156]    Compiling test_runner v0.1.0 (/tmp/cirrus-ci-build/test/lint/test_runner)
[15:38:13.375]     Finished dev [unoptimized + debuginfo] target(s) in 2.37s
[15:38:13.375]      Running `test/lint/test_runner/target/debug/test_runner`
[15:38:13.378] Checking commit range (HEAD~..HEAD):
[15:38:13.378] 2a9ae6f162 test: feature_init, ensure indexes are synced prior to perturbing files
[15:38:13.378] dcd3343dda test: feature_init, only init what's needed per perturbation/deletion round
[15:38:13.378] 
[15:38:13.977] Args used        : 206
[15:38:13.977] Args documented  : 218
[15:38:13.977] Args undocumented: 0
[15:38:13.977] set()
[15:38:13.977] Args unknown     : 12
[15:38:13.977] {'-zmqpubsequencehwm', '-zmqpubhashblock', '-zmqpubhashtx', '-zmqpubrawtxhwm', '-testdatadir', '-zmqpubrawblockhwm', '-zmqpubhashtxhwm', '-zmqpubhashblockhwm', '-zmqpubrawblock', '-includeconf', '-zmqpubsequence', '-zmqpubrawtx'}
[15:38:17.680] test/functional/feature_init.py:104:68: B008 Do not perform function call `n.getblockcount` in argument defaults; instead, perform the call within the function, or read the default from a module-level singleton variable
[15:38:17.680]     |
[15:38:17.680] 103 |         # Prior to deleting/perturbing index files, ensure indexes are synchronized (i.e., data exists to modify)
[15:38:17.680] 104 |         check_clean_start(args, lambda n: self.wait_until(lambda h=n.getblockcount(): all(i["synced"] and i["best_block_height"] == h for i in n.getindexinfo().values())))
[15:38:17.680]     |                                                                    ^^^^^^^^^^^^^^^^^ B008
[15:38:17.680] 105 |         self.stop_node(0)
[15:38:17.680]     |
[15:38:17.680] 
[15:38:17.680] Found 1 error.
[15:38:17.681] ^^^
[15:38:17.681] `ruff` found errors!
[15:38:17.681] ^---- ⚠️ Failure generated from lint check 'py_lint' (Lint Python code)!
[15:38:17.681] 
[15:38:17.681] 
[15:38:18.015] src/crc32c in HEAD currently refers to tree 454691a9b89ee8b9e1f71a48a7398edba49c3805
[15:38:18.018] src/crc32c in HEAD was last updated in commit 5d45552fd4303f8d668ffbc50cce1053485aeead (tree 454691a9b89ee8b9e1f71a48a7398edba49c3805)
[15:38:18.018] GOOD
[15:38:18.608] src/crypto/ctaes in HEAD currently refers to tree 1b6c31139a71f80245c09597c343936a8e41d021
[15:38:18.612] src/crypto/ctaes in HEAD was last updated in commit 8501bedd7508ac514385806e191aec21ee978891 (tree 1b6c31139a71f80245c09597c343936a8e41d021)
[15:38:18.612] GOOD
[15:38:18.661] src/ipc/libmultiprocess in HEAD currently refers to tree 918b3c8915a1163c2f7aba7df2ddddd8d295f037
[15:38:18.665] src/ipc/libmultiprocess in HEAD was last updated in commit 154af1eea1170f5626aa1c5f19cc77d1434bcc9d (tree 918b3c8915a1163c2f7aba7df2ddddd8d295f037)
[15:38:18.665] GOOD
[15:38:18.699] src/leveldb in HEAD currently refers to tree d14157fb2064132c65fef31feb2aba21d0aff025
[15:38:18.708] src/leveldb in HEAD was last updated in commit 240a4fb95d5b843826081807019cd405aa654e2b (tree d14157fb2064132c65fef31feb2aba21d0aff025)
[15:38:18.708] GOOD
[15:38:18.773] src/minisketch in HEAD currently refers to tree a79ef74c72212ddba7435e63769685157782ed6a
[15:38:18.775] src/minisketch in HEAD was last updated in commit bf25a0918f94524bda8e8fb7505d68a772e88b45 (tree a79ef74c72212ddba7435e63769685157782ed6a)
[15:38:18.776] GOOD
[15:38:18.863] src/secp256k1 in HEAD currently refers to tree b20631a75e1e5b5b5cd75b668f01d16508173c81
[15:38:18.866] src/secp256k1 in HEAD was last updated in commit c31fcaaad38b68fa170cf9fd900f2237c24016e3 (tree b20631a75e1e5b5b5cd75b668f01d16508173c81)
[15:38:18.867] GOOD
[15:38:28.160] doc/tor.md:62: occurences ==> occurrences
[15:38:28.160] ^ Warning: codespell identified likely spelling errors. Any false positives? Add them to the list of ignored words in test/lint/spelling.ignore-words.txt
[15:38:38.530] Success: no issues found in 297 source files
����