[fixit] Scale down large tests (#30683)

* [fixit] Scale down large tests

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.

* mark up cpu usage

* Automated change: Fix sanity tests

Co-authored-by: ctiller <ctiller@users.noreply.github.com>
pull/30700/head
Craig Tiller 2 years ago committed by GitHub
parent 0580c0e96d
commit 708259dc90
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      test/core/event_engine/test_suite/BUILD
  2. 2
      test/core/event_engine/test_suite/client_test.cc

@ -121,6 +121,7 @@ grpc_cc_library(
srcs = ["oracle_event_engine_posix.cc"],
hdrs = ["oracle_event_engine_posix.h"],
tags = [
"cpu:10",
"no_windows",
],
deps = [

@ -170,7 +170,7 @@ TEST_F(EventEngineClientTest, ConnectExchangeBidiDataTransferTest) {
TEST_F(EventEngineClientTest, MultipleIPv6ConnectionsToOneOracleListenerTest) {
grpc_core::ExecCtx ctx;
static constexpr int kNumListenerAddresses = 10; // N
static constexpr int kNumConnections = 100; // M
static constexpr int kNumConnections = 10; // M
auto oracle_ee = this->NewOracleEventEngine();
auto test_ee = this->NewEventEngine();
auto memory_quota = std::make_unique<grpc_core::MemoryQuota>("bar");

Loading…
Cancel
Save