Skip to content

Commit 3cbfefc

Browse files
committed
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: rust-lang/rust#97549
1 parent 9a9d6e2 commit 3cbfefc

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.circleci/config.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,14 @@ commands:
6060
rust-version: <<parameters.rust-version>>
6161
- run:
6262
name: Test
63-
command: GLEAN_TEST_COVERAGE=$(realpath glean_coverage.txt) cargo test --all --verbose -- --nocapture
63+
command: |
64+
export GLEAN_TEST_COVERAGE=$(realpath glean_coverage.txt)
65+
cargo test --all --verbose --jobs 6 -- --nocapture
6466
- run:
6567
name: Test Glean with rkv safe-mode
6668
command: |
6769
cd glean-core
68-
cargo test -p glean-core --features rkv-safe-mode -- --nocapture
70+
cargo test -p glean-core --features rkv-safe-mode --jobs 6 -- --nocapture
6971
- run:
7072
name: Upload coverage report
7173
command: |

0 commit comments

Comments
 (0)