From aef59d7b1f6eb90ee12c98b2888a1c8f688c37f7 Mon Sep 17 00:00:00 2001 From: Craig Tiller Date: Mon, 22 Aug 2022 10:06:42 -0700 Subject: [PATCH] [fixit] Scale down large tests (#30687) We have many tests that create 100 threads or more, and mounting evidence that this is harmful to our CI environment. When the original code for many of these tests was written we ran our tests under run_tests, which had explicit handling for tracking the number of threads each test needed and making sure that we weren't over subscribing the test runner. Bazel has no such facility (and the facility in run_tests has since been removed) and so we need to adjust. This PR adjusts down a single test and is part of a series so that we can review and roll back easily if required. --- test/core/client_idle/idle_filter_state_test.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/core/client_idle/idle_filter_state_test.cc b/test/core/client_idle/idle_filter_state_test.cc index 823bb31b8a9..ff7f23a5656 100644 --- a/test/core/client_idle/idle_filter_state_test.cc +++ b/test/core/client_idle/idle_filter_state_test.cc @@ -58,7 +58,7 @@ TEST(IdleFilterStateTest, StressTest) { int idle_polls = 0; int thread_jumps = 0; std::vector threads; - for (int idx = 0; idx < 100; idx++) { + for (int idx = 0; idx < 10; idx++) { std::thread t([&] { int ctr = 0; auto increase = [&] {