mirror of
https://github.com/bitcoin/bitcoin
synced 2026-12-04 10:44:38 +00:00
test: drop flaky "server too slow" check from interface_http.py #36848
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!36848
Loading…
Reference in a new issue
No description provided.
Delete branch "interface-http-flake"
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?
Closes https://github.com/bitcoin/bitcoin/issues/36755
To cover
-rpcservertimeoutbehavior our test expected the Bitcoin Core HTTP server to disconnect the test framework client after the configured duration but also before a somewhat arbitrary upper bound. This was helpful during development of #35182 but has led to false negatives in CI on platforms that are just plain slow.Solve the flakiness by simply deleting the test case. Note that a regression is still caught by both the functional test and unit test suite. #36159 added a mock clock in the unit test to assert the disconnect timing. A server with no timeout would also fail the functional test which will time out during
sock.recv()waiting for the EOF.Both regression test failures can be observed on top of this branch by disabling rpcservertimeout:
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.LLM Linter (✨ experimental)
Possible places where comparison-specific test macros should replace generic comparisons:
test/functional/interface_http.py:assert duration >= seconds - 1→ Preferassert_greater_than_or_equal(duration, seconds - 1).2026-11-12 19:03:09
🔵 Suggestion · Idle-timeout coverage no longer distinguishes the configured value from the default
Removing the upper bound lets the idle-timeout assertions accept a 30-second default instead of the configured two seconds; the mock-clock tests do not cover that integration, although the current production path is correct.
Location:
test/functional/interface_http.py:101(head).Review coverage was incomplete.
Reviewed:
75a23e7d36af· Review report · Previous reportspermalink
This follows the general pattern, see also
github.com/bitcoin/bitcoin@aa76bd266dlgtm ACK
75a23e7d36Haven't tried your mutant.
cc @hodlinator
The PR makes the disconnect-timeout test less flaky by removing the upper time-bound check. It still verifies that the server doesn't disconnect too early, and the socket read timeout catches cases where it never disconnects.
tACK
75a23e7d36. Raninterface_http.pywith the PR and it passes. With the mutant from the description, it fails with aTimeoutErrorafter about 71 seconds inrecv_raw.Backported to
32.xin #36727.ralph referenced this pull request2026-11-16 19:07:04 +00:00