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 8, 2022
1 parent 9a9d6e2 commit 3cbfefc
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 3cbfefc

Please sign in to comment.