Skip to content

Commit

Permalink
ci: lower CPU requests and allocate 1.5G per CPU
Browse files Browse the repository at this point in the history
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 coreos#3118 for more
background info.
  • Loading branch information
jlebon committed Oct 12, 2022
1 parent 3d742f1 commit 5d12d39
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .cci.jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@

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

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

stage("Unit tests") {
Expand Down

0 comments on commit 5d12d39

Please sign in to comment.