From 689964aa00e97a57a4659395d96293bdb20cdd32 Mon Sep 17 00:00:00 2001 From: Jan-Erik Rediger Date: Wed, 1 Jun 2022 10:12:45 +0200 Subject: [PATCH] Run up to 6 jobs to avoid memory exhaustion Recent Rust/Cargo changed detection of available cores, which is probably the cause of earlier CPU/memory exhaustion kills. By manually limiting it to 6 jobs we stay within the limits, while keeping about the same runtime. Upstream bug: https://github.com/rust-lang/rust/issues/97549 --- .circleci/config.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index fdf87fe4a3..a5abb3ea81 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -60,12 +60,14 @@ commands: rust-version: <> - run: name: Test - command: GLEAN_TEST_COVERAGE=$(realpath glean_coverage.txt) cargo test --all --verbose -- --nocapture + command: | + export GLEAN_TEST_COVERAGE=$(realpath glean_coverage.txt) + cargo test --all --verbose --jobs 6 -- --nocapture - run: name: Test Glean with rkv safe-mode command: | cd glean-core - cargo test -p glean-core --features rkv-safe-mode -- --nocapture + cargo test -p glean-core --features rkv-safe-mode --jobs 6 -- --nocapture - run: name: Upload coverage report command: |