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(ci): accept the documented test-amd64 leg spelling

Martin Vogelba5724319cbe
diff --git a/test-infrastructure/run.sh b/test-infrastructure/run.sh
index fedf986d6..88bc63d4e 100755
--- a/test-infrastructure/run.sh
+++ b/test-infrastructure/run.sh
@@ -269,7 +269,9 @@ case "${1:-full}" in
echo "=== Windows: binary version check (cross-compile + Wine) ==="
$COMPOSE run --rm smoke-windows
;;
- amd64)
+ amd64 | test-amd64)
+ # `--help` advertises `amd64|test-amd64`, but only `amd64` dispatched:
+ # the documented spelling died with "unknown leg 'test-amd64'".
echo "=== Linux amd64: test + build ==="
$COMPOSE run --rm -e CBM_SKIP_PERF=1 test-amd64
$COMPOSE run --rm build-amd64
diff --git a/test-infrastructure/vm/win.sh b/test-infrastructure/vm/win.sh
index c9c4ffc0b..659d61203 100755
--- a/test-infrastructure/vm/win.sh
+++ b/test-infrastructure/vm/win.sh
@@ -145,8 +145,12 @@ vm_ensure_run_checkout() {
# `fetch origin <branch>` would resolve against whatever the base happens
# to hold (i.e. another session's state) instead of GitHub. Inherit the
# base's real origin URL so the isolated tree fetches independently.
- vm clangarm64 "[ -d '$VM_REPO/.git' ] || { git clone --local '$VM_BASE_REPO' '$VM_REPO' && \
- git -C '$VM_REPO' remote set-url origin \"\$(git -C '$VM_BASE_REPO' remote get-url origin)\"; }"
+ # The substitution is single-quoted here so it expands in the REMOTE shell
+ # (same pattern as JOBS above); nested double quotes do not survive the
+ # cmd.exe -> msys2_shell wrapper.
+ local base_url_expr='$(git -C '"$VM_BASE_REPO"' remote get-url origin)'
+ vm clangarm64 "[ -d '$VM_REPO/.git' ] || git clone --local '$VM_BASE_REPO' '$VM_REPO'"
+ vm clangarm64 "git -C '$VM_REPO' remote set-url origin $base_url_expr"
}
# The VM tree must be the one the caller means. A concurrent session running