A high-throughput and memory-efficient inference and serving engine for LLMs
Mirrored from https://github.com/tduncan-lum/Nvidia-Optimization-Stack---VLLM.git
Synced Nov 5, 12:15 UTC
[ROCm][CI] Fix test repo-root assumptions (#39053)
Signed-off-by: Andreas Karatzas <akaratza@amd.com>
Andreas Karatzas committed
Apr 7, 2026 at 00:36 UTC
a435e3108d82eb96d9b3954c1935afbbf4c5f69b
7 files changed
+21
-11
tests/v1/ec_connector/integration/run_epd_correctness_test.sh
+3
-2
@@ -15,8 +15,9 @@
15
16
# set -xe
17
18
-# Find the git repository root directory
19
-GIT_ROOT=$(git rev-parse --show-toplevel)
18
+# Resolve the repository root from the script location instead of `.git`.
19
+SCRIPT_DIR="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd -P)"
20
+GIT_ROOT="${GIT_ROOT:-$(cd -- "${SCRIPT_DIR}/../../../.." && pwd -P)}"
21
22
# Model to test
23
MODEL="${MODEL:-Qwen/Qwen2.5-VL-3B-Instruct}"
tests/v1/kv_connector/nixl_integration/run_accuracy_test.sh
+5
-2
@@ -85,8 +85,11 @@ DECODE_BLOCK_SIZE=${DECODE_BLOCK_SIZE:-128}
85
# Comma-separated extra args for vllm serve (e.g. --max-model-len,2048)
86
VLLM_SERVE_EXTRA_ARGS=${VLLM_SERVE_EXTRA_ARGS:-}
87
88
-# Find the git repository root directory
89
-GIT_ROOT=$(git rev-parse --show-toplevel)
88
+# Resolve the repository root from the script location instead of `.git`.
89
+# The ROCm CI image copies `/vllm-workspace` without the Git metadata, so
90
+# `git rev-parse --show-toplevel` is not reliable at runtime.
91
+SCRIPT_DIR="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd -P)"
92
+GIT_ROOT="${GIT_ROOT:-$(cd -- "${SCRIPT_DIR}/../../../.." && pwd -P)}"
93
94
SMI_BIN=$(which nvidia-smi || which rocm-smi || echo "")
95
tests/v1/kv_connector/nixl_integration/run_edge_case_test.sh
+3
-2
@@ -33,8 +33,9 @@ MODELS=(
33
"Qwen/Qwen3-0.6B"
34
)
35
36
-# Find the git repository root directory
37
-GIT_ROOT=$(git rev-parse --show-toplevel)
36
+# Resolve the repository root from the script location instead of `.git`.
37
+SCRIPT_DIR="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd -P)"
38
+GIT_ROOT="${GIT_ROOT:-$(cd -- "${SCRIPT_DIR}/../../../.." && pwd -P)}"
39
40
# Trap the SIGINT signal (triggered by Ctrl+C)
41
trap 'kill $(jobs -pr)' SIGINT SIGTERM EXIT
tests/v1/kv_connector/nixl_integration/run_tpu_disagg_accuracy_test.sh
+3
-2
@@ -20,7 +20,8 @@ BLOCK_SIZE=${BLOCK_SIZE:-32}
20
21
22
# execution env
23
-GIT_ROOT=$(git rev-parse --show-toplevel)
23
+SCRIPT_DIR="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd -P)"
24
+GIT_ROOT="${GIT_ROOT:-$(cd -- "${SCRIPT_DIR}/../../../.." && pwd -P)}"
25
EXP_ROOT="${GIT_ROOT}/tests/v1/kv_connector/nixl_integration"
26
CONDA_PATH=${CONDA_PATH:-"/home/${USER}/anaconda3"}
27
CONDA_ENV_NAME=${CONDA_ENV_NAME:-"nixl"}
@@ -153,4 +154,4 @@ echo "-----P/D success----"
154
rm "${OUTPUT_FILE}"
155
cleanup
156
156
-exit 0
\ No newline at end of file
157
+exit 0
tests/v1/kv_connector/nixl_integration/run_tpu_edge_case_test.sh
+2
-1
@@ -20,7 +20,8 @@ BLOCK_SIZE=${BLOCK_SIZE:-32}
20
21
22
# execution env
23
-GIT_ROOT=$(git rev-parse --show-toplevel)
23
+SCRIPT_DIR="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd -P)"
24
+GIT_ROOT="${GIT_ROOT:-$(cd -- "${SCRIPT_DIR}/../../../.." && pwd -P)}"
25
EXP_ROOT="${GIT_ROOT}/tests/v1/kv_connector/nixl_integration"
26
CONDA_PATH=${CONDA_PATH:-"/home/${USER}/anaconda3"}
27
CONDA_ENV_NAME=${CONDA_ENV_NAME:-"nixl"}
tests/v1/kv_connector/nixl_integration/run_xpu_disagg_accuracy_test.sh
+2
-1
@@ -44,7 +44,8 @@ DECODER_ZE_AFFINITY_MASK=${DECODER_ZE_AFFINITY_MASK:-$(generate_affinity_mask "$
44
45
46
# execution env
47
-GIT_ROOT=$(git rev-parse --show-toplevel)
47
+SCRIPT_DIR="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd -P)"
48
+GIT_ROOT="${GIT_ROOT:-$(cd -- "${SCRIPT_DIR}/../../../.." && pwd -P)}"
49
EXP_ROOT="${GIT_ROOT}/tests/v1/kv_connector/nixl_integration"
50
51
OUTPUT_FILE=${OUTPUT_FILE:-"${EXP_ROOT}/.xpu_accuracy_test_outputs.txt"}
tests/v1/kv_connector/nixl_integration/spec_decode_acceptance_test.sh
+3
-1
@@ -52,7 +52,9 @@ DECODER_TP_SIZE=${DECODER_TP_SIZE:-1}
52
GPU_MEMORY_UTILIZATION=${GPU_MEMORY_UTILIZATION:-0.7}
53
BLOCK_SIZE=${BLOCK_SIZE:-16}
54
55
-GIT_ROOT=$(git rev-parse --show-toplevel)
55
+# Resolve the repository root from the script location instead of `.git`.
56
+SCRIPT_DIR="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd -P)"
57
+GIT_ROOT="${GIT_ROOT:-$(cd -- "${SCRIPT_DIR}/../../../.." && pwd -P)}"
58
59
SMI_BIN=$(which nvidia-smi || which rocm-smi || echo "")
60