My agents got faster. My releases got slower.
29 minmedian wait from opening a PR to its checks finishing, Nov 19
7.6 minone PR from opening to live, the same night after the fix
LineupFinder is a festival lineup site I run. Every change goes the same way: a pull request, checks, a merge, a release. When the site was small that took a few minutes. Over five months it got slow three times, for three different reasons. This post is what I changed each time, written so you can check whether the same fix fits your setup.
How it got slow
First, money. The repository is private, so GitHub bills for the machines that run its checks. When the monthly budget ran out, checks did not slow down. They stopped, and nothing could ship until I came back and reran them by hand.
Then, my own machine. On October 13 I moved every workflow onto my Mac mini. It was free and fast again, ten to fifteen minutes from pull request to live. But the Mac mini also runs a Slack server and a bot, scheduled jobs, remote access to my agents from my phone, and monitoring of many sites for discovery and search work. It has 12 cores and 24 GB of memory.
Then, volume. I started running many agents in parallel, each opening its own pull request. By November the repository ran about 42 sets of checks a day. On November 19 a pull request sat in “queued” for two hours, and for more than three hours that afternoon no release finished.
1. Measure waiting and running separately
Before changing anything I split each check’s time into two numbers: how long it waited for a machine, and how long it ran.
Browser tests: waiting15.1 min
Browser tests: running10.3 min
Unit tests: waiting10.8 min
Unit tests: running3.5 min
Yellow is time spent queued, waiting for a machine; green is time spent running. Medians over the 14 most recent successful runs on November 19. Source: GitHub Actions timings.
Most of the time was waiting. That changed which fixes were worth doing: making tests faster would have saved minutes, and the queue was costing an hour.
Use it: always, first. GitHub shows when a job was queued and when it started; the gap is your waiting time.
2. Self-host the runner when the budget is the wall
Moving the checks to my own always-on machine ended the “budget exhausted, nothing ships” failures at no cost.
Use it when: your repository is private, hosted minutes have a hard cap, and you own a machine that is on anyway.
Watch out for: the machine becomes shared with everything else you run on it, and it runs code from every pull request. I give each job a fresh container that is deleted afterwards, cap each lane at 3 CPUs and 3 GB, and run pull requests from forks on GitHub’s machines instead. New collaborators get read access and work from forks.
3. Separate the lanes
Scheduled jobs, pull request checks and releases shared runners. A change could wait behind a nightly crawl, and a merged change could wait behind other pull requests’ browser tests before it went live.
I gave scheduled jobs their own lane and releases their own lane.
Use it when: you see releases or checks queued behind cron jobs or behind unrelated work.
4. Stop work nobody needs any more
Browser tests for pull requests that had already merged were still queued, holding a lane for hours. With auto-merge on, a pull request often merged before its slower tests even started. Now such a job sees the pull request is merged or closed and ends in seconds.
Use it when: pull requests merge on fast checks while slower jobs are still queued.
5. Do each piece of work once
The same checks ran at the pull request, again at merge, and the release ran the tests a third time. The merge no longer reruns checks, and the release no longer reruns tests.
Use it when: your pipeline has separate check, merge and release stages that were written at different times. Look for the same test command in more than one of them.
6. Run only the tests a change can affect
The release now picks its tests from what changed since the last verified release: a fixed base set plus whatever the change touches. On a release with no new changes that came to 2,400 unit tests in about 2 minutes and 5 browser tests in 30 seconds. Before, a release ran all 3,103 unit tests and the full browser suite, and some runs hit the 60-minute limit.
Use it when: your suite is large and most changes are small. You need a record of the last good release to compare against.
7. Let slow tests stop blocking the merge
A pull request now blocks only on the fast checks. The slow test files, 52 of them, run when a change touches them, and the whole suite runs on main once a day. If that daily run fails, it opens an issue, and a fix follows.
I made this trade on purpose: LineupFinder is a festival site, not a bank. A bad change that is caught and fixed quickly costs less than every change waiting an hour. Two pull requests that each pass alone but break something together will now be found by the daily run, not before release.
Use it when: shipping a fix is fast and a brief bad release is cheap. Do not use it when a bad release loses data or money. I kept the checks that protect data correctness in front of the release.
8. Parallelize the build
Independent build steps ran one after another. Running them side by side took the build from 109 seconds to 54, with the same output.
Use it when: your build is a list of generators and checks that do not read each other’s output.
9. Do not wait on other people’s websites
A check after each release loaded an outside ticket site and waited for it. It no longer waits for that page.
Use it when: a step in your release depends on a server you do not run. Its slow days become your slow days.
10. Pay for capacity only when concurrency is the problem
When many pull requests arrive together, one machine still queues them. Moving checks back to GitHub’s machines would end that, at an estimated $120 a month for my volume. I kept the cap at $30 and stayed on the Mac.
Use it when: after the fixes above, your remaining wait is mostly several jobs arriving at once, and the money is worth less than the time.
The result
That night one pull request went from opening to live in 7 minutes 34 seconds.
Waiting for a machine
Before10.8 min
After7 s
Pull request checks
Before9.6 min
After2.7 min
Merge, when main had moved
Before3 to 12 min
After30 s
Release
Before8 to 20 min
After3.5 min
Red is before the changes, green is the pull request that went live in 7 minutes 34 seconds on November 19. Waiting and checks before are medians from the same day; where the before is a range, the bar sits at its middle. Source: GitHub Actions timings.
What is left: when several pull requests open at once, each still waits about three minutes for every one ahead of it.
What I take from it
Every fix moved the bottleneck. Saving money moved the work onto my machine. My machine made it cheap to run more work in parallel. More parallel work turned one machine into the thing everyone waited for.
The order I would use next time is the order above: measure the wait, remove work that does not need to block a release, and only then spend money on more machines.
Sources
- The move to the Mac on October 13, 2026, and the reason for it: the pull request that made the change, in LineupFinder’s private repository.
- Timings for November 19: GitHub Actions run data for the same repository, read that day.
- The pull request that went live in 7 minutes 34 seconds: opened 23:10:53 UTC and merged 23:15:26 UTC on November 19, live at 23:18:59.
