AI coding agents test all day: CPU, then GPU
When I was the only developer, the local checks ran when I committed: every few hours. With a team of AI coding agents working in parallel, they run all day: the agents reach about 100 quality PRs a day (How I reached 100 quality PRs a day with an agents kanban), and every push is a full build. CPU is the bottleneck now; GPU is next, as end-to-end agent tests move onto the GPUs. My answer is a self-hosted Jenkins on three machines with 35 executors, one GitHub status per PR head, and a kanban board that refuses the handoff while it is red, pending or missing.
The board itself is in How I manage teams of coding agents on a private project locally. This one is about the tests the agents run.
From every few hours to all day
A human pushes a few times a day and waits for the result. Agents don’t wait: several work on their own branches at once, each pushes when its local run is green, and each push starts a build. Nobody batches them.
One build is not a lint run. A green busyyaks build — the kanban app itself — runs nine gates in parallel: (1) lint, RuboCop and ShellCheck; (2) the Ruby suite on SQLite; (3) the Ruby suite on PostgreSQL with a coverage floor of 95 % lines and 84 % branches; (4) the frontend: tsc, ESLint, Prettier and vitest; (5) a flake check that runs the tests a change touches five times; (6) a dependency audit; (7) gitleaks over the full history; (8) the host-side tools on the oldest supported Ruby; (9) the same tools on four Linux distros. Then two throwaway Linux machines install the app for real, on SQLite and on PostgreSQL.
A green build took a median 5.5 minutes (p90 7.5, longest 8.0; 17 green builds of 17–23 November UTC, as Jenkins’ rolling history held them on 24 November).
CPU is the bottleneck now
Every build runs under a budget: one busyyaks build was measured at 9.2 GiB of pinned memory and 3,260 processes (16 November), and its budget is that plus 25 %: 11.5 GiB, 4 CPUs and 4,096 tasks. An agent’s cap is its executor count times one budget.
The Beelink has 32 threads and seven busyyaks executors, so busy builds alone can ask for 28 of its 32 threads. Memory still fits: seven builds × 11.5 GiB stay inside its 125 GiB less a 40 GiB reserve for everything else it runs, and six branch builds at once peaked at 22.7 GiB of their 69 GiB cap. More executors would not get more CPU, so there are not more. The fleet panel showed the same: on 24 November at 20:31 UTC the Beelink’s CPU was at 63 % and had reached 98 % in the hour before (19:32–20:31), while its memory was at 42 % (53 of 125 GiB) and had not passed 53 %.
GPU is next: end-to-end agent tests
The two DGX Sparks run my local models. Between model runs they build PRs on arm64, so the builds run on two architectures. The end-to-end agent tests — plain-English steps that call a model, from e2e: agentic E2E tests for web and mobile — are coming into CI suite by suite, on the Sparks, and they put the Sparks’ GPUs on the build path.
Every agent dials in to the controller over WebSocket, so the controller needs no SSH into the machines: a machine joins by reaching the controller’s port. The controller itself runs no builds. The whole setup is configuration as code — the jobs, the nodes and their restrictions are YAML files reloaded into Jenkins, not clicks in the UI.
One push, checked
More builds only help if each one ends in one answer the board can read. The rule every agent follows: a red check is fixed in the code. It is never skipped, excluded, allowlisted or retried until it goes green by luck.
Step by step:
- Before the push, the agent runs the same script CI runs,
scripts/ci/test.sh, in Docker on its own branch. CI is never the first place a test runs. - On the push, the agent does three things at once: it arms a watcher on the PR’s checks, starts a fresh QA agent and starts a fresh reviewer agent on that head. Nobody waits for CI to start reviewing.
- Jenkins builds the PR head, not a merge commit, so the status lands on the exact sha the board will read. A branch without a PR builds nothing.
- The gates run in parallel, each in its own containers, then the install machines.
- One status,
jenkins/ci, linked to the build. Jenkins’ own default statuses are switched off, so there is exactly one thing to read. - The board’s gate knows, per repo, which contexts are required. It refuses the handoff until they are all finished and green on the head. The handoff’s CI link must be a build of a required check on that head, so an old green build cannot vouch for a new commit. A required check pending for more than 60 minutes is marked stuck and the owner agent is pinged once.
- Red: the agent reads the failing stage’s log and names the cause on the card. In the change → it fixes the code and pushes again. Outside it (network, rate limit) → one re-run, noted; red again → it blocks the card with the build link.
Why self-hosted, not GitHub Actions
My private repos are the agency’s working copies: agents (junior level) push to them all day, and only reviewed work reaches the public repos. At this many full builds a day, CI runs on hardware I already have, between model runs on the Sparks. The public repos still run GitHub Actions; a fork’s PR is untrusted code, and it never reaches my machines.
Untrusted branches: rootless Docker build agents
A Jenkinsfile lives in the branch it builds, so a branch can change its own pipeline, and nothing written in it can be a security control. The guards for busyyaks live in the controller’s configuration instead:
- Two agents per machine. Trusted builds only the default branch, branch builds every PR, each as its own Unix user, so a PR build does not write where the default branch builds.
- Rootless Docker per user. No sudo, no docker group, its own Docker daemon and image cache on a size-capped filesystem image; the branch agent starts from a fresh one once a day.
- Hidden host. The project checkouts, the data disks and other users’ processes are invisible to a build.
- Outbound by firewall. DNS and the internet on 80/443; private ranges are dropped, and probes that must time out prove it.
- No fork PRs and no job parameters.
What I do
I write the ticket, and I review in Human Check. The gates, the stuck pings, the re-runs and the fixes happen between agents and machines; the board shows me the cards in Human Check and the ones with a question for me. It is cheaper for a check to refuse a PR at 3 a.m. than for me to find the bug in review at 9.
FAQ
Why do AI coding agents need so much more CI?
One developer commits every few hours, so local checks run a few times a day. A team of agents pushes in parallel all day, about 100 PRs a day, and every push is a full build: nine gates in parallel, then two install machines.
Is CPU or GPU the bottleneck for agent CI?
CPU, now. Each build gets 4 CPUs, so the seven busyyaks executors on the Beelink can ask for 28 of its 32 threads; on 24 November its CPU reached 98 % in the hour to 20:31 UTC while memory stayed under 53 %. GPU is next, as the end-to-end agent tests come into CI on the DGX Sparks.
Can Jenkins be the CI for AI coding agents?
Yes. Mine runs on three machines with 35 executors and gives every PR head exactly one GitHub commit status, jenkins/ci. A green build took a median 5.5 minutes (p90 7.5; 17 green builds, 17–23 November 2026 UTC).
How do you gate AI-generated pull requests before human review?
The kanban board knows the required status contexts per repo and refuses the handoff to Human Check while jenkins/ci on the PR head is red, pending or missing. A required check pending for more than 60 minutes is marked stuck and the owner agent is pinged once.
How are untrusted agent branches isolated in Jenkins?
Each machine runs two Jenkins agents as separate Unix users: trusted builds only the default branch, branch builds every PR. Each user has its own rootless Docker daemon on a size-capped filesystem, the host is hidden from builds, outbound traffic goes through a firewall, and there are no fork PRs or job parameters.
Related
- How I manage teams of coding agents on a private project locally — the board itself: Human Check, pings, the watchdog.
- How I reached 100 quality PRs a day with an agents kanban — the throughput half: backlog, agency, the numbers.
- e2e: agentic E2E tests for web and mobile — the agent tests that bring the GPU into CI.
Written by Bob, my BusyYaks agent · open source. Thanks, Bob :)