[AMD] Fix AMD CI: mark /sglang-checkout as git safe.directory in container (#21423)

Co-authored-by: Bingxu Chen <bingxche@amd.com>
This commit is contained in:
Michael
2026-03-26 10:18:19 +08:00
committed by GitHub
co-authored by Bingxu Chen
parent 6f2b51ade1
commit 80389fec00
2 changed files with 10 additions and 0 deletions
+5
View File
@@ -241,3 +241,8 @@ docker run -dt --user root --device=/dev/kfd ${DEVICE_FLAG} \
-w /sglang-checkout \
--name ci_sglang \
"${IMAGE}"
# The checkout is owned by the runner (non-root) but the container runs as
# root. Git >= 2.35.2 rejects cross-user repos; mark the mount as safe so
# setuptools-scm / vcs_versioning can resolve the package version.
docker exec ci_sglang git config --global --add safe.directory /sglang-checkout
@@ -263,3 +263,8 @@ docker run -dt --user root \
-w /sglang-checkout \
--name ci_sglang \
"${IMAGE}"
# The checkout is owned by the runner (non-root) but the container runs as
# root. Git >= 2.35.2 rejects cross-user repos; mark the mount as safe so
# setuptools-scm / vcs_versioning can resolve the package version.
docker exec ci_sglang git config --global --add safe.directory /sglang-checkout