From dbd2b27e0ae5c4ccdbbcf0fcd4b9edfe149ae374 Mon Sep 17 00:00:00 2001 From: yangzeyu <532183776@qq.com> Date: Wed, 24 Jun 2026 09:55:29 +0800 Subject: [PATCH 1/7] feat/pipeline-use-docker-plugin Signed-off-by: yangzeyu <532183776@qq.com> --- .buildkite/pipeline-npu.yaml | 35 ++++++++++------------------------- 1 file changed, 10 insertions(+), 25 deletions(-) diff --git a/.buildkite/pipeline-npu.yaml b/.buildkite/pipeline-npu.yaml index fd9a2c392..33887fb09 100644 --- a/.buildkite/pipeline-npu.yaml +++ b/.buildkite/pipeline-npu.yaml @@ -10,31 +10,16 @@ steps: agents: queue: "linux-small" plugins: - - kubernetes: - podSpec: - containers: - - image: "quay.io/ascend/vime:vime-latest" - volumeMounts: - - name: devshm - mountPath: /dev/shm - - name: hf-cache - mountPath: /root/.cache/huggingface - env: - - name: HF_HOME - value: /root/.cache/huggingface - - name: VIME_TEST_ENABLE_INFINITE_RUN - value: "false" - # Expand additional pod_env variables here as needed, e.g.: - # - name: VIME_TEST_USE_DEEPEP - # value: "0" - volumes: - - name: devshm - emptyDir: - medium: Memory - - name: hf-cache - hostPath: - path: /mnt/hf-cache - type: DirectoryOrCreate + - docker#v5.0.0: + image: "quay.io/ascend/vime:vime-latest" + environment: + - HF_HOME=/root/.cache/huggingface + - VIME_TEST_ENABLE_INFINITE_RUN=false + # Expand additional environment variables here as needed, e.g.: + # - VIME_TEST_USE_DEEPEP=0 + volumes: + - /dev/shm:/dev/shm + - /mnt/hf-cache:/root/.cache/huggingface timeout_in_minutes: 60 # The npu test cases to be executed have not been determined yet. command: | From 4ece1b15b2fb9d2653a12b38559c3a5aa0da6d38 Mon Sep 17 00:00:00 2001 From: yangzeyu <532183776@qq.com> Date: Wed, 24 Jun 2026 09:55:29 +0800 Subject: [PATCH 2/7] feat/pipeline-use-docker-plugin Signed-off-by: yangzeyu <532183776@qq.com> --- .buildkite/pipeline-npu.yaml | 37 +++++++++++------------------------- 1 file changed, 11 insertions(+), 26 deletions(-) diff --git a/.buildkite/pipeline-npu.yaml b/.buildkite/pipeline-npu.yaml index fd9a2c392..0b982e41f 100644 --- a/.buildkite/pipeline-npu.yaml +++ b/.buildkite/pipeline-npu.yaml @@ -8,33 +8,18 @@ steps: - label: ":pytest: NPU tests" key: npu-tests agents: - queue: "linux-small" + queue: "macos-medium" plugins: - - kubernetes: - podSpec: - containers: - - image: "quay.io/ascend/vime:vime-latest" - volumeMounts: - - name: devshm - mountPath: /dev/shm - - name: hf-cache - mountPath: /root/.cache/huggingface - env: - - name: HF_HOME - value: /root/.cache/huggingface - - name: VIME_TEST_ENABLE_INFINITE_RUN - value: "false" - # Expand additional pod_env variables here as needed, e.g.: - # - name: VIME_TEST_USE_DEEPEP - # value: "0" - volumes: - - name: devshm - emptyDir: - medium: Memory - - name: hf-cache - hostPath: - path: /mnt/hf-cache - type: DirectoryOrCreate + - docker#v5.0.0: + image: "quay.io/ascend/vime:vime-latest" + environment: + - HF_HOME=/root/.cache/huggingface + - VIME_TEST_ENABLE_INFINITE_RUN=false + # Expand additional environment variables here as needed, e.g.: + # - VIME_TEST_USE_DEEPEP=0 + volumes: + - /dev/shm:/dev/shm + - /mnt/hf-cache:/root/.cache/huggingface timeout_in_minutes: 60 # The npu test cases to be executed have not been determined yet. command: | From 907074c8c6369c0fb5dbb71f1df639c8cf21635b Mon Sep 17 00:00:00 2001 From: yangzeyu <532183776@qq.com> Date: Wed, 24 Jun 2026 10:38:59 +0800 Subject: [PATCH 3/7] feat/change use command docker Signed-off-by: yangzeyu <532183776@qq.com> --- .buildkite/pipeline-npu.yaml | 67 +++++++++++++++++++++--------------- 1 file changed, 40 insertions(+), 27 deletions(-) diff --git a/.buildkite/pipeline-npu.yaml b/.buildkite/pipeline-npu.yaml index 0b982e41f..d4c3a2a3b 100644 --- a/.buildkite/pipeline-npu.yaml +++ b/.buildkite/pipeline-npu.yaml @@ -2,30 +2,43 @@ # This pipeline is for running NPU tests on PRs . steps: - - group: ":card_index_dividers: npu test" - key: npu-test-steps - steps: - - label: ":pytest: NPU tests" - key: npu-tests - agents: - queue: "macos-medium" - plugins: - - docker#v5.0.0: - image: "quay.io/ascend/vime:vime-latest" - environment: - - HF_HOME=/root/.cache/huggingface - - VIME_TEST_ENABLE_INFINITE_RUN=false - # Expand additional environment variables here as needed, e.g.: - # - VIME_TEST_USE_DEEPEP=0 - volumes: - - /dev/shm:/dev/shm - - /mnt/hf-cache:/root/.cache/huggingface - timeout_in_minutes: 60 - # The npu test cases to be executed have not been determined yet. - command: | - set -euo pipefail - PR="${BUILDKITE_PULL_REQUEST:-false}" - [ "$PR" = "false" ] && PR="non-pr" - export GITHUB_COMMIT_NAME="${BUILDKITE_COMMIT}_${PR}" - pip install -e . --no-deps --break-system-packages - python -c "print('test-npu')" + - label: "Run NPU test via Docker" + timeout_in_minutes: 60 + command: | + set -euo pipefail + + # 确保 Docker 可用 + docker info || (echo "Docker not running" && exit 1) + + # 拉取镜像(若本地不存在) + docker pull quay.io/ascend/vime:vime-latest + + # 准备宿主机目录(如果使用 hostPath) + mkdir -p /mnt/hf-cache + + # 执行容器 + docker run --rm \ + --name "vime-test-${BUILDKITE_BUILD_NUMBER}" \ + --device /dev/davinci0 \ # 若无需 NPU 可删除 + --device /dev/davinci_manager \ + --device /dev/devmm_svm \ + --device /dev/hisi_hdc \ + -v /usr/local/dcmi:/usr/local/dcmi \ + -v /usr/local/bin/npu-smi:/usr/local/bin/npu-smi \ + -v /usr/local/Ascend/driver/lib64/:/usr/local/Ascend/driver/lib64/ \ + -v /usr/local/Ascend/driver/version.info:/usr/local/Ascend/driver/version.info \ + -v /etc/ascend_install.info:/etc/ascend_install.info \ + -v /dev/shm:/dev/shm \ + -v /mnt/hf-cache:/root/.cache/huggingface \ + -e HF_HOME=/root/.cache/huggingface \ + -e VIME_TEST_ENABLE_INFINITE_RUN=false \ + -e BUILDKITE_PULL_REQUEST="${BUILDKITE_PULL_REQUEST:-false}" \ + -e BUILDKITE_COMMIT="${BUILDKITE_COMMIT}" \ + -e GITHUB_COMMIT_NAME="${BUILDKITE_COMMIT}_${BUILDKITE_PULL_REQUEST:-non-pr}" \ + --network host \ + quay.io/ascend/vime:vime-latest \ + bash -c " + set -euo pipefail + pip install -e . --no-deps --break-system-packages || pip install -e . --no-deps + python -c \"print('test-npu')\" + " From c20848eaf2d2170a11ac0b631852f4d69ae5d592 Mon Sep 17 00:00:00 2001 From: yangzeyu <532183776@qq.com> Date: Wed, 24 Jun 2026 10:42:37 +0800 Subject: [PATCH 4/7] feat/change use command docker Signed-off-by: yangzeyu <532183776@qq.com> --- .buildkite/pipeline-npu.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.buildkite/pipeline-npu.yaml b/.buildkite/pipeline-npu.yaml index d4c3a2a3b..10e1054ee 100644 --- a/.buildkite/pipeline-npu.yaml +++ b/.buildkite/pipeline-npu.yaml @@ -3,6 +3,9 @@ # This pipeline is for running NPU tests on PRs . steps: - label: "Run NPU test via Docker" + key: npu-tests + agents: + queue: "macos-medium" timeout_in_minutes: 60 command: | set -euo pipefail From 9743ad74ebfc9ab7c138b24189eb1c227aecf983 Mon Sep 17 00:00:00 2001 From: yangzeyu <532183776@qq.com> Date: Wed, 24 Jun 2026 10:42:37 +0800 Subject: [PATCH 5/7] feat/change use command docker Signed-off-by: yangzeyu <532183776@qq.com> --- .buildkite/pipeline-npu.yaml | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/.buildkite/pipeline-npu.yaml b/.buildkite/pipeline-npu.yaml index d4c3a2a3b..d47dab111 100644 --- a/.buildkite/pipeline-npu.yaml +++ b/.buildkite/pipeline-npu.yaml @@ -3,23 +3,17 @@ # This pipeline is for running NPU tests on PRs . steps: - label: "Run NPU test via Docker" + key: npu-tests + agents: + queue: "ascend-a3" timeout_in_minutes: 60 command: | set -euo pipefail - - # 确保 Docker 可用 docker info || (echo "Docker not running" && exit 1) - - # 拉取镜像(若本地不存在) docker pull quay.io/ascend/vime:vime-latest - - # 准备宿主机目录(如果使用 hostPath) mkdir -p /mnt/hf-cache - - # 执行容器 docker run --rm \ --name "vime-test-${BUILDKITE_BUILD_NUMBER}" \ - --device /dev/davinci0 \ # 若无需 NPU 可删除 --device /dev/davinci_manager \ --device /dev/devmm_svm \ --device /dev/hisi_hdc \ From 1522687762d2a4163c0a097033fce7ef1c116143 Mon Sep 17 00:00:00 2001 From: yangzeyu <532183776@qq.com> Date: Wed, 24 Jun 2026 11:46:50 +0800 Subject: [PATCH 6/7] change queue Signed-off-by: yangzeyu <532183776@qq.com> --- .buildkite/pipeline-npu.yaml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.buildkite/pipeline-npu.yaml b/.buildkite/pipeline-npu.yaml index 6dc712167..d47dab111 100644 --- a/.buildkite/pipeline-npu.yaml +++ b/.buildkite/pipeline-npu.yaml @@ -5,11 +5,7 @@ steps: - label: "Run NPU test via Docker" key: npu-tests agents: -<<<<<<< HEAD queue: "ascend-a3" -======= - queue: "macos-medium" ->>>>>>> c20848eaf2d2170a11ac0b631852f4d69ae5d592 timeout_in_minutes: 60 command: | set -euo pipefail From 1a85df62ad0b48fe083da137e41778daae28bef1 Mon Sep 17 00:00:00 2001 From: yangzeyu <532183776@qq.com> Date: Wed, 24 Jun 2026 14:22:09 +0800 Subject: [PATCH 7/7] feat/delete-docker-pull Signed-off-by: yangzeyu <532183776@qq.com> --- .buildkite/pipeline-npu.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/.buildkite/pipeline-npu.yaml b/.buildkite/pipeline-npu.yaml index d47dab111..4f36272f6 100644 --- a/.buildkite/pipeline-npu.yaml +++ b/.buildkite/pipeline-npu.yaml @@ -10,7 +10,6 @@ steps: command: | set -euo pipefail docker info || (echo "Docker not running" && exit 1) - docker pull quay.io/ascend/vime:vime-latest mkdir -p /mnt/hf-cache docker run --rm \ --name "vime-test-${BUILDKITE_BUILD_NUMBER}" \