From 74c4fe10e9b6ebc4d8816936f6f2939bfd2daa92 Mon Sep 17 00:00:00 2001 From: Greg Magolan Date: Sat, 15 Feb 2020 02:01:05 -0800 Subject: [PATCH] build: optimize integration tests on CI (#33927) PR Close #33927 --- integration/BUILD.bazel | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/integration/BUILD.bazel b/integration/BUILD.bazel index b885ca4dbe..4cd4a1d198 100644 --- a/integration/BUILD.bazel +++ b/integration/BUILD.bazel @@ -24,8 +24,20 @@ load(":angular_integration_test.bzl", "angular_integration_test") # A subset of these tests fail or are not meant to be run with ivy bundles. These are tagged # "no-ivy-aot". INTEGRATION_TESTS = { - "bazel": ["no-ivy-aot"], - "bazel-schematics": ["no-ivy-aot"], + "bazel": [ + # Bazel-in-bazel tests are resource intensive and should not be over-parallized + # as they will compete for the resources of other parallel tests slowing + # everything down. Ask Bazel to allocate multiple CPUs for these tests with "cpu:n" tag. + "cpu:3", + "no-ivy-aot", + ], + "bazel-schematics": [ + # Bazel-in-bazel tests are resource intensive and should not be over-parallized + # as they will complete for the resources of other parallel tests slowing + # everything down. Ask Bazel to allocate multiple CPUs for these tests with "cpu:n" tag. + "cpu:3", + "no-ivy-aot", + ], "cli-hello-world": [], "cli-hello-world-ivy-compat": [], "cli-hello-world-ivy-i18n": ["no-ivy-aot"],