From 6ad74e8c80e946f2501601bba0afea0f4e1bb18d Mon Sep 17 00:00:00 2001 From: Li Wang Date: Fri, 20 Mar 2026 16:40:24 +0800 Subject: [PATCH] [CI] Add git safe repo (#7501) ### What this PR does / why we need it? Add git safe repo to avoid dubious ownership error - vLLM version: v0.17.0 - vLLM main: https://github.com/vllm-project/vllm/commit/8b6325758cce5f9c36d38f2462edbd368b97a07c --------- Signed-off-by: wangli --- .github/workflows/_e2e_nightly_single_node.yaml | 1 + .github/workflows/_e2e_nightly_single_node_models.yaml | 1 + .github/workflows/_e2e_test.yaml | 7 +++++++ .github/workflows/_unit_test.yaml | 1 + 4 files changed, 10 insertions(+) diff --git a/.github/workflows/_e2e_nightly_single_node.yaml b/.github/workflows/_e2e_nightly_single_node.yaml index 69c191c9..b2f319c4 100644 --- a/.github/workflows/_e2e_nightly_single_node.yaml +++ b/.github/workflows/_e2e_nightly_single_node.yaml @@ -125,6 +125,7 @@ jobs: env: PIP_EXTRA_INDEX_URL: https://mirrors.huaweicloud.com/ascend/repos/pypi run: | + git config --global --add safe.directory /vllm-workspace/vllm-ascend pip install uc-manager uv pip install -r requirements-dev.txt uv pip install -v -e . diff --git a/.github/workflows/_e2e_nightly_single_node_models.yaml b/.github/workflows/_e2e_nightly_single_node_models.yaml index 44f78c5b..563d4535 100644 --- a/.github/workflows/_e2e_nightly_single_node_models.yaml +++ b/.github/workflows/_e2e_nightly_single_node_models.yaml @@ -84,6 +84,7 @@ jobs: pip config set global.index-url https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple apt-get update -y apt install git -y + git config --global --add safe.directory /__w/vllm-ascend/vllm-ascend git config --global url."https://gh-proxy.test.osinfra.cn/https://github.com/".insteadOf https://github.com/ - name: Checkout vllm-project/vllm-ascend repo diff --git a/.github/workflows/_e2e_test.yaml b/.github/workflows/_e2e_test.yaml index 7b6fd1f1..475ee2aa 100644 --- a/.github/workflows/_e2e_test.yaml +++ b/.github/workflows/_e2e_test.yaml @@ -56,6 +56,7 @@ jobs: pip config set global.trusted-host cache-service.nginx-pypi-cache.svc.cluster.local apt-get update -y apt install git -y + git config --global --add safe.directory /__w/vllm-ascend/vllm-ascend - name: Install system dependencies run: | @@ -161,6 +162,7 @@ jobs: pip config set global.trusted-host cache-service.nginx-pypi-cache.svc.cluster.local apt-get update -y apt install git -y + git config --global --add safe.directory /__w/vllm-ascend/vllm-ascend - name: Install system dependencies run: | @@ -263,6 +265,7 @@ jobs: pip config set global.trusted-host cache-service.nginx-pypi-cache.svc.cluster.local apt-get update -y apt install git -y + git config --global --add safe.directory /__w/vllm-ascend/vllm-ascend - name: Install system dependencies run: | @@ -365,6 +368,7 @@ jobs: pip config set global.trusted-host cache-service.nginx-pypi-cache.svc.cluster.local apt-get update -y apt install git -y + git config --global --add safe.directory /__w/vllm-ascend/vllm-ascend - name: Install system dependencies run: | @@ -486,6 +490,7 @@ jobs: pip config set global.trusted-host cache-service.nginx-pypi-cache.svc.cluster.local apt-get update -y apt install git -y + git config --global --add safe.directory /__w/vllm-ascend/vllm-ascend - name: Install system dependencies run: | @@ -581,6 +586,7 @@ jobs: pip config set global.trusted-host cache-service.nginx-pypi-cache.svc.cluster.local apt-get update -y apt install git -y + git config --global --add safe.directory /__w/vllm-ascend/vllm-ascend - name: Checkout vllm-project/vllm-ascend repo uses: actions/checkout@v6 @@ -655,6 +661,7 @@ jobs: pip config set global.trusted-host cache-service.nginx-pypi-cache.svc.cluster.local apt-get update -y apt install git -y + git config --global --add safe.directory /__w/vllm-ascend/vllm-ascend - name: Checkout vllm-project/vllm-ascend repo uses: actions/checkout@v6 diff --git a/.github/workflows/_unit_test.yaml b/.github/workflows/_unit_test.yaml index 7a92dcd3..e856009b 100644 --- a/.github/workflows/_unit_test.yaml +++ b/.github/workflows/_unit_test.yaml @@ -42,6 +42,7 @@ jobs: pip config set global.trusted-host cache-service.nginx-pypi-cache.svc.cluster.local apt-get update -y apt-get install -y python3-pip git vim wget net-tools gcc g++ cmake libnuma-dev curl gnupg2 + git config --global --add safe.directory /__w/vllm-ascend/vllm-ascend pip install uv - name: Checkout vllm-project/vllm repo