From 98ff2aed81d80a282a4fac3070dc8271ddb9b18a Mon Sep 17 00:00:00 2001 From: Josh Creek <8179928+jcreek@users.noreply.github.com> Date: Tue, 1 Sep 2026 17:13:18 +0100 Subject: [PATCH] test(multiplayer): detect macOS Godot bundle --- multiplayer-next.md | 2 ++ scripts/verify_enet_integration.sh | 10 +++++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/multiplayer-next.md b/multiplayer-next.md index 44cf2e85..afaa7f9e 100644 --- a/multiplayer-next.md +++ b/multiplayer-next.md @@ -1450,3 +1450,5 @@ The control plane now exports bounded Prometheus-compatible API request counters The three declared domain fuzz targets have now each completed a bounded 4-second run (`FuzzQueueCreateDoesNotPanic`, `FuzzResultDigestIsDeterministic`, and `FuzzSyncEventApplicationDoesNotPanic`) with no failures; this closes the locally runnable fuzz portion of 8.46. Live Redis failover, further transaction races, and cloud/runtime gates remain explicitly unverified. The real ENet integration gate now passes with `GODOT_BIN=/Applications/Godot.app/Contents/MacOS/Godot bash scripts/verify_enet_integration.sh`, covering the `net`, `match-net`, `clock`, `lobby`, and `networked match` process scenarios. The default `GODOT_BIN` remains the portable `godot` PATH lookup for CI; this machine requires the explicit app-bundle path. + +The ENet gate now auto-detects `/Applications/Godot.app/Contents/MacOS/Godot` when no PATH executable or `GODOT_BIN` override exists, while retaining explicit override precedence. The same gate passes without an environment override on this macOS host. diff --git a/scripts/verify_enet_integration.sh b/scripts/verify_enet_integration.sh index c7694355..834d8182 100644 --- a/scripts/verify_enet_integration.sh +++ b/scripts/verify_enet_integration.sh @@ -4,7 +4,15 @@ set -euo pipefail root_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" cd "$root_dir" -godot_bin="${GODOT_BIN:-godot}" +if [[ -n "${GODOT_BIN:-}" ]]; then + godot_bin="$GODOT_BIN" +elif command -v godot >/dev/null 2>&1; then + godot_bin="$(command -v godot)" +elif [[ -x "/Applications/Godot.app/Contents/MacOS/Godot" ]]; then + godot_bin="/Applications/Godot.app/Contents/MacOS/Godot" +else + godot_bin="godot" +fi logs_dir="$(mktemp -d "${TMPDIR:-/tmp}/cosmic-clash-enet.XXXXXX")" pids=() # Comma-separated selection for local debugging; CI leaves this unset and