Repository navigation
Reduce parallelism and use supported machine type for makestage - #189
Conversation
cert-manager/cert-manager#7307 Assuming that the build failures are caused by OOM so testing whether reducing the parallelism might reduce the peak memory. Signed-off-by: Richard Wall <[email protected]>
2058bf0 to
e19ed6b
Compare
| # https://cert-manager.io/docs/contributing/release-process/ | ||
|
|
||
| ## Clone & checkout the cert-manager repository | ||
| timeout: 2700s # 45m |
There was a problem hiding this comment.
|
|
||
| ## Build release artifacts and push to a bucket | ||
| - name: 'eu.gcr.io/jetstack-build-infra-images/bazelbuild:${_BUILDER_IMAGE_TAG}' | ||
| - name: 'europe-west1-docker.pkg.dev/cert-manager-tests-trusted/cert-manager-infra-images/make-dind:${_BUILDER_IMAGE_TAG}' |
There was a problem hiding this comment.
| _KMS_KEY: "projects/cert-manager-release/locations/europe-west1/keyRings/cert-manager-release/cryptoKeys/cert-manager-release-signing-key/cryptoKeyVersions/1" | ||
| _RELEASE_TARGET_BUCKET: "cert-manager-release" | ||
| _BUILDER_IMAGE_TAG: "20220629-ee75d11-4.2.1" | ||
| _BUILDER_IMAGE_TAG: "20240422-6b43e85-bookworm" |
There was a problem hiding this comment.
To match cert-manager:
| machineType: n1-highcpu-32 | ||
| # https://cloud.google.com/build/docs/optimize-builds/increase-vcpu-for-builds | ||
| # https://cloud.google.com/build/pricing | ||
| machineType: E2_HIGHCPU_32 |
There was a problem hiding this comment.
N1_HIGHCPU_32 is still supported, but the official list of machine types suggests E2_HIGHCPU_32 instead.
There was a problem hiding this comment.
If this file is an exact copy of the config in cert-manager/cert-manager, could you add that in a comment?
There was a problem hiding this comment.
It's not an exact copy. The Git checkout part is simpler in cert-manager/cert-manager,
I assume that's because GCB can know which repo and branch to use based on a webhook request from GitHub?
I will update the comment to explain that this is a slightly modified version of the other file.
Signed-off-by: Richard Wall <[email protected]>
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: inteon The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Fixes: cert-manager/cert-manager#7307
Assuming that the build failures are caused by OOM so testing whether reducing the parallelism might reduce the peak memory.
Testing
I ran
cmrel makestagewith this version of the cloudbuild.yaml file, and it succeeded.