diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 6789a84..369121b 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -219,8 +219,11 @@ jobs: done echo "::error::mongo:27017 not reachable after 120 s"; getent hosts mongo || echo "mongo does not resolve"; exit 1 shell: bash + # One test at a time: each test opens its own database, and 21 at once + # took mongo down mid-run (its cache is sized from the host's RAM, the + # job's memory is capped). Serial, the e2e binary takes about 10 s. - name: Tests (agent integration) - run: cargo test -p compliance-agent --test '*' + run: cargo test -p compliance-agent --test '*' -- --test-threads=1 env: TEST_MONGODB_URI: mongodb://root:example@mongo:27017/?authSource=admin