Skip to content

Local code intelligence for developers and AI agents. Connect code, docs and infrastructure in a persistent graph, with CBM Lens, MCP tools, agent integrations and change-aware test selection.

test-infra: default to full cores; CBM_LOCAL_CI_CPUS=4 is the CI-fidelity mode

Martin Vogel9450a51f771b
diff --git a/test-infrastructure/docker-compose.yml b/test-infrastructure/docker-compose.yml
index c95a31d47..4245f489c 100644
--- a/test-infrastructure/docker-compose.yml
+++ b/test-infrastructure/docker-compose.yml
@@ -8,16 +8,17 @@
services:
# ── Linux test (ASan + UBSan + LeakSanitizer) ──────────────
- # cpus defaults to 4 to mirror the GitHub runners: deadline/starvation bugs
- # (worker-readiness waits, watcher/subprocess deadlines) only reproduce when
- # the machine is as constrained as CI — 18 free cores mask them. Override
- # with CBM_LOCAL_CI_CPUS (0 = unconstrained fast mode).
+ # Default: unconstrained (speed first). CBM_LOCAL_CI_CPUS=4 enables
+ # CI-FIDELITY mode, mirroring the 4-core GitHub runners: deadline/starvation
+ # bugs (worker-readiness waits, watcher/subprocess deadlines) only reproduce
+ # under that constraint — run one capped pass before pushing anything that
+ # touches timing, scheduling, or subprocess code.
test:
build:
context: ..
dockerfile: test-infrastructure/Dockerfile
platform: linux/arm64
- cpus: ${CBM_LOCAL_CI_CPUS:-4.0}
+ cpus: ${CBM_LOCAL_CI_CPUS:-0}
volumes:
- ..:/src
- cbm-ccache-arm64:/root/.ccache
@@ -31,7 +32,7 @@ services:
context: ..
dockerfile: test-infrastructure/Dockerfile
platform: linux/amd64
- cpus: ${CBM_LOCAL_CI_CPUS:-4.0}
+ cpus: ${CBM_LOCAL_CI_CPUS:-0}
volumes:
- ..:/src
- cbm-ccache-amd64:/root/.ccache