fix: stabilize cross-platform daemon launch

Signed-off-by: Martin Vogel <martin.vogel.tech@gmail.com>
This commit is contained in:
Martin Vogel
2026-07-18 03:16:37 +02:00
parent cb896a3de4
commit b8a75d142c
6 changed files with 197 additions and 56 deletions
+3 -1
View File
@@ -239,7 +239,9 @@ jobs:
- name: Smoke test
shell: msys2 {0}
run: scripts/smoke-test.sh ./codebase-memory-mcp.exe
run: |
SMOKE_TEMP_ROOT="$(cygpath -u "$RUNNER_TEMP")" \
scripts/smoke-test.sh ./codebase-memory-mcp.exe
env:
SMOKE_DOWNLOAD_URL: http://127.0.0.1:18080
SMOKE_UPDATE_FIXTURE_DIR: /tmp/smoke-server
+7 -2
View File
@@ -114,13 +114,18 @@ jobs:
shell: msys2 {0}
run: |
scripts/build.sh CC=clang CXX=clang++
SMOKE_DIR="$(mktemp -d)"
# MSYS2 /tmp is intentionally shared. The launcher correctly rejects
# a bundle below that writable ancestor, so stage in the runner's
# account-private native temp directory instead.
SMOKE_ROOT="$(cygpath -u "$RUNNER_TEMP")"
SMOKE_DIR="$(mktemp -d "$SMOKE_ROOT/cbm-pr-smoke.XXXXXX")"
trap 'rm -rf "$SMOKE_DIR"' EXIT
cp build/c/codebase-memory-mcp-launcher.exe \
"$SMOKE_DIR/codebase-memory-mcp.exe"
cp build/c/codebase-memory-mcp.exe \
"$SMOKE_DIR/codebase-memory-mcp.payload.exe"
scripts/smoke-test.sh "$SMOKE_DIR/codebase-memory-mcp.exe"
SMOKE_TEMP_ROOT="$SMOKE_ROOT" \
scripts/smoke-test.sh "$SMOKE_DIR/codebase-memory-mcp.exe"
ci-ok:
# The one required context (besides dco) — fails unless every PR stage