From bf188c12cb8ad9164ab78564d142699fdc37efaa Mon Sep 17 00:00:00 2001 From: Googler Date: Thu, 27 Apr 2023 07:46:34 -0700 Subject: [PATCH] Fine tune the number of test jobs running in parallel to avoid timeout on Intel macOS platform After https://github.com/bazelbuild/continuous-integration/pull/1600, Bazel CI sets the default value of --local_test_jobs on macOS x86_64 platform to 18, which caused many tests to timeout: https://buildkite.com/bazel/bazel-bazel/builds/23062 RELNOTES: PiperOrigin-RevId: 527575401 Change-Id: I43ad0f74df4bf2f8c46c9e0b52b6ef62948040af --- .bazelci/postsubmit.yml | 2 ++ .bazelci/presubmit.yml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/.bazelci/postsubmit.yml b/.bazelci/postsubmit.yml index dbfdf15f0ebcb0..e4d5e07eadbfef 100644 --- a/.bazelci/postsubmit.yml +++ b/.bazelci/postsubmit.yml @@ -195,6 +195,8 @@ tasks: - "--test_env=TEST_REPOSITORY_HOME=$HOME/bazeltest/external" # Configure and enable tests that require access to the network. - "--test_env=REMOTE_NETWORK_ADDRESS=bazel.build:80" + # Fine tune the number of test jobs running in parallel to avoid timeout + - "--local_test_jobs=8" test_targets: - "//scripts/..." - "//src/test/..." diff --git a/.bazelci/presubmit.yml b/.bazelci/presubmit.yml index 8a30661c0cec6d..b45ef7fd8962fe 100644 --- a/.bazelci/presubmit.yml +++ b/.bazelci/presubmit.yml @@ -199,6 +199,8 @@ tasks: - "--test_env=TEST_REPOSITORY_HOME=$HOME/bazeltest/external" # Configure and enable tests that require access to the network. - "--test_env=REMOTE_NETWORK_ADDRESS=bazel.build:80" + # Fine tune the number of test jobs running in parallel to avoid timeout + - "--local_test_jobs=8" test_targets: - "//scripts/..." - "//src/main/starlark/tests/builtins_bzl/..."