Repository navigation
qa: scale PROGRESS_TIMEOUT with timeout_factor in interface_http.py (#36216) - #6
Open
Tejender06 wants to merge 1 commit into
Open
Tejender06 wants to merge 1 commit into
Tejender06 wants to merge 1 commit into
Conversation
On busy CI runners (particularly macOS), pipelined HTTP requests can take longer than the hardcoded 10-second PROGRESS_TIMEOUT to drain, causing intermittent test failures in check_pipelined_data_is_throttled. Scale PROGRESS_TIMEOUT and STALL_TIMEOUT by the runner's timeout_factor option to eliminate flakiness on slower systems without altering test logic. Fixes bitcoin#36216.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem Description
Resolves bitcoin#36216 on bitcoin/bitcoin.
Under high network throughput on loopback sockets or on slower CI environments (such as macOS GitHub Actions runners), pipelined data continues draining beyond the hardcoded 10-second threshold, raising
AssertionError: Server kept reading pipelined data while request was still in flight for 10sincheck_pipelined_data_is_throttled.Proposed Solution
Scale both
PROGRESS_TIMEOUT(increased from 10s to 30s base) andSTALL_TIMEOUTdynamically withgetattr(self.options, 'timeout_factor', 1).This accommodates CI execution variance without altering the throttling invariant checks.
Verification (TDA Hermetic Sandbox)