From f006e5a24cb38b88745cc45e1ee520a83e03c692 Mon Sep 17 00:00:00 2001 From: Tres Date: Fri, 3 Jul 2026 21:41:01 +0200 Subject: [PATCH] [CI][AMD] Allow git operations on previously created work trees (#47554) Signed-off-by: Tres Popp --- .buildkite/scripts/hardware_ci/run-amd-test.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.buildkite/scripts/hardware_ci/run-amd-test.sh b/.buildkite/scripts/hardware_ci/run-amd-test.sh index c04c107815..9db805c458 100755 --- a/.buildkite/scripts/hardware_ci/run-amd-test.sh +++ b/.buildkite/scripts/hardware_ci/run-amd-test.sh @@ -448,9 +448,11 @@ checkout="${BUILDKITE_BUILD_CHECKOUT_PATH:-}" if [[ -z "${checkout}" || ! -d "${checkout}" ]]; then checkout="." fi -if git -C "${checkout}" rev-parse --is-inside-work-tree >/dev/null 2>&1; then +# Pass safe.directory per-command (-c) because buildkite runs will always fail +# the next check on git 2.35.2+ due to mixed uses of root and buildkite-agent/uids. +if git -c "safe.directory=${checkout}" -C "${checkout}" rev-parse --is-inside-work-tree >/dev/null 2>&1; then vllm_standalone_merge_base="$( - git -C "${checkout}" merge-base HEAD origin/main 2>/dev/null || true + git -c "safe.directory=${checkout}" -C "${checkout}" merge-base HEAD origin/main 2>/dev/null || true )" fi if [[ -z "${vllm_standalone_merge_base}" ]]; then