Skip to content

bug: ci: transient API timeouts bypass idle merge-queue runners #5038

Closed

Description

@zackees

Location

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.

Activity

  1. added
    bug
    ready
    on Nov 18, 2026
  2. zackees commented on Nov 18, 2026

    @zackees
    MemberAuthor

    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.

  3. moved this from In progress to Ready in obs-rust Multiviewon Nov 19, 2026
  4. rdoupe commented on Nov 21, 2026

    @rdoupe
    Collaborator

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugready

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions