From 11f683bd0fbb761c656a2d73ee3337eaeb1cd51e Mon Sep 17 00:00:00 2001 From: David Zuelke Date: Wed, 5 Jun 2024 01:09:16 +0200 Subject: [PATCH] Use arm-medium runners but turn up test threads Using instances with 16 vCPUs is a bit silly for CI, but we can jack up the number of threads used for integration tests to match num of CPUs plus one --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 71ce487..b2042e9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -51,7 +51,7 @@ jobs: arch: "arm64" - builder: "builder:20" arch: "arm64" - runs-on: ${{ matrix.arch == 'arm64' && 'pub-hk-ubuntu-22.04-arm-large' || 'ubuntu-latest' }} + runs-on: ${{ matrix.arch == 'arm64' && 'pub-hk-ubuntu-22.04-arm-medium' || 'ubuntu-latest' }} env: INTEGRATION_TEST_CNB_BUILDER: heroku/${{ matrix.builder }} steps: @@ -75,4 +75,4 @@ jobs: # only those and not the unit tests, via the `--ignored` option. On the latest stack # we run all integration tests, but on older stacks we only run stack-specific tests. - name: Run integration tests (all tests) - run: cargo test --locked -- --ignored --test-threads 5 + run: cargo test --locked -- --ignored --test-threads $(($(nproc)+1))