Skip to content

ci: cut runner quota use with schedules, concurrency and timeouts - #2851

Merged
shvbsle merged 1 commit into
awslabs:mainfrom
shvbsle:ci-runner-quota
Oct 7, 2026
Merged

shvbsle merged 1 commit into
awslabs:mainfrom
shvbsle:ci-runner-quota

Conversation

@shvbsle

@shvbsle shvbsle commented Oct 7, 2026

Copy link
Copy Markdown
Contributor
  • ci-manual.yaml and the ci.yaml it calls run on the awslabs-release-4-core runner group, so e2e runs don't queue behind PR CI on the shared runners.
  • Every job has a timeout: 30 min for linters, nodeadm checks, docs and bots, 150 for the e2e test job, 5 for small jobs. A hung job no longer holds a runner for GitHub's 6h default.
  • PR checks cancel the previous run when a new push arrives. Scheduled workflows never run twice at once. ci-manual runs are never cancelled, so EKS clusters aren't left running.
  • Scheduled crons moved off minute 0 (e.g. the janitor runs hourly at :23) to avoid the top-of-the-hour runner spike.

Issue #, if available:

Description of changes:

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Testing Done

See this guide for recommended testing for PRs. Some tests may not apply. Completing tests and providing additional validation steps are not required, but it is recommended and may reduce review time and time to merge.

The org runner quota is shared, and these workflows used more of it
than they needed:

- Every cron fired on minute 0, the top-of-the-hour spike that every
  repo creates by accident. Move each one to its own odd minute and
  keep its frequency. The janitor stays hourly: its kubetest2 sweep
  reaps resources older than 3h, so a 6h cadence would let a leaked
  cluster live for up to 9h.
- No workflow set concurrency, so superseded PR runs kept running.
  PR checks now cancel the superseded run. Scheduled, dispatch,
  push-to-main and release workflows queue instead. The reusable
  ci.yaml has none of its own; its callers, ci-manual and ci-canary,
  never cancel, because the CI job tears down its EKS cluster inline
  (kubetest2 --down) and a cancel would leak it. ci-manual groups on
  the PR number, so one PR's runs do not replace another PR's pending
  run.
- No job set timeout-minutes, so a hung job held a runner for the
  6h default. Each job now has a bound well above its recent
  durations. The AMI build and test job gets 150 min: recent runs
  took 57-70 min, one took 102 min, and its AWS role session ends at
  150 min anyway.

ci-manual.yaml and the ci.yaml it calls now run on the
awslabs-release-4-core runner group, which allowlists both files.
@shvbsle
shvbsle requested a review from a team as a code owner October 7, 2026 20:36
@shvbsle
shvbsle merged commit e1e388f into awslabs:main Oct 7, 2026
2 checks passed
@Youssef-Beltagy Youssef-Beltagy added the changelog/exclude Exclude this PR from future changelog entries. label Oct 14, 2026
@shvbsle
shvbsle deleted the ci-runner-quota branch November 6, 2026 22:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog/exclude Exclude this PR from future changelog entries.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants