Repository navigation
Description
Problem or Motivation
Test Job Duration runs on each merge, and it reads the same window of 20 runs each time. 42 of 42 completed main push runs on 2026-11-10 and 2026-11-11 failed only in this job (measured). Thus main has no green run, and a new failure on main hides behind the red alarm.
The metric includes queue time. Over 20 main runs, the mean span is 575 s, and the mean of the slowest shard run is 464 s. Run 43018142394 gives 975 s, but its slowest shard ran for 427 s.
The daily schedule run shares the concurrency group of the merges (.github/workflows/ci.yml:18-20), and a merge cancelled the schedule run of 2026-11-11.
Saving: 1 job and 1.3 runner-min per merge (measured), which is 61-76 jobs per day.
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
- Run the
job-timejob only onscheduleandworkflow_dispatch. - Add
github.event_nameto the concurrency group ofci.yml, so that a merge does not cancel the schedule run. - In
_job_seconds(src/devops_cli/github/client.py:510-564), measure the slowest shard run plus the aggregate run. Print the queue part on its own line. - Keep the 300 s limit.
Risk: None. The alarm stays.
Target Subsystem
SDLC, Git & PR Governance (.github/workflows/ci.yml, src/devops_cli/github/client.py).
Existing Tool Considered
GitHub Actions schedule and concurrency (native), and the started_at and completed_at fields of the GitHub REST jobs API that the client already reads. No new tool. Cost: about 30,000 tokens and 2 hours.
Acceptance Criteria
- No push run has a
Test Job Durationjob. - A merge does not cancel the schedule run.
- For run 43018142394, the metric gives 520 s or less, not 975 s.
- The alarm still exits 1 when the mean without queue time is more than 300 s.
- A
mainpush run that has no failed test is green.
Dependencies
None.
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.All 42 main push runs fail in this job, so main has no green run and new failures are hidden.It unblocks every merge on main and removes 61 to 76 wasted jobs per day.The change touches one workflow trigger, one concurrency key, and one metric function; the body estimates 2 hours.Both concern the job-time alarm and the 300 s limit, but the candidate fixes the alarm's scheduling and metric while 4026 asks the roadmap service to validate the premise before staging.devops-cli-service commentedon Nov 11, 2026
Released in v0.113.0: https://github.com/dan-petty/devops-cli/releases/tag/v0.113.0
devops-cli-service commentedon Nov 11, 2026
Live since 2026-11-11 19:36 UTC