You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bug: ci: transient API timeouts bypass idle merge-queue runners #5038
ci/select_mq_runner.py:14,26-39: API_TIMEOUT = 3; urlopen is attempted once.
Class
CI availability / transient API latency causes unnecessary hosted fallback.
How it is reached
At 03:00 UTC on 2026-11-18 merge-group runs 44227322510, 44227320410 and 44227317946 reported repository availability probe TimeoutError while Dell was idle. Refs #5025: the selector now also reads queued jobs and in-flight runs.
Proposed fix and failing test
Use 10-second requests, at most two retries for timeout/connection errors, 5xx and 429, short jittered backoff and capped Retry-After. Preserve a ten-attempt request budget and impose a 45-second overall deadline inside the Select job's two-minute timeout. Never retry other 4xx. Fake urlopen and injected time/sleep prove timeout recovery, persistent failure, HTTP retry classification, request budget, and deadline fallback without sleeping. Record local RED then GREEN; push both commits together.
Claiming: selector transient API recovery in infra/select-timeout (pool slot obs-studio8). 1. Commit fake-HTTP RED tests with injected time. 2. Implement bounded retries and a shared selection deadline, run focused tests and ./lint. 3. Push RED/GREEN together and open the PR this session; arm only with open backpressure.
Done by #5043 (merged 2026-11-18): ci/select_mq_runner.py on master has the 10 s request timeout, bounded retries and the 45 s selection deadline this asked for. The PR said Refs, so this stayed open.
Activity
zackees commentedon Nov 18, 2026
Claiming: selector transient API recovery in infra/select-timeout (pool slot obs-studio8). 1. Commit fake-HTTP RED tests with injected time. 2. Implement bounded retries and a shared selection deadline, run focused tests and ./lint. 3. Push RED/GREEN together and open the PR this session; arm only with open backpressure.
rdoupe commentedon Nov 21, 2026
Done by #5043 (merged 2026-11-18):
ci/select_mq_runner.pyon master has the 10 s request timeout, bounded retries and the 45 s selection deadline this asked for. The PR said Refs, so this stayed open.ci: retry transient API failures when selecting the merge-queue runner (