Skip to content

feat(ci): devops ci ends each row at a time limit #4775

Closed
0 of 1 issue completed
Closed

Description

@dan-petty

Problem or Motivation

The hooks need a time limit for each devops ci row, and coreutils timeout does not give one.

  • In a test, timeout 4 uv run devops ci --check --only swallowed-failures,startup-imports returned 124, but the row processes still ran 4 s later. Each row runs in its own session (src/devops_cli/core/process.py), and timeout printed no row name.
  • Each row has a fixed limit of 1,800 s (DEFAULT_SUBPROCESS_TIMEOUT_SECONDS, src/devops_cli/config/defaults.py). That is more than the 15-minute limit of the Static Analysis job (.github/workflows/ci.yml).
  • The pre-push hooks run inside the agent Bash tool, whose default limit is 120 s. The owner rule of 2026-11-11 says that every inner limit is shorter than the limit around it.

Proposed Solution & Architectural Design

Add --timeout <seconds> to devops ci, with the setting ci.check_timeout_seconds (default 1800) and a Typer envvar. The value goes to the existing row limit of _run_in_own_session. That function ends the process group of the row and prints "timed out after Ns" with the row name (src/devops_cli/commands/ci.py).

#4683 adds a limit for each row in CheckSpec. A row with its own limit keeps it. An explicit --timeout caps every row.

Static Analysis in ci.yml passes a value under its 15-minute job limit.

Add a structural test. It reads .pre-commit-config.yaml and ci.yml. It fails when an inner limit is not shorter than the limit around it:

  • The sum of the pre-push limits plus the start time must be under 120 s.
  • The row limit must be under the job limit.

#4698 reuses the setting name.

Target Subsystem

SDLC, Git & PR Governance (src/devops_cli/commands/ci.py, src/devops_cli/config/, .github/workflows/ci.yml).

Existing Tool Considered

The existing row runner of devops ci already ends a process group and names the row. coreutils timeout ends only its direct child and names no row. Cost (estimate): about 150,000 tokens and half a day to build, near 0 to keep.

Acceptance Criteria

  • A test with a row that sleeps 10 s and --timeout 2 ends in under 4 s, names the row and the limit, and leaves no child process.
  • The structural test fails for a pre-push sum of 121 s and for a row limit of 900 s in a 15-minute job. It passes on the new config.
  • Static Analysis passes with the new value.

Dependencies

None. Related: #4683, #4698.

Source: #4771

Sub-issues

Sub-issues

0 of 1 Issues completed
Loading 1 sub-issues

Activity

  1. added
    source/agent
    on Nov 11, 2026
  2. added
    type/feature
    scope/ci
    status/new
    value/medium
    effort/medium
    on Nov 11, 2026
  3. 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/feature. The feat prefix of the title gives the type.
    • Scope: scope/ci. The (ci) scope of the title gives the scope.
    • Priority: P2-Medium. It improves CI reliability and developer control but does not fix a broken or security-critical path.
    • Value: Medium. It gives developers a tunable row timeout and a structural test that prevents misconfigured limits, which reduces CI failures.
    • Effort: Medium. It adds a CLI flag, a setting, modifies the process runner, updates ci.yml, and writes a structural test; the body estimates half a day.
    • Related: fix(ci): give the test row and the index build own timeouts #4683, which asks for a different change. Both work on per-row timeouts in devops ci; #4683 assigns per-row timeout values in CheckSpec, the candidate adds a global --timeout CLI flag and a structural test for timeout ordering.
  4. added
    priority/p2-medium
    owner/agent
    status/in-progress
    status/in-review
    and removed
    status/new
    status/in-progress
    on Nov 11, 2026
  5. dan-petty commented on Nov 12, 2026

    @dan-petty
    OwnerAuthor

    The CI acceptance criteria of this issue move to #5047: "a row limit of 900 s in a 15-minute job" fails the structural test, and "Static Analysis passes with the new value". PR #5031 delivers the stop of the gate rows on a stop signal and the pre-push limits. It does not change ci.yml, because the CI audit work owns .github/workflows/*.

  6. removed
    status/in-review
    owner/agent
    on Nov 12, 2026
  7. devops-cli-service commented on Nov 12, 2026

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

    @devops-cli-service
    Contributor

    Live since 2026-11-12 12:40 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/mediumpriority/p2-mediumscope/cisource/agenttype/featurevalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions