This document lists past issues that could be of interest if you encounter issues with the cluser/presubmit.
It was reported that sccache was erroring out on startup specifically on Windows nodes with logs looking like the following:
++ sccache --zero-stats sccache: error: Timed out waiting for server startup. Maybe the remote service is unreachable? Run with SCCACHE_LOG=debug SCCACHE_NO_DAEMON=1 to get more information
The investigation is largely chronicled in this issue.
There were a couple red herrings that were discovered initially, including issues filed against upstream sccache that are still open that were related to an earlier LLVM premerge setup.
Eventually it was noted that the issue was related to the in-cluster GKE metadata server pods timing out on requests. It was also eventually noted that the outage occurred during a GKE update window, and it was later confirmed that a GKE upgrade occurred around the time the outage started by looking at the GKE cluster logs.
Some release notes mentioned metadata server changes, although in a version farther ahead than the one that we updated to.
Given the GKE cluster upgrade was the likely culprit, a roll forward of the GKE version was attempted. This involved updating the cluster control plane and then the Windows node pool of each cluster through the GKE UI. Once it was verified that this fixed the us-west cluster, the us-central cluster was then updated.
We noticed GitHub jobs were failing, and the logs showed hostname lookup failed for github.com.
Initial steps were to check the github status page. No outages. Then, we checked internal incident page. No outages.
Then we looked at the instance logs. When a node fails, GCP removes it, meaning the logs are not accessible from the node page anymore, but can be retrieved either in the global logs.
Looking at the logs, we discovered other services failing to resolve hostname, like the metrics container.
In Kubernetes, each cluster runs a kube-dns service/pod, which is used by other pods to do DNS requests. This pod was crashing.
Looking at the node this pod was running on showed a RAM usage close to the VM limits. At the time, the service instances were running on e2-small VMs, which only have 2GB of RAM. In addition, we recently added more runner nodes by adding a new Windows pool. This meant cluster size increased. This caused the cluster management services to take more resources to run, and pushed us just above the 2GB limit.
This causes the kube-dns service to be OOM killed, and then caused various DNS failures in the cluster.
Change the shape of the service pool to be e2-highcpu-4, doubling the RAM and CPU budget. We also increased the pool size from 2 to 3.
The LLVM dashboard was showing empty graphs for the presubmit job runtime and queue time. Autoscaling graphs were still working.
The graphs were empty because no new metrics were received, but other GCP metrics were still showing. Our dashboard has multiple data source:
Because we had GCP metrics, it meant the Grafana instance was working, and the Grafana Alloy component running in the cluster was also fine.
It was probably the metrics container. We checked the heartbeat metric: metrics_container_heartbeat. This is a simple ping recorded every minutes by the container. If this metrics stops emitting, it means something is wrong with the job. This metric was still being recorded.
A recent change was made to add the windows version of the premerge check. This caused the job name to change, and thus changed the recorded metric names from llvm_premerge_checks_linux_run_time to llvm_premerge_checks_premerge_checks_linux_run_time.
Change the dashboards to read the new metric name instead of the previous name, allowing new data to be shown. SLO definitions and alerts also had to be adjusted to look at the new metrics.
The LLVM dashboard was showing empty graphs for the presubmit job runtime and queue time. Autoscaling graphs were still working.
Grafana was still recording GCP metrics, but no new data coming from the metrics container.
A quick look at the google cloud console showed the metrics container pod was crashing. Looking at the logs, we saw the script failed to connect to GitHub to get the workflow status. Reason was a bad GitHub token.
Because we have no admin access to the GitHub admin organization, we cannot emit LLVM owned tokens. A Googler had used its personal account to setup a PAT token. This token expired in December, causing the metrics container to fail since.
Another Googler generated a new token, and replaced it in Menu > Security > Secrets Manager > llvm-premerge-github-pat. Note: this secret is in the general secret manager, not in Kubernetes Engine > Secrets & ConfigMaps.
Once the secret updated, the metrics container had to be restarted:
Menu > Kubernetes Engine > Workflowsmetrics.Rolling update100%, the click update.This will allow GCP to delete the only metrics container pod, and recreate it using the new secret value. Because we have a single metrics container instance running, we have to but all thresholds to 100%.
In addition, we added a heartbeat metric to the container, and Grafana alerting to make sure we detect this kind of failure early.
The LLVM dashboard showed that there was a large queue of linux jobs but only two runners actively processing jobs rather than the runner count limit of 8.
Initial investigation involved checking the cluster, which also showed only two runner pods working. The logs of the linux runner scale set controller were inspected which showed it was only scaling up to two pods. The runner scale set controller pod was then deleted to try and rectify the situation along with a version upgrade of the ARC Helm charts. This resulted in the linux controller not coming back up.
The Linux runner scale set was uninstalled using the instructions. This resulted in all Linux runners quickly coming back online. The windows runner set had also stopped accepting jobs at this point, presumed to be due to prodding while investigating the Linux issues. The issue on the Windows side was fixed in the same way, by uninstalling the helm charts, deleting dangling resources, deleting the namespaces, and then reinstalling the helm charts.
We ended up running into this issue several more times, hitting an instance once every couple of weeks.
After some further investigation, it turns out this is mostly intended behavior of Github ARC. When a ephemeralrunner object fails to start more than five times, it goes into a failure state permanently with the idea that manual intervention and notification is beneficial. Simply deleting the failed epehemralrunner objects allows Github ARC to recreate them where they schedule normally. This is how later incidents were resolved.
These runners are most likely failing due to image pull failures which was one of our original hypotheses on the issue. Recent changes to Github ARC in https://github.com/actions/actions-runner-controller/pull/4059 should help with this issues, although further testing is needed.
Before that patch makes it into a release, an important maintenance step is to periodically (every couple of days should be fine) go through and delete failed ephemeralrunner instances. This can be done by looking at all epehemralrunner instances and then deleting any that are failed. To get the list of runners, run the following command:
kubectl get ephemeralrunner --all-namespaces
this will produce an output like the following:
NAMESPACE NAME GITHUB CONFIG URL RUNNERID STATUS JOBREPOSITORY JOBWORKFLOWREF WORKFLOWRUNID JOBDISPLAYNAME MESSAGE AGE llvm-premerge-linux-runners llvm-premerge-linux-runners-dhdwg-runner-kbh9v https://github.com/llvm 434949 Running llvm/llvm-project llvm/llvm-project/.github/workflows/premerge.yaml@refs/pull/141711/merge 3m4s llvm-premerge-windows-runners llvm-premerge-windows-runners-4pgkh-runner-4wv5w https://github.com/llvm 434901 Running llvm/llvm-project llvm/llvm-project/.github/workflows/premerge.yaml@refs/pull/141601/merge 64m llvm-premerge-windows-runners llvm-premerge-windows-runners-4pgkh-runner-92hgr https://github.com/llvm 434557 Failed Pod has failed to start more than 5 times: 7h18m llvm-premerge-windows-runners llvm-premerge-windows-runners-4pgkh-runner-9jrtj https://github.com/llvm 434898 Running llvm/llvm-project llvm/llvm-project/.github/workflows/premerge.yaml@refs/pull/140937/merge 69m llvm-premerge-windows-runners llvm-premerge-windows-runners-4pgkh-runner-d2bbd https://github.com/llvm 434941 Running llvm/llvm-project llvm/llvm-project/.github/workflows/premerge.yaml@refs/pull/141965/merge 19m llvm-premerge-windows-runners llvm-premerge-windows-runners-4pgkh-runner-f7gzn https://github.com/llvm 434924 Running llvm/llvm-project llvm/llvm-project/.github/workflows/premerge.yaml@refs/pull/141966/merge 39m llvm-premerge-windows-runners llvm-premerge-windows-runners-4pgkh-runner-l6v2k https://github.com/llvm 434948 3m4s llvm-premerge-windows-runners llvm-premerge-windows-runners-4pgkh-runner-lvt4f https://github.com/llvm 434923 Running llvm/llvm-project llvm/llvm-project/.github/workflows/premerge.yaml@refs/pull/141151/merge 39m llvm-premerge-windows-runners llvm-premerge-windows-runners-4pgkh-runner-rbtpz https://github.com/llvm 434944 Running llvm/llvm-project llvm/llvm-project/.github/workflows/premerge.yaml@refs/pull/137727/merge 11m llvm-premerge-windows-runners llvm-premerge-windows-runners-4pgkh-runner-vc5k4 https://github.com/llvm 434916 Running llvm/llvm-project llvm/llvm-project/.github/workflows/premerge.yaml@refs/pull/141963/merge 56m
Notice that one of the runners has failed. It can be claned up by running the following command (note that we also specify the namespace the runner is in):
kubectl delete ephemeralrunner llvm-premerge-windows-runners-4pgkh-runner-92hgr -n llvm-premerge-windows-runners
That command should execute quickly and will clean it up.
IMPORTANT: These steps need to be peformed separately on both llvm-premerge-cluster-us-central and llvm-premerge-us-west. You can switch between them using the standard gcloud authentication commands. For llvm-premerge-cluster-us-central you would run:
gcloud container clusters get-credentials llvm-premerge-cluster-us-central --location us-central1-a
and the following for llvm-premerge-cluster-us-west:
gcloud container clusters get-credentials llvm-premerge-cluster-us-west --location us-west1
The us-west cluster stopped running any jobs around 19:00 PST on 2025-09-29. This manifested as Grafana reporting near zero node counts. Looking at the pods scheduled on the cluster showed that there the buildbot pods were working correctly, but no Github Actions jobs were running. Checking the llvm-premerge-cluster-us-west runner group showed that no jobs were getting assigned to that cluster.
The initial investigation started with the assumption that the Github Actions Runner Controller listener pods/controller pod were misbehaving. There were some errors in the pod logs that turned out to be red herrings (handled gracefully and common to both the functional and non-functional clusters). The runner sets/controller were uninstalled and reinstalled twice, resulting in no behavior change.
There were also several attempts to see if our workflows definitions in the monorepo were at fault. We tried several several approaches listed in https://github.com/orgs/community/discussions/120813, especially around explicitly specifying groups. We were able to run jobs on the us-west cluster when explicitly specifying the group, but not restore the job distribution functionality.
When looking at the runner group configurations (https://github.com/organizations/llvm/settings/actions/runner-groups, requires CI/CD admin acess to the LLVM organization), it was noticed that the llvm-premerge-cluster-us-west runner group was not enabled on any repositories. Flipping this back to what it was before (enabled on all repositories in the LLVM organization) ended up resolving the issue.
What worked well:
What needs improvement:
Lessons/Action Items:
The LLVM CI Rotation oncall was getting messages with the following message:
Workflow completed under 50mn in the last 7 days - Error Budget Burn Rate is High
By looking at the dashboard it was observed that the Linux premerge run time was consistent, but the queue time was sporadically quite high (1+ hours when it normally hovers <1 minute).
After digging into the data, it was observed that the high queue times were specific to the us-central cluster and the us-west cluster was not degraded. By digging into k8s events of pending pods on the us-central cluster, it was observed that the node pools were not autoscaling up due to GCE being out of resources.
We deployed a stop-gap in https://github.com/llvm/llvm-project/pull/217111 to move all jobs to the us-west cluster to lower the queue delays. No other remediations were immediately possible due to the fact that GitHub does all job scheduling on the server side and it is not user configurable.
A more permanent solution was deployed in https://github.com/llvm/llvm-zorg/pull/914 to move the us-central cluster from a zonal cluster to a regional cluster. This makes the cluster the same configuration as the us-west cluster and thus immune to single/multi-zone stockouts that do not impact the entire region.
What worked well:
What needs improvement:
Lessons/Action Items
The LLVM CI Rotation oncall was again getting emails with the following message:
Workflow completed under 50mn in the last 7 days - Error Budget Burn Rate is High
Run times were reasonably consistent while queue times were very elevated and a significant fraction of jobs were queueing.
Some initial investigation by LLVM community members showed a very large PR stack (33 total PRs) being put up at around the same time problems started. Given the previous incident, we looked at pod scheduling in the us-central cluster and saw that no jobs on n2 machines were scheduling with the pods displaying GCE out of resources errors.
We initially tried removing CPU microarchitecture pinning in https://github.com/llvm/llvm-zorg/commit/df3cb677658d70b6c1e224d6a37f5568feabe55c to try and give the GCE scheduler more flexibility in where it placed our jobs. This did not help much. We eventually ended up reverting that patch in https://github.com/llvm/llvm-zorg/commit/fc468e71dbcc15f87561d38bf3800a8a02a91d35 but set the pinned CPU microarchitecture for n2 machines to Cascade Lake rather than Ice Lake. While the inner workings of the GCE scheduler are opaque, it seems like it will prioritize scheduling on newer microarchitectures if they are available, to the point of not scheduling at all if no newer machines are available.
Setting the pinned CPU microarchitecture to Cascade Lake rectified the problem and the backlog of jobs cleared out quickly after making the change and we have not observed any issues related to GCE stockouts since applying the change.
What worked well:
What needs improvement:
n4/n4d) in various regions, but all of our quota increase requests were auto-rejected.us-west cluster was running at maximum capacity during peak load events during this incident.Action Items