Skip to content

Commit 5d12d39

Browse files
committed
ci: lower CPU requests and allocate 1.5G per CPU
This roughly matches what we do now in e.g. the FCOS pipeline and a few other places. Otherwise, we may hit against our memory limit and get evicted. See #3118 for more background info.
1 parent 3d742f1 commit 5d12d39

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.cci.jenkinsfile

+5-3
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@
22

33
// Build coreos-assembler image and create
44
// an imageStream for it
5-
def cpuCount = "8".toString()
6-
def imageName = buildImage(env: [ENABLE_GO_RACE_DETECTOR: "1", GOMAXPROCS: cpuCount], cpu: cpuCount)
5+
def cpuCount = 6
6+
def cpuCount_s = cpuCount.toString()
7+
def imageName = buildImage(env: [ENABLE_GO_RACE_DETECTOR: "1", GOMAXPROCS: cpuCount_s], cpu: cpuCount_s)
78

8-
pod(image: imageName + ":latest", kvm: true, cpu: cpuCount, memory: "10Gi") {
9+
def memory = (cpuCount * 1536) as Integer
10+
pod(image: imageName + ":latest", kvm: true, cpu: "${cpuCount}", memory: "${memory}Mi") {
911
checkout scm
1012

1113
stage("Unit tests") {

0 commit comments

Comments
 (0)