From c34bfd8f927a0bce4dcd13e8d749cb6dfb46ed38 Mon Sep 17 00:00:00 2001 From: Sharang Parnerkar <30073382+mighty840@users.noreply.github.com> Date: Fri, 30 Oct 2026 08:59:20 +0100 Subject: [PATCH] ci: run the agent integration tests one at a time In their own job mongo was up when the tests began, and the first test binaries passed against it, but it went away while the e2e binary ran its 21 tests in parallel, each with its own database: the cache is sized from the host's RAM while the job's memory is capped. Serial, the binary takes about 10 s. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01KYcAAeTw22GE9QPzDM8yc4 --- .gitea/workflows/ci.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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