git-ents.gitmain
⌘K
foforge
commit 27fc563
test: serialize docker-gated tests in a nextest test group

Several test binaries racing to start throwaway containers (Postgres for the storage and queue suites, the sandbox image for git-effect’s Docker backend) flake at default parallelism; a docker test group with max-threads 1 runs exactly those tests serially.

Assisted-by: Claude:claude-sonnet-5

Joseph D. Carpinelli · 1 month ago

Reviews

No reviews of this commit yet — record a verdict below.

Start a review

verdict

.config/nextest.toml @@ -1,0 +1,19 @@ +# Nextest configuration. +# +# Docker-gated tests (each starts its own throwaway container — Postgres +# for the storage/queue suites, the sandbox image for git-effect's Docker +# backend) race and flake when several test binaries hit the Docker daemon +# at once at default parallelism. Serialize exactly those tests through +# one test group; everything else keeps full parallelism. + +[test-groups] +docker = { max-threads = 1 } + +[[profile.default.overrides]] +filter = ''' +package(refstore-postgres) +| package(effect-dispatcher) +| (package(git-ents-server) & binary(hydrate)) +| (package(git-effect) & test(docker_backend_runs_a_trivial_effect)) +''' +test-group = "docker"