Skip to content

fix(ci): set job timeouts from the measured run times #4677

Closed

Description

@dan-petty

Problem or Motivation

The job timeouts are 2.6 times (changed-tests) to 129 times (third-party scan) the measured maximum. DevContainer allows 60 min for a maximum of 6.47 min (measured). The account runs at most 20 jobs at one time, so a hung job holds a runner for up to 30-60 min.

The owner rule of 2026-11-11 says that each inner timeout is shorter than the one around it (test < step < job), so that the inner one fails first with a clean exit.

Saving: None on a green run. A hung job holds a runner for 20 min or less, not 30-60 min.

Found by the CI and test audit of 2026-11-11. The account runs at most 20 hosted jobs at one time (measured), so each job that does no work makes the queue of each pull request longer.

Proposed Solution & Architectural Design

Set timeout-minutes to about 2 times the measured maximum:

  • test-shard 20 (maximum 607-678 s)
  • service-image-test 20 (646 s)
  • devcontainer 20 (6.47 min)
  • static 6 (2.93 min)
  • Tests & Coverage 5 (1.05 min)
  • the Service, Runner and MCP images 12 (5.13 min)
  • rule-pack, docs-site, image-pins and the third-party scan 5

Keep changed-tests at 30 until #4509 (the registry parse) merges, then set it to 15. A second item sets the test-row bound of devops ci below the 20-min job limit.

Risk: A slow runner can cause a false timeout. Watch for timed_out conclusions for 2 weeks.

Target Subsystem

SDLC, Git & PR Governance (.github/workflows/ci.yml).

Existing Tool Considered

GitHub Actions timeout-minutes (native). No new tool. Cost: about 10,000 tokens and 30 minutes.

Acceptance Criteria

  • ci.yml holds these values.
  • The jobs have no timed_out conclusion in the 2 weeks after the merge.

Dependencies

None.

Activity

  1. added
    source/agent
    type/bug
    scope/ci
    status/new
    value/medium
    effort/low
    on Nov 11, 2026
  2. dan-petty commented on Nov 11, 2026

    @dan-petty
    OwnerAuthor

    Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.

    • Type: type/bug. The fix prefix of the title gives the type.
    • Scope: scope/ci. The (ci) scope of the title gives the scope.
    • Priority: P2-Medium. Hung jobs hold a runner for 30 to 60 minutes, slowing the queue, but green runs are unaffected.
    • Value: Medium. Saves runner time only when a job hangs; no benefit on a green run.
    • Effort: Low. Change timeout-minutes values in one YAML file; the body estimates 30 minutes of work.
    • Related: fix(ci): test shards take up to 11 minutes, over the budget #4250, which asks for a different change. Both concern CI test-shard timing, but #4250 asks to reduce the actual shard duration while the candidate sets the timeout-minutes ceiling.
  3. added
    priority/p2-medium
    owner/agent
    status/in-progress
    and removed
    status/new
    on Nov 11, 2026
  4. removed
    status/in-progress
    owner/agent
    on Nov 12, 2026
  5. devops-cli-service commented on Nov 12, 2026

    @devops-cli-service
    Contributor
  6. devops-cli-service commented on Nov 12, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-12 05:27 UTC

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

    effort/lowpriority/p2-mediumscope/cisource/agenttype/bugvalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions