Skip to content

Commit

Permalink
Run up to 6 jobs to avoid memory exhaustion
Browse files Browse the repository at this point in the history
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
  • Loading branch information
badboy committed Jun 13, 2022
1 parent e569b1e commit 689964a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,14 @@ commands:
rust-version: <<parameters.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: |
Expand Down

0 comments on commit 689964a

Please sign in to comment.