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>
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>