How a one-person company’s CI went from a 24-second first run to a 1,204-suite test estate on 8 shards, every way it broke along the way, and the targets we still miss.

In four months: 7,456 CI runs, 1,966 pull requests merged, test suites from 100 to 1,204, and 74,374 runner-minutes spent on red runs in the last 54 days alone.

Test suites grew from 100 to 1,204 while the median time to a green run went from seconds to about 30 minutes

How it started

I build Groundswell, a marketing product for small & medium businesses, mostly on my own with AI coding agents doing the typing. That matters for this story because it changes the volume. On a busy week we merge close to 200 pull requests. A human team of my size would merge a tenth of that. CI is the only thing standing between all that code and production, so CI became the product behind the product.

It began on 29 July 2026 with one workflow on GitHub’s own runners. The first run took 24 seconds. In the first week we ran CI 137 times and nothing was red.

Then the tests grew faster than anything else in the company. Every bug we fixed got a test that proved it could not come back. 100 suites in mid August, 489 on 1 October, 1,204 today. Everything below is what that growth did to us, in date order, with the numbers.

Every variable, over time

One rule I learned the hard way: a CI number without the date and the test count beside it is misleading. So here they are together.

Date Tests Ran on Shards Min to green Red PRs merged
29 Jul few GitHub 1 0.7 0% 29
15 Aug 100 1 small server 1 3.1 4% 71
1 Sep 247 Server, then GitHub 1 14.1 24% 197
9 Sep 423 GitHub 4 35.1 24% 91
1 Oct 489 M1 MacBook Air 4 9.6 30% 47
29 Oct 876 M5 + M1 Macs 8 29.8 42% 162
7 Nov 983 M5 + M1, queue rules 8 35.0 34% 146
30 Nov 1,204 M5 + M1, 1 PR at a time 8 31.2 36% 101

Minutes to green, red share and merges are for the week containing that date. Red share counts failed runs over finished runs; cancelled runs are left out. From 16 Nov it also includes runs we refuse on purpose in the first minute (not this PR’s turn).

Where we failed, in order

10 Aug: Free GitHub minutes ran out, and it looked like a bug.

Jobs failed in 3 seconds with no runner, no steps and no logs. 12 pull requests sat with no green check for hours while we debugged a workflow that was not broken.

The fix was a self-hosted runner. The lesson: check the bill before the code.

1 Sep: A test failed 1 run in 4 on a clean main.

It searched a response for a two-digit number. The response also held a random 32-character ID, which contains any given two digits about 12% of the time.

A flaky gate teaches everyone to press re-run, and that is how a real failure gets through.

7 Sep: A cancelled run took the only runner for 22 minutes.

The fallback job was set to run whenever the first job did not succeed. Cancelled is not success, so every new push launched a full suite for a commit nobody would merge.

The more often we fixed a PR, the longer its CI waited.

18 Sep: We moved CI to my laptop and blamed the wrong thing.

Shards took 19 to 24 minutes. We blamed RAM and cut to 2 shards: it got slower, 28 minutes against 22. The runner containers were using 724 MB. The real cause was my home internet running at 200 KB/s on a 1 Gbps plan.

Measure the container, not the whole laptop.

26 Oct: The older Mac got 4 times slower.

Its Podman VM held 14.5 GB of a 16 GB laptop and never gave memory back. We capped the VM at 5 GB and headless Chrome got killed for lack of memory. We put it back.

Memory at the end of a run is not peak memory.

29 Oct: Browser tests failed only when the machine was busy.

171 browser suites held 590 fixed sleeps. At a load of 13 on 10 cores, the page was not painted when the test looked.

We replaced them with waits for real state, and CI now refuses any new fixed sleep.

30 Oct: Our worst day.

58% of runs red. 5,134 runner-minutes spent on runs that failed.

31 Oct: My Macs were going to sleep.

The older Mac slept 30 seconds after its display turned off, and the runner dropped mid-run. Two days later both Macs slept on a closed lid, even though I was sure the lid was open. The power log said otherwise.

Both Macs now have sleep disabled. Read the log before you trust your memory, including mine.

1 Nov: Main went red at midnight on the 1st.

Tests seeded with today's date broke when the month changed. It was the second month in a row.

Pin the clock in tests.

4 Nov: Main waited 2 hours for a runner that was free.

