Skip to content

feat(ci): bound every workflow job in time #1394

Backlog

Description

@TheShinriel

Problem

33 of the 37 jobs across .github/workflows/ set no timeout-minutes, so a hung job runs to GitHub's 6-hour default and holds a runner. Only cli-kilo-runtime (10), cli-mutation (90) and opencode (15) are bounded.

Scope

  • Add timeout-minutes to every job, at about 3x the slowest of its last 8 successful runs, never under 5 (slowest observed: cli / Windows 778s => 40 min).
  • Add a guard that fails when a job without a job-level uses: has no timeout-minutes.

Acceptance criteria

  • Every job in .github/workflows/*.yml has a positive timeout-minutes.
  • Removing one timeout-minutes makes the guard fail, naming that workflow and job.
  • All checks pass on the PR, each job under its bound.

Prior art in this repo

scripts/__tests__/cli-ci-gate-covers-every-job.test.js already parses the workflows; cli-ci.yml's cli-mutation and cli-kilo-runtime set the pattern.

Out of scope

Step-level timeouts; changing what any job runs.

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

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions