From 505f37a63dbcf376ee122592295d027bfa2e6094 Mon Sep 17 00:00:00 2001 From: YC Yen-Ching Tseng Date: Thu, 28 May 2026 14:05:53 +0800 Subject: [PATCH] [AMD] force AITER checkout to bypass CSV CRLF/LF smudge dirty state (#26535) --- scripts/ci/amd/amd_ci_install_dependency.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/ci/amd/amd_ci_install_dependency.sh b/scripts/ci/amd/amd_ci_install_dependency.sh index 773ee6fd9..485d9d912 100755 --- a/scripts/ci/amd/amd_ci_install_dependency.sh +++ b/scripts/ci/amd/amd_ci_install_dependency.sh @@ -270,10 +270,15 @@ if [[ "${NEED_REBUILD}" == "true" ]]; then docker exec ci_sglang git clone https://github.com/ROCm/aiter.git /sgl-workspace/aiter # checkout correct version and install requirements + # Use `checkout -f` so the smudge-filter-induced "dirty" working tree from + # AITER's .gitattributes (*.csv text eol=lf, added in ROCm/aiter#3370) does + # not block switching to commits that predate that rule. The working tree + # was just produced by `rm -rf` + fresh `git clone` above, so there are no + # real user changes to preserve. docker exec ci_sglang bash -c " cd /sgl-workspace/aiter && \ git fetch --all && \ - git checkout ${REPO_AITER_COMMIT} && \ + git checkout -f ${REPO_AITER_COMMIT} && \ git submodule update --init --recursive && \ pip install -r requirements.txt "