Skip to content

fix(ci): the duration alarm fires at 360 s and files a P0 issue #5247

Closed

Description

@dan-petty

Problem or Motivation

Child 17 of the ADR modernization (#5233). Code and the text of AGENTS.md rule 5. The tolerance is the owner's decision of 2026-10-23. The owner merges it.

The review of each record that this item changes:

  • ADR 0014 (supersede (merge with 0004 into the merge-gate record)): It lists 3 of the 9 rules of the live ruleset. The CI SLO stays in AGENTS.md rule 5 and TESTING.md, with no third copy. 'Local runs' changes only in the PR that ships feat(pr): pr create gates the change and pushes once #4708.

Proposed Solution & Architectural Design

commands/ci.py uses an alarm limit of 360 s. The scheduled job comments on or files one P0 issue. Module weights come from recorded times, with line count as the fallback (core/test_selection.py:338). Remove the unused pytest-split pin (pyproject.toml:111). AGENTS.md rule 5 and docs/TESTING.md:180 state the tolerance one time.

Rules of the ADR process (docs/adr/README.md, #5225) that apply:

  • Use one form for a Status History line, 30 words at most: 'YYYY-MM-DD: Amended by ADR NNNN, section S | Amended by the owner decision in #N, section S | Superseded by ADR NNNN | Fact out of date: (#N) | Living detail moved to (#PR).' The PR that makes a fact of a record wrong adds the line (AGENTS.md rule 8). An agent never edits the body of an accepted record.

Keep these constraints on purpose. The review found a reason for each one:

The owner merges this pull request.

Target Subsystem

src/devops_cli/commands/ci.py, pyproject.toml, AGENTS.md, docs/TESTING.md.

Existing Tool Considered

The scheduled CI duration job (in use). No new tool.

Acceptance Criteria

  • commands/ci.py uses an alarm limit of 360 s: the target of 300 s and the tolerance of 60 s from the owner's words of 2026-10-23.
  • The scheduled job comments on, or files, one P0 issue when the mean is over the limit, and it files no second issue for the same breach.
  • The unused pytest-split pin (pyproject.toml:111) goes.
  • AGENTS.md rule 5 and docs/TESTING.md:180 state the tolerance one time.

Dependencies

None.

Related

Source: #5233

Activity

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

    @dan-petty
    OwnerAuthor
  4. added
    priority/p2-medium
    on Nov 12, 2026
  5. dan-petty commented on Nov 13, 2026

    @dan-petty
    OwnerAuthor

    Evidence from main: the scheduled CI Quality Gate run 43370174775 on 54cf0a5 (2026-11-13 05:09Z) failed in the job Test Job Duration: "Over the limit: the last 20 runs of Tests & Coverage took 316 s on average, and the limit is 300 s." The runner wait was 7 s on average. main is red on this row now, so this item is the next build. The shard weights from recorded times (the second part of this item) must bring the average under 300 s; the alarm limit alone does not.

  6. added
    owner/agent
    status/in-progress
    status/in-review
    and removed
    status/new
    status/in-progress
    on Nov 13, 2026
  7. removed
    status/in-review
    owner/agent
    on Nov 13, 2026
  8. devops-cli-service commented on Nov 13, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-13 12:38 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