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.
C aiderastclaude-codecode-analysiscode-intelligencecodexcursorcypherdeveloper-toolsgemini-cligraph-visualizationkilocodeknowledge-graphmcpmcp-servermodel-context-protocolopencodesqlitetree-sitterwindsurf
test-infra: per-suite timeout + arm64-safe mingw image (reliability)
Martin Vogel53d867dfc132
diff --git a/scripts/run-tests-parallel.sh b/scripts/run-tests-parallel.shindex e6dcae6e6..e8a06b202 100644--- a/scripts/run-tests-parallel.sh+++ b/scripts/run-tests-parallel.sh@@ -93,8 +93,27 @@ export RUNNER LOGDIR RESULTS_FILErun_one() {s="$1"t0=$SECONDS- "$RUNNER" "$s" > "$LOGDIR/$s.log" 2>&1- rc=$?+ # Per-suite wall-clock ceiling so a wedged suite fails LOUDLY instead of+ # blocking the run (and the single local build slot) indefinitely. The+ # `incremental` suite legitimately re-indexes large fixtures (minutes) so+ # it gets a wider ceiling until the template-DB fixture refactor lands.+ # Uses `timeout` where available (always in the Linux container / CI); on a+ # host without it the suite runs uncapped (no regression vs before).+ case "$s" in+ incremental) st="${CBM_SUITE_TIMEOUT_SLOW:-3600}" ;;+ *) st="${CBM_SUITE_TIMEOUT:-900}" ;;+ esac+ if command -v timeout >/dev/null 2>&1; then+ timeout --kill-after=15 "$st" "$RUNNER" "$s" > "$LOGDIR/$s.log" 2>&1+ rc=$?+ if [ "$rc" -eq 124 ] || [ "$rc" -eq 137 ]; then+ echo " FAIL: suite '$s' exceeded ${st}s wall clock (killed as hung)" \+ >> "$LOGDIR/$s.log"+ fi+ else+ "$RUNNER" "$s" > "$LOGDIR/$s.log" 2>&1+ rc=$?+ fisecs=$((SECONDS - t0))summary=$(grep -E '^ [0-9]+ passed' "$LOGDIR/$s.log" | tail -1)pass=$(printf '%s' "$summary" | sed -n 's/^ \([0-9]*\) passed.*/\1/p')diff --git a/test-infrastructure/Dockerfile.mingw b/test-infrastructure/Dockerfile.mingwindex a7386f6dc..d496a7049 100644--- a/test-infrastructure/Dockerfile.mingw+++ b/test-infrastructure/Dockerfile.mingw@@ -9,11 +9,15 @@FROM mstorsjo/llvm-mingw:latest-# Install Wine + binfmt support for transparent .exe execution-RUN dpkg --add-architecture i386 && \- apt-get update && apt-get install -y --no-install-recommends \- wine64 curl zstd \+# curl+zstd are required (zlib sysroot fetch below). Wine is BEST-EFFORT: it+# only runs the .exe, and its i386 packages are unavailable on an arm64 Docker+# host (e.g. Colima on Apple Silicon), so a Wine failure must NOT abort the+# image build - the cross-COMPILE check still works without it.+RUN apt-get update && apt-get install -y --no-install-recommends curl zstd \&& rm -rf /var/lib/apt/lists/*+RUN (dpkg --add-architecture i386 && apt-get update && \+ apt-get install -y --no-install-recommends wine64 && rm -rf /var/lib/apt/lists/*) \+ || echo "WARN: Wine unavailable on this host arch -> compile-only mode"# Install zlib into the llvm-mingw sysroot (from MSYS2 CLANG64 repo)RUN mkdir -p /tmp/zlib-pkg && \