blob: c8e966dda93cfd23458232a01478f22543f2cc2b [file] [view] [edit]
# Past Issues
This document lists past issues that could be of interest if you encounter
issues with the cluser/presubmit.
## Windows Premerge Jobs are Failing on sccache startup
### Date: 2025-06-05
### Symptoms:
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
```
### Investigation
The investigation is largely chronicled in
[this issue](https://github.com/llvm/llvm-project/issues/202255).
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.
### Solution
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.
## Workflows are failing: DNS resolution of github.com fails.
### Date: 2025-01-27
### Symptoms:
We noticed GitHub jobs were failing, and the logs showed `hostname lookup
failed for github.com`.
### Investigation
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.
### Solution
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.
## LLVM dashboard graphs are empty for presubmits
### Date: 2025-01-28
### Symptoms
The LLVM dashboard was showing empty graphs for the presubmit job runtime and
queue time. Autoscaling graphs were still working.
### Investigation
The graphs were empty because no new metrics were received, but other GCP
metrics were still showing.
Our dashboard has multiple data source:
- the GCP cluster.
- the metrics container.
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`.
### Solution
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.
## LLVM dashboard graphs are empty for run/queue times
### Date: 2025-01-10
### Symptoms
The LLVM dashboard was showing empty graphs for the presubmit job runtime and
queue time. Autoscaling graphs were still working.
### Investigation
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.
### Solution
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 > Workflows`
- select `metrics`.
- click `Rolling update`
- set all thresholds to `100%`, 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.
## Linux Runner Set Not Scaling
### Date: 2025-03-31
### Symptoms
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.
### Investigation
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.
### Solution
The Linux runner scale set was uninstalled using the
[instructions](cluster-management.md#upgradingresetting-github-arc). 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.
### Postmortem
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:
```bash
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):
```bash
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:
```bash
gcloud container clusters get-credentials llvm-premerge-cluster-us-central --location us-central1-a
```
and the following for `llvm-premerge-cluster-us-west`:
```bash
gcloud container clusters get-credentials llvm-premerge-cluster-us-west --location us-west1
```
## US-West Cluster Not Running Jobs
### Date: 2025-09-29 to 2025-10-06
### Symptoms
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.
### Investigation
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.
### Solution
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.
### Postmortem
What worked well:
- The HA configuration ensured there was no user visible outage during this time.
What needs improvement:
- The investigation focused on the issue being within the runner set listeners/
ARC controller which turned out to be incorrect.
- A trivial misconfiguration took a significant amount of time to noitce.
Lessons/Action Items:
- Look into enforcing configurations through IaaC (Infrastructure as code, like
terraform) rather than buried in the Github UI where they can be changed without
knowing.
- Focus the investigation on validating assumptions/trying to understand where the
problem is rather than starting with an assumption.
- Buildbots being mixed into the Github Actions node count on Grafana caused
confusion around whether or not Github jobs were scheduling. An attempt should
be made to separate them.
## US-Central Cluster Not Scheduling Pods
### Date: 2026-08-16
### Symptoms
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).
### Investigation
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.
### Solution
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.
### Postmortem
What worked well:
- The automation alerted the current oncall.
- We were able to deploy a stop-gap fix to remediate the problem once we were aware.
What needs improvement:
- By the time we became aware of the issue, it had been ongoing for at least the day.
Lessons/Action Items
- Stop-gap solutions are generally pretty easy to deploy and efforts should probably
be prioritized on getting one deployed to stop the bleeding.
## US-Central Cluster Not Scheduling Pods (Part 2)
### Date: 2026-09-21
### Symptoms
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.
### Investigation
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.
### Solution
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.
### Postmortem
What worked well:
- The automation alerted the current oncall.
What needs improvement:
- The system was degraded for a long period of time (several business days)
which increased the latency for changes to land and also led to a significant
increase in PRs merged without CI checks.
- We spent a lot of time looking at alternative solutions that ended up
leading nowhere. Specifically, we looked at trying to get additional quota
for different machine types (`n4`/`n4d`) in various regions, but all of our
quota increase requests were auto-rejected.
- No stop-gap solution was possible this time because the `us-west` cluster
was running at maximum capacity during peak load events during this incident.
Action Items
- Get quota on newer machines. Cascade Lake is old and a lot slower than newer
microarchitectures. We likely took a premerge latency hit by moving from
Ice Lake to Cascade Lake. Ideally we also want more quota than we need so
if we do need to shift load between clusters we have the ability to do so.