Repository navigation
Description
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-importsreturned 124, but the row processes still ran 4 s later. Each row runs in its own session (src/devops_cli/core/process.py), andtimeoutprinted 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 2ends 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
Source: #4771
Activity
dan-petty commentedon Nov 11, 2026
Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.
featprefix of the title gives the type.(ci)scope of the title gives the scope.It improves CI reliability and developer control but does not fix a broken or security-critical path.It gives developers a tunable row timeout and a structural test that prevents misconfigured limits, which reduces CI failures.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.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.dan-petty commentedon Nov 12, 2026
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/*.devops-cli-service commentedon Nov 12, 2026
Released in v0.118.0: https://github.com/dan-petty/devops-cli/releases/tag/v0.118.0
devops-cli-service commentedon Nov 12, 2026
Live since 2026-11-12 12:40 UTC