From 264fd4f1530fa4da1bee4712ae1da5683c49dff1 Mon Sep 17 00:00:00 2001 From: Josh Lind Date: Mon, 4 Nov 2024 09:27:52 -0500 Subject: [PATCH] [Unit tests] Decrease concurrency. --- .config/nextest.toml | 2 ++ devtools/aptos-cargo-cli/src/lib.rs | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.config/nextest.toml b/.config/nextest.toml index 0bf471db4f7d5..3da81642064a4 100644 --- a/.config/nextest.toml +++ b/.config/nextest.toml @@ -5,6 +5,8 @@ status-level = "skip" failure-output = "immediate-final" # Cancel test run on the first failure. Accounts for retries. fail-fast = true +# Mark each test as requiring 3 threads. This avoids starvation (e.g., due to heavy tests that spawn additional threads). +threads-required = 3 junit = { path = "junit.xml" } diff --git a/devtools/aptos-cargo-cli/src/lib.rs b/devtools/aptos-cargo-cli/src/lib.rs index 4dea19a6ec0f9..ef60d955f38d2 100644 --- a/devtools/aptos-cargo-cli/src/lib.rs +++ b/devtools/aptos-cargo-cli/src/lib.rs @@ -457,7 +457,7 @@ fn run_targeted_compiler_v2_tests( Ok(()) } -/// Runs the targeted unit tests +/// Runs the targeted unit tests! fn run_targeted_unit_tests( packages_to_test: Vec, mut direct_args: Vec,