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.

fix(soak): BSD-safe mktemp template for the per-leg log

Martin Vogel1d822c86bf68
diff --git a/scripts/soak-legs.sh b/scripts/soak-legs.sh
index 6f7944e7e..1177c5873 100755
--- a/scripts/soak-legs.sh
+++ b/scripts/soak-legs.sh
@@ -77,7 +77,10 @@ ROOT="$(cd "$(dirname "$0")/.." && pwd)"
run_leg() {
local leg="$1"
local log
- log="$(mktemp "${TMPDIR:-/tmp}/cbm-soak-leg-XXXXXX.log")"
+ # No suffix after the X run: BSD mktemp substitutes only TRAILING X's, so
+ # a template like ...XXXXXX.log creates a near-literal file on macOS and
+ # every second run collides with the first run's leftover ("File exists").
+ log="$(mktemp "${TMPDIR:-/tmp}/cbm-soak-leg-XXXXXX")"
echo "=== soak-legs: leg=${leg} binary=${BINARY} duration=${DURATION}m ==="
local rc=0
case "$leg" in