CI/CD
CI jobs queued forever, with no errors in the logs
Our self-hosted GitHub Actions runners on Kubernetes disappeared overnight, twice, three months apart. Later, a different runner started failing builds at what looked like random.
- Stack
- GitHub Actions, Actions Runner Controller (scale-set mode), Amazon EKS, Helm, ECR, Jenkins
- My role
- Root cause, the fix and the upgrade pipeline
- Outcome
- Runner upgrades are now a weekly planned job instead of a surprise outage.
What people saw
One morning, every workflow using our self-hosted runner labels sat in “Queued”. There were no runner pods. The controller’s logs had no error lines at all.
What actually happened
GitHub enforces a minimum version for the Actions runner, and that minimum keeps moving. Our runner image was built once and reused, so the runner inside it eventually fell below the minimum. From there, the controller takes the fleet down step by step:
- Runner startsIt registers with GitHub, then exits with code 7.
- Controller reactsARC marks that ephemeral runner
Outdated. - Scale set followsThe AutoscalingRunnerSet moves to
phase: Outdated. - Fleet removedThe controller deletes the listeners, the runner sets and the scale set on GitHub’s side. With zero pods, every job stays queued.
The only clues are info-level log lines such as “Ephemeral runner set is outdated”. If you only search for errors, you won’t find them.
Why the first fix didn’t last
The first time, we rebuilt the image and ran helm upgrade. That worked, until it happened again three months later, because the process that caused it hadn’t changed. There was a second trap too. Pushing a fixed image under the same mutable tag (:latest) doesn’t change the scale set’s spec hash. So the controller keeps the phase at Outdated even after the image is fixed.
The durable fix
- Immutable image tags in the form
<flavor>-<runner-version>-<git-sha>, so every rebuild is a real spec change that the controller can see. - A weekly pipeline that compares the runner version in each image with GitHub’s latest release and reports any drift. When run with apply set, it builds, pushes and runs
helm upgradeon every scale set. - A read-only health check that reports each scale set’s phase and the date of each image’s base layer, read from ECR.
There was one snag. The build agent’s old AWS CLI wrote kubeconfig credentials using an API version that kubectl no longer accepts. So the pipeline writes its own token-based kubeconfig.
A second, unrelated failure
Weeks later, a pull request validation workflow started failing “randomly” during npm install. Every failure was on the same machine: a legacy VM runner that still had the same label as the Kubernetes scale set. The VM had g++ 9, and Node 24’s native module build needs C++20. Whenever the VM was idle, it picked up a job and failed it.
It got worse through the day. A dependency change had invalidated the node_modules cache. Builds on the base branch also landed on the VM and failed, so the cache never got rebuilt. Every pull request missed the cache, compiled from source, and had a chance of landing on the broken machine.
The fix was to remove the shared label from the VM, or upgrade its compiler, and then rebuild the base-branch cache. I also checked the history first, because another VM that looked like a leftover was actually serving a different, active label. It wasn’t touched.
What I’d add next
- An alert when jobs sit in the queue for more than a few minutes, or when a scale set’s phase changes to
Outdated, so the next one pages someone instead of waiting for a developer to notice. - Upgrade the build agent’s AWS CLI rather than working around it. The token-based kubeconfig works, but it’s one more thing to remember.
What I took from it
- A label is a routing rule. Anything that carries it will take jobs.
- Mutable tags hide changes from controllers that compare specs.
- Anything that “just has to be upgraded sometimes” needs a scheduled job, or it becomes an incident.
- For a failure that looks random, check which runner ran the job before reading the code.