Repository navigation
chore(ci): cut the macOS minutes a pull request burns - #86
Merged
Merged
Conversation
Owner
Author
|
The two red checks are the account's Actions spending limit, not this diff. Both runs of 46263210882 and 46263210919 failed in 2 seconds with zero steps and this annotation:
What the runs do prove: Actions parsed this workflow and registered the new job graph — the check list shows Offline validation, for the record:
Merge once a run can start; nothing in the diff needs to change for it. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #85
What changes
pull_requestand onpushtomainonly, with aconcurrencygroup that cancels a superseded scan — one scan per change instead of two for the same commit.ubuntu-latestjob, withtimeout-minutes: 5; the macOS jobneeds:it, so a fixed text size still fails the pull request before any simulator work.12minutes, chosen from the measured distribution (median 2.3 min, p90 2.8), so a hang bills $0.74 instead of $1.86.paths-ignore:**.mdanddocs/**, so a documentation-only pull request starts no CI run.scripts/is deliberately not ignored — the coverage gate and the allowlist it reads are still evaluated on every change that can move them.FitCheck/Swift file viascripts/coverage_gate.py --base origin/main, same conditions, same allowlist.Why the three 15-minute jobs hung, 17–18 November
None of them ever reached a runner, and the workflow could not have fixed it. The check-run annotations say it plainly:
The job was not acquired by Runner of type hosted even after multiple attempts, alongside GitHub's ownDue to capacity constraints, jobs targeting macOS arm64 runners may experience longer queue times.The job sat queued while GitHub retried acquiring amacos-26arm64 hosted runner, then gave up at ~15 minutes and failed the run.The run was canceled by @Mxo01).Queued time never assigned to a runner is not billed as macOS minutes, so those waits cost $0 in minutes; what they cost was a failed check. The fix belongs on the runner side (re-run, or a fallback
runs-onfor the day GitHub's arm64 macOS pool is short), not in this workflow.Expected effect
With the push trigger already gone, the remaining macOS cost is one job per pull request: ~35 billable runs a month at ~2.2 min ≈ 80 macOS minutes, down from the ~147 billed in the last 30 days (and from the 198 counted including queue waits) — roughly $5 of the $12 allowance, with the worst case for a hang capped at 12 minutes.