From d24026a470f81070a813d7fd6b7989a30c0fb3a3 Mon Sep 17 00:00:00 2001 From: Tom Fay Date: Tue, 19 Nov 2024 16:12:56 +0000 Subject: [PATCH] run fips tests with single thread to avoid exhausting entropy in CI, and issues caused by repeated enabling of FIPs provider --- .github/workflows/ci.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0cf5a51..5b202be 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -64,8 +64,9 @@ jobs: toolchain: stable - name: Cache build artifacts uses: Swatinem/rust-cache@v2 + # Use single thread on FIPS to avoid running out of entropy - name: Run cargo test --features fips - run: cargo test --features fips + run: cargo test --tests --features fips -- --test-threads=1 test-fips-openssl-3: name: Test using FIPS openssl 3 @@ -84,4 +85,4 @@ jobs: - name: Cache build artifacts uses: Swatinem/rust-cache@v2 - name: Run cargo test --features fips - run: cargo test --features fips + run: cargo test --tests --features fips -- --test-threads=1