mirror of
https://github.com/mongodb/mongo.git
synced 2024-11-21 12:39:08 +01:00
SERVER-96904 Limit PPC build concurrency & enable remote cache (#29032)
GitOrigin-RevId: 692fcbd4b57fcaa97d48755bb306a26f584ffff7
This commit is contained in:
parent
0d8eab5b86
commit
5e1ed9aeba
@ -28,19 +28,13 @@ else
|
||||
echo "BAZELISK_HOME=${TMPDIR}/bazelisk_home" >> .bazeliskrc
|
||||
fi
|
||||
|
||||
# Setup the EngFlow credentials for Evergreen builds if remote execution is enabled.
|
||||
source ./evergreen/bazel_RBE_supported.sh
|
||||
uri="https://spruce.mongodb.com/task/${task_id:?}?execution=${execution:?}"
|
||||
|
||||
if bazel_rbe_supported; then
|
||||
|
||||
uri="https://spruce.mongodb.com/task/${task_id:?}?execution=${execution:?}"
|
||||
|
||||
echo "common --tls_client_certificate=./engflow.cert" >> .bazelrc.evergreen
|
||||
echo "common --tls_client_key=./engflow.key" >> .bazelrc.evergreen
|
||||
echo "common --bes_keywords=engflow:CiCdPipelineName=${build_variant:?}" >> .bazelrc.evergreen
|
||||
echo "common --bes_keywords=engflow:CiCdJobName=${task_name:?}" >> .bazelrc.evergreen
|
||||
echo "common --bes_keywords=engflow:CiCdUri=${uri:?}" >> .bazelrc.evergreen
|
||||
echo "common --bes_keywords=evg:project=${project:?}" >> .bazelrc.evergreen
|
||||
echo "common --remote_upload_local_results=True" >> .bazelrc.evergreen
|
||||
echo "common --workspace_status_command=./evergreen/engflow_workspace_status.sh" >> .bazelrc.evergreen
|
||||
fi
|
||||
echo "common --tls_client_certificate=./engflow.cert" >> .bazelrc.evergreen
|
||||
echo "common --tls_client_key=./engflow.key" >> .bazelrc.evergreen
|
||||
echo "common --bes_keywords=engflow:CiCdPipelineName=${build_variant:?}" >> .bazelrc.evergreen
|
||||
echo "common --bes_keywords=engflow:CiCdJobName=${task_name:?}" >> .bazelrc.evergreen
|
||||
echo "common --bes_keywords=engflow:CiCdUri=${uri:?}" >> .bazelrc.evergreen
|
||||
echo "common --bes_keywords=evg:project=${project:?}" >> .bazelrc.evergreen
|
||||
echo "common --remote_upload_local_results=True" >> .bazelrc.evergreen
|
||||
echo "common --workspace_status_command=./evergreen/engflow_workspace_status.sh" >> .bazelrc.evergreen
|
||||
|
@ -1128,7 +1128,7 @@ def generate(env: SCons.Environment.Environment) -> None:
|
||||
bazel_internal_flags.extend(formatted_options)
|
||||
|
||||
if normalized_arch not in ["arm64", "amd64"]:
|
||||
bazel_internal_flags.append("--config=local")
|
||||
bazel_internal_flags.append("--config=no-remote-exec")
|
||||
elif os.environ.get("USE_NATIVE_TOOLCHAIN"):
|
||||
print("Custom toolchain detected, using --config=local for bazel build.")
|
||||
bazel_internal_flags.append("--config=local")
|
||||
@ -1137,6 +1137,10 @@ def generate(env: SCons.Environment.Environment) -> None:
|
||||
# s390x systems don't have enough RAM to handle the default job count and will
|
||||
# OOM unless we reduce it.
|
||||
bazel_internal_flags.append("--jobs=3")
|
||||
elif normalized_arch == "ppc64le":
|
||||
# ppc64le builds are OOMing with default concurrency, but it's not clear if it's
|
||||
# an issue with the bazel client itself or in the compiler.
|
||||
bazel_internal_flags.append("--jobs=32")
|
||||
|
||||
public_release = False
|
||||
# Disable remote execution for public release builds.
|
||||
|
Loading…
Reference in New Issue
Block a user