mirror of
https://github.com/bitcoin/bitcoin
synced 2026-12-04 12:20:38 +00:00
test: Speed up interface_ipc_mining.py and fix large timeout-factor bug #36924
No reviewers
Labels
No labels
Android
Backport
Block storage
Brainstorming
Bug
Build system
CI failed
Consensus
Data corruption
Descriptors
Docs
DrahtBot Guix build requested
Feature
Fuzzing
GUI
Good First Review
IPC
Insufficient Review
Kernel
Linux/Unix
Mempool
Mining
Needs Backport (31.x)
Needs Backport (32.x)
Needs Benchmark
Needs Conceptual Review
Needs backport (30.x)
Needs rebase
Needs release note
Net
P2P
PSBT
Privacy
Private Broadcast
Questions and Help
RPC/REST/ZMQ
Refactoring
Resource usage
Review club
Scripts and tools
Settings
TX fees and policy
Tests
Tracking Issue
UTXO Db and Indexes
Up for grabs
Upstream
Utils/log/libs
Validation
Waiting for author
Wallet
Windows
good first issue
interfaces
macOS
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
bitcoin/bitcoin!36924
Loading…
Reference in a new issue
No description provided.
Delete branch "2611-fix-ipc-mining-test-issues"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The test would fail with a large enough timeout factor, because the ipc
times out before the delayed
generate()call:template2would beNoneand 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.
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
External sites
Reviews
See the guideline and AI policy for information on the review process.
If your review is incorrectly listed, please copy-paste
<!--meta-tag:bot-skip-->into the comment that the bot should ignore.No verified findings are available from this review.
Review coverage was incomplete.
Reviewed:
faa89b1ae68d· Review report · Previous reportspermalink
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:
cc @ViniciusCestarii @ryanofsky
tACK
faa89b1ae6Confirmed this fix the slowdown and the error when timeout factor is 55+.
tACK
faa89b1ae6Tested ACK
faa89b1verified the 2s sleep covers a fee tick. with
feeThreshold = 1the test fails because block2 has more than one transaction.