Cutting CI from an Hour to 23 Minutes (With 2,000 More Tests)

NPEdit’s CI had gotten slow enough that I’d started planning around it.

Every push runs a matrix across Ubuntu, macOS, and Windows. NPEdit is a native desktop editor written in Go with Gio, so each job compiles Cgo graphics dependencies, spins up language server processes in tests, and runs go test -race over the whole codebase. The race detector has caught real concurrency bugs for us, but it’s expensive, and GitHub’s default runners only have 2 cores.

Windows was the worst of it. The test step alone regularly took 45 to 50 minutes. macOS was faster once it started, but it often sat in the queue waiting for an arm64 runner first. End to end, a push took about an hour.

An hour is long enough that you stop waiting for it. I’d push, move on to something else, and come back later to find a Windows failure in code I no longer had loaded in my head. Small fixes started to feel not worth pushing on their own.

Switching to Blacksmith

I moved the runners over to Blacksmith. Their bot opened a PR that changed one line in .github/workflows/ci.yml:

 matrix:
-  os: [ubuntu-latest, macos-latest, windows-latest]
+  os: [blacksmith-4vcpu-ubuntu-2404, blacksmith-6vcpu-macos-15, blacksmith-4vcpu-windows-2025]

I merged it and didn’t touch anything else in the workflow.

Before and after

I figured 4 and 6 vCPUs instead of 2 would help some. It did more than that:

Job GitHub runners Blacksmith
Ubuntu ~8.5 min ~3.2 min
Windows ~45 min ~23 min
macOS often queued for an arm64 runner starts right away
Whole run ~1 hour 22–24 min

The test suite grew a lot over the same couple of weeks. We added Dev Container oracle tests that start real Docker containers, plus tests for the new MCP tooling, and the count went from about 3,600 to over 5,600. So CI is running roughly 55% more tests than before and still finishing in well under half the time.

Where the speed comes from

Mostly hardware: faster CPUs, more cores for go test to spread packages across, and NVMe disks that keep up when Go compiles a lot of packages in parallel.

The difference I notice day to day is that a push now finishes before I’ve switched to something else. I get the green check, or the failure, while the change is still fresh in my head.

The runs and workflow config are on the NPEdit Actions page.