ci: run the agent integration tests one at a time
CI / Check (push) Skipped
CI / Detect Changes (pull_request) Skipped
CI / Deploy Agent (pull_request) Skipped
CI / Deploy Dashboard (pull_request) Skipped
CI / Deploy Docs (pull_request) Skipped
CI / Deploy MCP (pull_request) Skipped
CI / Agent integration (pull_request) Failing after 12m4s
CI / Check (pull_request) Canceled after 13m4s

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 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KYcAAeTw22GE9QPzDM8yc4
This commit is contained in:
Sharang ParnerkarandClaude Opus 5.5 committed 2026-10-30 08:59:20 +01:00
1 parent 3ef5c28a97
commit c34bfd8f92
1 file changed
+4 -1
+4 -1
View File
@@ -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