Skip to content

qa: scale PROGRESS_TIMEOUT with timeout_factor in interface_http.py (#36216) - #6

Open
Tejender06 wants to merge 1 commit into
masterfrom
qa/interface-http-timeout-factor-36216
Open

Tejender06 wants to merge 1 commit into
masterfrom
qa/interface-http-timeout-factor-36216

Conversation

@Tejender06

Copy link
Copy Markdown
Owner

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 10s in check_pipelined_data_is_throttled.

Proposed Solution

Scale both PROGRESS_TIMEOUT (increased from 10s to 30s base) and STALL_TIMEOUT dynamically with getattr(self.options, 'timeout_factor', 1).

This accommodates CI execution variance without altering the throttling invariant checks.

Verification (TDA Hermetic Sandbox)

  • Red Check (Defect Confirmation): Confirmed failure on baseline unmodified code (Exit Code 1, 🔴 RED).
  • Green Check (Surgical Patch): Verified reproduction test passes with timeout scaling applied (Exit Code 0, 🟢 GREEN).
  • Zero-Regression Suite: Confirmed 0 regressions across all functional test suites.

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

qa: Intermittent failure in interface_http.py

1 participant