Repository navigation
Description
Problem or Motivation
The devops ci check timeout of 1800 s (src/devops_cli/config/defaults.py:353) cannot fire in CI, because the 30-min job limit includes about 30 s of setup. Service Image Tests start pytest.main with no check timeout (.github/workflows/ci.yml:653).
pytest-timeout does not end a hung teardown: a probe ran until the outer kill, rc 124 (measured). docs/TESTING.md:153 says otherwise.
The coverage-index build took 1,627 s of its 1,800 s timeout (measured once), so one 600 s hang makes the index stale.
The owner rule of 2026-11-11 says that each inner timeout is shorter than the one around it (test < step < job).
Saving: None on a green run. A hang gives a clear failure line.
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
- Add an optional
timeout_secondstoCheckSpec(src/devops_cli/commands/ci.py:144-163). - Use 900 s for the test row of a
--shardrun, inside the 20-min job limit of fix(ci): set job timeouts from the measured run times #4677. - Wrap the Service Image Tests
docker runintimeout --kill-after=30 900(coreutils). - Give the index build its own constant of 3600 s, with a comment that gives the measured time.
- In
docs/TESTING.md:153, say that the row timeout and the job timeout bound a hung teardown.
Risk: Low.
Target Subsystem
SDLC, Git & PR Governance (src/devops_cli/commands/ci.py, src/devops_cli/config/defaults.py, .github/workflows/ci.yml, docs/TESTING.md).
Existing Tool Considered
coreutils timeout and the existing pytest-timeout. No new tool. Cost: about 30,000 tokens and 2 hours.
Acceptance Criteria
- In a shard run, a probe test with a hung teardown ends at 900 s with a 'timed out' line from
devops ci, before the job limit. - Service Image Tests end a hung run at 900 s.
- The index build uses 3600 s.
docs/TESTING.mdgives the bound.
Dependencies
Depends on #4677.
Alternatives check of 2026-11-14: partly.
Tool: coreutils/coreutils (https://github.com/coreutils/coreutils), GPL-3.0, last activity 2026-11-13, maintained.
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.
fixprefix of the title gives the type.(ci)scope of the title gives the scope.It prevents hung tests from holding a runner for the full job limit, but it depends on #4677 and does not block a release.It frees a runner slot within 900 s instead of 30 min, shortening the queue for other pull requests.The change adds one optional field, two constants, one coreutils wrapper, and one docs line; the candidate estimates about 2 hours.Both implement the owner rule that inner timeouts are shorter than the job timeout, but #4677 sets the job bound and the candidate adds the test-row and index-build bounds inside it.devops-cli-service commentedon Nov 14, 2026
Alternatives check: partly
Reason: The searches turned up no tool that provides a per-check timeout for
devops cior a separate index-build budget; the only candidates are pytest-timeout, which the issue measured as unable to end a hung teardown, and GNU coreutilstimeout, which the issue already names.timeoutwith--kill-afterdoes supply the hard kill that two of the acceptance criteria need, so it covers that part, but theCheckSpec.timeout_secondsfield, the 3600 s index-build constant and thedocs/TESTING.mdbound stay repository work.Tool: coreutils/coreutils (https://github.com/coreutils/coreutils)
Covers:
docker runneeds at 900 s--kill-after=30sends SIGKILL after the grace period, so a process that ignores SIGTERM still endsLacks:
timeout_secondsinCheckSpec, so a shard run cannot report its own 'timed out' line fromdevops cidefaults.pydocs/TESTING.mdTools considered:
Searches run:
Sources:
Checked on 2026-11-14. A person decides what this means for the item. The check changes no label and closes no issue.
chore(main): release 0.138.0 (#5690)
devops-cli-service commentedon Nov 14, 2026
Released in v0.138.0: https://github.com/dan-petty/devops-cli/releases/tag/v0.138.0
devops-cli-service commentedon Nov 14, 2026
Live since 2026-11-14 15:02 UTC