Skip to content

Commit a5b4c62

Browse files
authored
fix(build?): limit GOMAXPROCS for build-and-stage (google#5568)
build-and-stage memory issues. Possibly due to too many parallel go builds. Try limit GOMAXPROCS so that the builds aren't so hungry. I'm not sure if this will fix - it's unclear how `go build` specifically treats the env var.
1 parent bf5974d commit a5b4c62

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

deployment/build-and-stage.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -402,8 +402,6 @@ steps:
402402
args: ['buildx', 'build', '--build-arg', 'BUILDKIT_INLINE_CACHE=1',
403403
'-t', 'gcr.io/oss-vdb/osv-website:latest', '-t', 'gcr.io/oss-vdb/osv-website:$COMMIT_SHA',
404404
'-f', 'gcp/website/Dockerfile', '--cache-from', 'gcr.io/oss-vdb/osv-website:latest', '--pull', '.']
405-
env:
406-
- BUILDKIT_PROGRESS=plain
407405
id: 'build-website'
408406
waitFor: ['pull-website', 'build-first-package-finder']
409407
- name: 'gcr.io/cloud-builders/docker'
@@ -491,6 +489,9 @@ serviceAccount: 'projects/oss-vdb/serviceAccounts/deployment@oss-vdb.iam.gservic
491489
logsBucket: gs://oss-vdb-tf/apply-logs
492490
options:
493491
machineType: E2_HIGHCPU_32
492+
env:
493+
- BUILDKIT_PROGRESS=plain
494+
- GOMAXPROCS=8
494495

495496
tags: ['build-and-stage']
496497

0 commit comments

Comments
 (0)