Skip to content

feat(budget): schedule the Actions budget watchdog from a public runner - #43

Merged
ExtraToast merged 1 commit into
mainfrom
feat/actions-budget-caller
Aug 29, 2026
Merged

feat(budget): schedule the Actions budget watchdog from a public runner#43
ExtraToast merged 1 commit into
mainfrom
feat/actions-budget-caller

Conversation

@ExtraToast

Copy link
Copy Markdown
Contributor

Companion to JorisJonkers-dev/github-workflows#128 (merged), which added the reusable watchdog.

Why here

Standard runners are free in public repos, so the watchdog never consumes the budget it watches. That matters more than usual for this one — a watchdog costing private minutes would be adding to the problem exactly when the problem is worst.

The alert lands in this repo rather than the offending one: the budget is an org-level fact, and once it is exhausted the private repos are precisely the ones that cannot run anything.

What it will report on its first run

Verified against live billing data:

3159 of 3000 included minutes used (105%) by private repos in August 2026

So it will go red immediately and file an alert — correctly. The org is past its included allowance for August, which is why a monetary budget was added.

Cadence

Four times a day at 41 */6 * * * — an offset minute, not on the hour. GitHub throttles schedules hard in this org (4–7 runs per repo per day regardless of declared cron, see #42) and deprioritises the congested boundaries first; every schedule in this estate that fires reliably sits off them.

For a budget check a handful of runs a day is ample — which is why this is worth scheduling at all, where issue boarding was not. It cannot promise to warn within minutes of a crossing, and the workflow comment says so rather than implying otherwise.

Labels

All five alert labels were checked to exist in this repo before wiring them up. gh issue create fails outright on an unknown label, which would turn the alert into a silent no-op at the one moment it matters.

Standard runners are free in public repositories, so the watchdog never
consumes the budget it watches. That matters more than usual here: a watchdog
costing private minutes would be adding to the problem exactly when the
problem is worst.

The alert lands in this repo rather than in the offending one, because the
budget is an org-level fact and, once it is exhausted, the private repos are
precisely the ones that cannot run anything.

Cadence is four times a day at an offset minute rather than on the hour.
GitHub throttles schedules hard in this org -- four to seven runs per repo per
day regardless of the declared cron -- and deprioritises the congested
boundaries first; every schedule in this estate that fires reliably sits off
them. For a budget check a handful of runs a day is ample, which is why this
is scheduled at all where issue boarding could not be.

All five alert labels were checked to exist in this repo before wiring them
up; gh issue create fails outright on an unknown label, which would turn the
alert into a silent no-op at the one moment it matters.

Refs JorisJonkers-dev/github-workflows#126
@ExtraToast
ExtraToast merged commit f8703f4 into main Aug 29, 2026
4 checks passed
@ExtraToast
ExtraToast deleted the feat/actions-budget-caller branch August 29, 2026 20:55
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