Skip to content

ci: add functional test for IPC interface

Cirrus CI / lint failed Aug 15, 2025 in 1m 5s

Task Summary

Instruction lint failed in 00:26

Details

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

[20:11:41.767]    |
[20:11:41.767] 57 |     def capnp_modules(self):
[20:11:41.767] 58 |         src_dir = Path(self.config['environment']['SRCDIR']) / "src"
[20:11:41.767] 59 |         capnp_dir = src_dir / "ipc" / "capnp"
[20:11:41.767]    |         ^^^^^^^^^ F841
[20:11:41.767] 60 |         mp_dir = src_dir / "ipc" / "libmultiprocess" / "include"
[20:11:41.767] 61 |         imports = ["/usr/include", str(src_dir), str(mp_dir)]
[20:11:41.767]    |
[20:11:41.767]    = help: Remove assignment to unused variable `capnp_dir`
[20:11:41.767] 
[20:11:41.767] test/functional/interface_ipc.py:82:9: F841 Local variable `modules` is assigned to but never used
[20:11:41.767]    |
[20:11:41.767] 81 |     def run_echo_test(self):
[20:11:41.767] 82 |         modules = self.capnp_modules()
[20:11:41.767]    |         ^^^^^^^ F841
[20:11:41.767] 83 |         async def async_routine():
[20:11:41.767] 84 |             init, ctx = await self.make_capnp_init_ctx()
[20:11:41.767]    |
[20:11:41.767]    = help: Remove assignment to unused variable `modules`
[20:11:41.767] 
[20:11:41.767] Found 18 errors.
[20:11:41.767] [*] 12 fixable with the `--fix` option (2 hidden fixes can be enabled with the `--unsafe-fixes` option).
[20:11:41.768] ^^^
[20:11:41.768] `ruff` found errors!
[20:11:41.768] ^---- ⚠️ Failure generated from lint check 'py_lint' (Lint Python code)!
[20:11:41.768] 
[20:11:41.768] 
[20:11:42.008] src/crc32c in HEAD currently refers to tree 28f07d0bd5d6fcd3273d9651ff3c960ad344c202
[20:11:42.011] src/crc32c in HEAD was last updated in commit 9a5d29711afcdc4609da4786673758e641958bb4 (tree 28f07d0bd5d6fcd3273d9651ff3c960ad344c202)
[20:11:42.011] GOOD
[20:11:42.465] src/crypto/ctaes in HEAD currently refers to tree 1b6c31139a71f80245c09597c343936a8e41d021
[20:11:42.467] src/crypto/ctaes in HEAD was last updated in commit 8501bedd7508ac514385806e191aec21ee978891 (tree 1b6c31139a71f80245c09597c343936a8e41d021)
[20:11:42.467] GOOD
[20:11:42.494] src/ipc/libmultiprocess in HEAD currently refers to tree 918b3c8915a1163c2f7aba7df2ddddd8d295f037
[20:11:42.496] src/ipc/libmultiprocess in HEAD was last updated in commit 154af1eea1170f5626aa1c5f19cc77d1434bcc9d (tree 918b3c8915a1163c2f7aba7df2ddddd8d295f037)
[20:11:42.496] GOOD
[20:11:42.515] src/leveldb in HEAD currently refers to tree d14157fb2064132c65fef31feb2aba21d0aff025
[20:11:42.517] src/leveldb in HEAD was last updated in commit 240a4fb95d5b843826081807019cd405aa654e2b (tree d14157fb2064132c65fef31feb2aba21d0aff025)
[20:11:42.517] GOOD
[20:11:42.555] src/minisketch in HEAD currently refers to tree a79ef74c72212ddba7435e63769685157782ed6a
[20:11:42.557] src/minisketch in HEAD was last updated in commit bf25a0918f94524bda8e8fb7505d68a772e88b45 (tree a79ef74c72212ddba7435e63769685157782ed6a)
[20:11:42.557] GOOD
[20:11:42.577] src/secp256k1 in HEAD currently refers to tree 3f467adddb01e5dcfe47d10314822f004f471647
[20:11:42.579] src/secp256k1 in HEAD was last updated in commit 5600e6fc4bb4f8e82adc58fc676ec44730e3cec4 (tree 3f467adddb01e5dcfe47d10314822f004f471647)
[20:11:42.579] GOOD
[20:11:47.180] test/functional/test_framework/test_framework.py:965: error: Cannot find implementation or library stub for module named "capnp"  [import]
[20:11:48.441] test/functional/interface_ipc.py:33: error: Cannot find implementation or library stub for module named "capnp"  [import]
[20:11:48.441] test/functional/interface_ipc.py:33: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
[20:11:48.815] Found 2 errors in 2 files (checked 301 source files)
[20:11:48.843] ^---- ⚠️ Failure generated from lint-python.py
[20:12:02.983] ^^^
[20:12:02.983] 
[20:12:02.983] ^---- ⚠️ Failure generated from lint check 'all_python_linters' (Run all linters of the form: test/lint/lint-*.py)!
[20:12:02.983] 
[20:12:02.983] 
������������