GitHub hands a free runner to any queued job for its label, not the oldest one. A healthy runner took 7 newer PR jobs while main sat queued. On 15 Nov it happened again for 52 minutes, and nothing could deploy.

Main now goes first: a PR job that has not started steps aside when main has waited 10 minutes.

8 Nov: We forced a local test run before every push, then dropped it 5 days later.

28 of the last 30 merged PRs had no local run, so we made CI refuse them. Then PRs sat for an hour each running locally before CI could even start.

A gate that moves the waiting does not remove it.

16 Nov: Eleven PRs and main fought over 8 runners.

Every PR asks for all 8 shards, so each one waited behind the others, and main starved.

We cap CI at one PR at a time, and merges take turns, up to 4 per main test run.

25 Nov: The faster Mac is a fanless MacBook Air.

After about 2 hours of near-continuous CI its suites ran 3.5 times slower and every shard hit the 45-minute cap. Nothing inside the VM had changed. Heat is our best explanation, not a proven one.

When a machine slows down, check how long it has been busy before blaming the tests.

28 Nov: Our last speed fix promised 82 minutes and delivered 152.

We narrowed which tests a PR runs and projected the saving by replaying past PRs. The sample we replayed was not typical.

Replay on a representative week, or do not publish the number.

What the last eight weeks really cost

We started a daily CI log on 7 October. Two targets went in on 7 November: under 5% of runs red, and 80 runner-minutes or less for a passing run. We have not met either on a single working day.

Runner-minutes per passing run rose to about 150 against a target of 80; most red runs are now real bugs, not CI's fault

The left chart looks like failure, and partly it is. But the suite count went from about 520 to 1,204 over the same weeks, and each pull request now runs on 8 shards across two machines. The honest reading: cost per passing run grew faster than the tests did, and part of that is our slower second Mac and the load limits we added to stop flaky failures. On the right, since we started splitting every red run by cause on 24 November, CI’s own share has been 0 to 4.9% a day. The rest are real bugs caught before merge, or runs we refuse on purpose. That is CI doing its job, but it still costs runner time.

Pull requests merged per week stayed between about 50 and 200 while the share of red runs rose

What actually worked

What I learned

  1. Measure the machine before you blame it. Slow network looked like low memory. Sleep looked like a crash. Heat looked like slow tests. Every one of those first guesses was wrong.
  2. A failure that looks like a bug will be debugged as a bug. Running out of free minutes looked exactly like a broken workflow, and we lost hours.
  3. Fixed sleeps in browser tests are debt. They pass on a quiet machine and fail the day the machine is busy, which is the day you need them.
  4. Your CI scheduler is not first come, first served. GitHub gives a free runner to any queued job for its label. If you share runners between main and PRs, build the queue yourself.
  5. Laptops are cheap capacity, and they are still laptops. They sleep, they get hot, and their VMs keep memory they do not need.
  6. A projection is only as good as its sample. Our last saving was projected from a replay at 82 minutes and measured at 152.
  7. A gate that moves the waiting does not remove it. Making every PR run its tests locally before CI just moved an hour of waiting to a different screen.

Is this you too?

I would like to hear from anyone running CI at this kind of volume, especially on hardware you own. Six things I have not solved:

  1. If you run CI on Mac minis or laptops, how do you handle sleep, heat and VM memory over a long busy day?
  2. In a Python codebase where almost every test imports the app, how do you pick which tests a change can affect? Tracing, coverage maps, something else?
  3. How do you stop pull request jobs from starving main on a shared runner pool, given GitHub does not hand out runners in order?
  4. What share of red runs do you consider healthy, and how do you separate "CI's fault" from "the code is wrong"?
  5. Did GitHub's merge queue work for you at 100 to 200 merges a week, or did you build your own?
  6. With about 1,200 test suites, what does a passing run cost you in runner-minutes, and what got it down?

Reply in the comments or message me. I will share what we try next and whether it works.

How these numbers were made: every run of the main CI workflow from the GitHub Actions API (7,456 runs, 29 Jul to 30 Nov 2026), every merged pull request from the GitHub API (1,966), our daily CI log kept since 7 Oct, and the engineering log written with each change. “Minutes to green” is a run’s start to its last update, so it includes waiting for a runner. Runner-minutes add up the time of every test shard in a run. Dates are in India time.