Skip to content

ci: bound the Tier 2 "Install Git" apt step, whose 34.5 min stall cancelled a PR build at the 45 min job timeout #5213

Closed

Description

@zackees

On PR #5205's run 44475566010, job 135395273899 (Rust Tier 2 Linux build, hosted), the "Install Git 📦" step ran from 06:54:43 to 07:29:14, which is 34.5 minutes. The build step then had only 7.5 minutes before the job hit its timeout-minutes: 45 and was cancelled. That failed CI Gate ✅ and needed a manual rerun. The rerun, with no code change, took 624 s in total.

The step (.github/workflows/build-project.yaml, around line 2686) runs apt-get update and apt-get install in a 3-attempt loop with 10 s and 20 s sleeps. It has no per-command or per-step timeout, so a stalled mirror connection can use up the whole job budget instead of failing over to the next attempt. Other recent PR runs show the same tail: the step took 317 s (run 44469130384), 172 s and 144 s, against a normal 11-50 s.

Proposed fix:

  • Bound each apt call: timeout 180 apt-get ..., plus -o Acquire::http::Timeout=20 -o Acquire::Retries=3.
  • Add timeout-minutes: 10 on the step.
  • Keep the existing retry loop and the prebaked path unchanged.
  • A self-test (or the existing workflow lint) should pin that the step has a bound.

At stake: about 33 min plus a manual rerun whenever a mirror stalls, and 50-200 s on slow-but-completing installs. This touches no routing, cache or test coverage.

Found by a read-only analysis of 15 recent PR runs. All of them ran Tier 2 on hosted ubuntu-26.04, with a median job time of about 700 s.

Activity

  1. added
    ci
    on Nov 19, 2026
  2. zackees commented on Nov 19, 2026

    @zackees
    MemberAuthor

    Claiming: focused CI reliability fix, assigned by the maintainer to pool slot obs-studio5.

    1. Add a workflow-parsing regression test and record local RED evidence on origin/master.
    2. Bound Tier 2 apt commands and steps, preserving retries and the prebaked fast path; audit the required Tier 2 path in ci.yml.
    3. Run related CI self-tests and ./lint, then publish according to backpressure and hand off with Refs ci: bound the Tier 2 "Install Git" apt step, whose 34.5 min stall cancelled a PR build at the 45 min job timeout #5213.

    Expected first PR: this worker session, if backpressure permits.

  3. added
    ready
    on Nov 19, 2026
  4. zackees commented on Nov 19, 2026

    @zackees
    MemberAuthor

    Landed on master in #5221 (0614862): the Tier 2 apt acquisition and package steps are now time-bounded, with a self-test pinning the bound, so a stalled mirror fails over instead of burning the 45-minute job budget.

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

Metadata

Metadata

Assignees

Labels

ciready

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions