Skip to content

Commit f4a2760

Browse files
[CI] Run Linux Buildbot Pods on Buildbot Nodes
This patch updates dispatch_job.py to actually run the nodes that the buildbot worker spawns on the buildbot nodes. Otherwise they default to the service nodes which only have four cores. Overloading the service nodes could also easily become a problem.
1 parent 974e8fe commit f4a2760

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

zorg/buildbot/builders/annotated/premerge/dispatch_job.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,24 @@ def start_build(k8s_client, pod_name: str, namespace: str, commands: list[str])
4242
"namespace": namespace,
4343
},
4444
"spec": {
45+
"tolerations": [
46+
{
47+
"key": "buildbot-platform",
48+
"operator": "Equal",
49+
"value": "linux",
50+
"effect": "NoSchedule",
51+
}
52+
],
53+
"nodeSelector": {"buildbot-platform": "linux"},
4554
"containers": [
4655
{
4756
"name": "build",
4857
"image": "ghcr.io/llvm/ci-ubuntu-24.04",
4958
"command": commands,
59+
"resources": {
60+
"requests": {"cpu": 55, "memory": "200Gi"},
61+
"limits": {"cpu": 64, "memory": "256Gi"},
62+
},
5063
}
5164
],
5265
"restartPolicy": "Never",

0 commit comments

Comments
 (0)