maflcko
commented at 9:25 AM on November 20, 2026:
member
The test would fail with a large enough timeout factor, because the ipc
times out before the delayed generate() call: template2 would be None
and fail the assert.
Also, the test would sleep more than timeout_factor seconds in the happy
case in all test runs.
Fix both issues by sleeping for a bit longer than a single fee tick.
Functional-test time values are commonly seconds-based, so rename this to clarify it is ms.
fae567777f
test: Speed up interface_ipc_mining.py and fix large timeout-factor bug
The test would fail with a large enough timeout factor, because the ipc
times out before the delayed generate() call: template2 would be None
and fail the assert.
Also, the test would sleep more than timeout_factor seconds in the happy
case in all test runs.
Fix both issues by sleeping for a bit longer than a single fee tick.
Also, use default_ipc_timeout_ms, because a longer timeout is not
needed.
faa89b1ae6
DrahtBot renamed this: test: Speed up interface_ipc_mining.py and fix large timeout-factor bug test: Speed up interface_ipc_mining.py and fix large timeout-factor bug on Nov 20, 2026
DrahtBot added the label Tests on Nov 20, 2026
DrahtBot
commented at 9:25 AM on November 20, 2026:
contributor
<!--e57a25ab6845829454e8d69fc972939a-->
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
If your review is incorrectly listed, please copy-paste <code><!--meta-tag:bot-skip--></code> into the comment that the bot should ignore.
<!--5faf32d7da4f0f540f40219e4f7537a3-->
maflcko added this to the milestone 33.0 on Nov 20, 2026
maflcko
commented at 9:41 AM on November 20, 2026:
member
It should be possible to test this locally via: --timeout-factor=61. On master, the test deterministically fails, on this pull, it passes.
Or with --timeout-factor=40: On master, the test sleeps that long before passing, on this pull, it passes twice as fast.
The failure looks something like:
test 2026-11-18T06:23:07.740448Z TestFramework (ERROR): Unexpected exception:
Traceback (most recent call last):
File "/ci_container_base/test/functional/test_framework/test_framework.py", line 146, in main
self.run_test()
File "/ci_container_base/ci/scratch_ ₿🧪_/build-x86_64-pc-linux-gnu/test/functional/interface_ipc_mining.py", line 893, in run_test
self.run_block_template_test()
File "/ci_container_base/ci/scratch_ ₿🧪_/build-x86_64-pc-linux-gnu/test/functional/interface_ipc_mining.py", line 343, in run_block_template_test
asyncio.run(capnp.run(async_routine()))
File "/usr/lib/python3.12/asyncio/runners.py", line 194, in run
return runner.run(main)
^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/asyncio/runners.py", line 118, in run
return self._loop.run_until_complete(task)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/asyncio/base_events.py", line 687, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "capnp/lib/capnp.pyx", line 2085, in run
File "capnp/lib/capnp.pyx", line 2086, in capnp.lib.capnp.run
File "/ci_container_base/ci/scratch_ ₿🧪_/build-x86_64-pc-linux-gnu/test/functional/interface_ipc_mining.py", line 287, in async_routine
assert template2 is not None
^^^^^^^^^^^^^^^^^^^^^
AssertionError
DrahtBot added the label CI failed on Nov 20, 2026
fanquake
commented at 11:09 AM on November 20, 2026:
member
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-12-01 02:51 UTC
This site is hosted by @0xB10C More mirrored repositories can be found on mirror.b10c.me