ci: agent integration tests with mongod inside the job #586

Merged
sharang merged 2 commits from ci/agent-integration-tests into main 2026-11-02 21:27:13 +00:00
2 Commits
Author SHA1 Message Date
Sharang ParnerkarandClaude Opus 5.5 a5e9913957 ci: raise the open-file limit for mongod in the agent integration job
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) Successful in 4m13s
CI / Check (pull_request) Successful in 18m36s
The first run of the job lost mongod mid-run again: its log says "Too
many open files" (WiredTiger fatal assertion). Every test opens its own
database, so WiredTiger keeps a file open per collection and index, and
job containers start with a soft limit of 1024. Reproduced locally with
--ulimit nofile=1024:524288 (19 of 87 failed); with 64000, all 87 pass.
That also explains the lost mongo service containers in #584.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-02 22:08:03 +01:00
Sharang ParnerkarandClaude Opus 5.5 9e0836b28c ci: agent integration tests with mongod inside the job
The 21 agent integration tests need MongoDB. Three tries with a mongo
service container lost the database mid-run (#584), so they were left
out of CI (backlog t61).

Memory was not the cause: against mongo:7 capped like a job (3 GB,
2 CPUs) all agent integration tests pass in parallel locally and mongo
peaks at ~0.5 GB (MongoDB 7 sizes its cache from the cgroup). The new
job runs mongod as a process in the job container instead: the official
Debian 12 build checked against its sha256, a 0.25 GB cache, started
after the tests are built, its log printed when a test fails. Locally
in rust:1.94-bookworm under the same cap: 87 passed, ~0.5 GB.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-02 22:08:03 +01:00