Skip to content

Commit 7fa84e0

Browse files
committed
hack: drop hardcoded -j8 in make invocations.
Parallel builds can be achieved by setting the MAKEFLAGS env var. Hardcoding the value is causing some container builds to fail in CI with ``` { error occurred handling build openstack-installer-amd64: build not successful after 5 attempts: [the build openstack-installer-amd64 failed after 7m36s with reason BuildPodEvicted: The node was low on resource: memory. Threshold quantity: 100Mi, available: 65128Ki. Container docker-build was using 10522940Ki, request is 5Gi, has larger consumption of memory. , the build openstack-installer-amd64 failed after 6m31s with reason BuildPodEvicted: The node was low on resource: memory. Threshold quantity: 100Mi, available: 53452Ki. Container docker-build was using 10936476Ki, request is 5Gi, has larger consumption of memory. ```
1 parent e192aa1 commit 7fa84e0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hack/build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,13 @@ MODE="${MODE:-release}"
4444
# Build terraform binaries before setting environment variables since it messes up make
4545
if test "${SKIP_TERRAFORM}" != y && ! (echo "${TAGS}" | grep -q -e 'aro' -e 'altinfra')
4646
then
47-
make -j8 -C terraform all
47+
make -C terraform all
4848
copy_terraform_to_mirror # Copy terraform parts to embedded mirror.
4949
fi
5050

5151
# build cluster-api binaries
5252
if [ -n "${OPENSHIFT_INSTALL_CLUSTER_API}" ]; then
53-
make -j8 -C cluster-api all
53+
make -C cluster-api all
5454
copy_cluster_api_to_mirror
5555
fi
5656

0 commit comments

Comments
 (0)