Skip to content

ci: add per-job timeout-minutes to the CI workflow - #4

Merged
AminDhouib merged 1 commit into
mainfrom
ci/track7/hygiene
Sep 16, 2026
Merged

AminDhouib merged 1 commit into
mainfrom
ci/track7/hygiene

Conversation

@AminDhouib

Copy link
Copy Markdown
Member

ci: add per-job timeout-minutes to the CI workflow

Every job in this repository could previously run until the GitHub 6 h
ceiling. A hung job therefore held a runner slot for hours. Each job now
carries an explicit timeout-minutes.

Rule: the budget is 3 x the job's observed p90 duration, rounded up to
the nearest 5 minutes. Where 72 h of run history contains no completed
sample for a job, the class default for that job's class is used
instead. Every job below falls in the second case.

.github/workflows/ci.yml
roundtrip 30 class default (other), unobserved
cross-job 30 class default (other), unobserved
unit 20 class default (unit-test), unobserved

The roundtrip matrix runs on three operating systems; the timeout is
per matrix leg, not per workflow, so 30 minutes bounds each leg.

No concurrency change: ci.yml already declares a workflow-level
concurrency group with cancel-in-progress.

Job names, job count and workflow triggers are unchanged.

Part of the CI pool right-sizing programme; edits derived from 72 h of run history.

Every job in this repository could previously run until the GitHub 6 h
ceiling. A hung job therefore held a runner slot for hours. Each job now
carries an explicit timeout-minutes.

Rule: the budget is 3 x the job's observed p90 duration, rounded up to
the nearest 5 minutes. Where 72 h of run history contains no completed
sample for a job, the class default for that job's class is used
instead. Every job below falls in the second case.

.github/workflows/ci.yml
  roundtrip   30  class default (other), unobserved
  cross-job   30  class default (other), unobserved
  unit        20  class default (unit-test), unobserved

The roundtrip matrix runs on three operating systems; the timeout is
per matrix leg, not per workflow, so 30 minutes bounds each leg.

No concurrency change: ci.yml already declares a workflow-level
concurrency group with cancel-in-progress.

Job names, job count and workflow triggers are unchanged.
@AminDhouib
AminDhouib merged commit 7e5a5a5 into main Sep 16, 2026
5 checks passed
@AminDhouib
AminDhouib deleted the ci/track7/hygiene branch September 16, 2026 00:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant