From e5f59939cc788f32290c987aa4c1316f46eafee2 Mon Sep 17 00:00:00 2001 From: Jacob Lifshay Date: Tue, 15 Oct 2024 23:51:41 -0700 Subject: [PATCH] remove now-unnecessary memory-based parallelism limiting --- .forgejo/workflows/test.yml | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/.forgejo/workflows/test.yml b/.forgejo/workflows/test.yml index f3fe5db..38b7c9a 100644 --- a/.forgejo/workflows/test.yml +++ b/.forgejo/workflows/test.yml @@ -70,12 +70,4 @@ jobs: - uses: https://github.com/Swatinem/rust-cache@v2 with: save-if: ${{ github.ref == 'refs/heads/master' }} - - run: | - avail_mem="$(free -b | awk '/^Mem:/{print($2)}')" - # estimate that each test needs 16GiB - ((par_from_mem = avail_mem / (16 << 30))) - par="$(nproc)" - if ((par_from_mem > 0 && par > par_from_mem)); then - par="$par_from_mem" - fi - cargo test -- --test-threads="$par" + - run: cargo test