From 41d48cb9745a3bb8024d72938f367813e2417bed Mon Sep 17 00:00:00 2001 From: zhangyiming <34808445+menogrey@users.noreply.github.com> Date: Tue, 3 Feb 2026 15:19:03 +0800 Subject: [PATCH] [CI] Update doctest from 0.9.1 to 0.13.0, and copy doc test workflow to nightly CI for better monitor. (#6452) ### What this PR does / why we need it? [CI] Update doctest from 0.9.1 to 0.13.0, and copy doc test workflow to nightly CI for better monitor. ### Does this PR introduce _any_ user-facing change? ### How was this patch tested? - vLLM version: v0.14.1 - vLLM main: https://github.com/vllm-project/vllm/commit/dc917cceb877dfd13f98c538c4c96158047d98bd --------- Signed-off-by: menogrey <1299267905@qq.com> --- .github/workflows/labled_doctest.yaml | 5 +- .../workflows/schedule_nightly_test_a2.yaml | 46 +++++++++++++++++++ 2 files changed, 47 insertions(+), 4 deletions(-) diff --git a/.github/workflows/labled_doctest.yaml b/.github/workflows/labled_doctest.yaml index 214f2398..fc822559 100644 --- a/.github/workflows/labled_doctest.yaml +++ b/.github/workflows/labled_doctest.yaml @@ -30,9 +30,6 @@ on: - 'tests/e2e/doctests/**' - 'tests/e2e/common.sh' - 'tests/e2e/run_doctests.sh' - schedule: - # Runs every 12 hours - - cron: '0 */12 * * *' # Bash shells do not use ~/.profile or ~/.bashrc so these shells need to be explicitly # declared as "shell: bash -el {0}" on steps that need to be properly activated. @@ -47,7 +44,7 @@ jobs: # Each version should be tested fail-fast: false matrix: - vllm_verison: [v0.9.1-dev, v0.9.1-dev-openeuler, main, main-openeuler] + vllm_verison: [releases-v0.13.0, releases-v0.13.0-openeuler, main, main-openeuler] name: vLLM Ascend test runs-on: linux-aarch64-a2-1 container: diff --git a/.github/workflows/schedule_nightly_test_a2.yaml b/.github/workflows/schedule_nightly_test_a2.yaml index 9f87f911..c24e6060 100644 --- a/.github/workflows/schedule_nightly_test_a2.yaml +++ b/.github/workflows/schedule_nightly_test_a2.yaml @@ -138,3 +138,49 @@ jobs: model_list: ${{ toJson(matrix.test_config.model_list) }} image: 'swr.cn-southwest-2.myhuaweicloud.com/base_image/ascend-ci/cann:8.5.0-910b-ubuntu22.04-py3.11' upload: false + + doc-test: + name: doc-test + if: always() && (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch') + strategy: + # Each version should be tested + fail-fast: false + matrix: + vllm_verison: [releases-v0.13.0, releases-v0.13.0-openeuler, main, main-openeuler] + runs-on: linux-aarch64-a2-1 + container: + image: swr.cn-southwest-2.myhuaweicloud.com/base_image/ascend-ci/vllm-ascend:${{ matrix.vllm_verison }} + steps: + - name: Check NPU/CANN and git info + run: | + echo "====> Print NPU/CANN info" + npu-smi info + cat /usr/local/Ascend/ascend-toolkit/latest/"$(uname -i)"-linux/ascend_toolkit_install.info + + echo "====> Print vllm-ascend git info" + cd /vllm-workspace/vllm-ascend + git --no-pager log -1 || true + echo "====> Print vllm git info" + cd /vllm-workspace/vllm + git --no-pager log -1 || true + + - name: Checkout vllm-project/vllm-ascend repo + uses: actions/checkout@v6 + + - name: Run vllm-ascend/tests/e2e/run_doctests.sh + run: | + # PWD: /__w/vllm-ascend/vllm-ascend + # Make sure e2e tests are latest + echo "Replacing /vllm-workspace/vllm-ascend/tests/e2e ..." + rm -rf /vllm-workspace/vllm-ascend/tests/e2e + mkdir -p /vllm-workspace/vllm-ascend/tests + # Overwrite e2e and examples + cp -r tests/e2e /vllm-workspace/vllm-ascend/tests/ + cp -r examples /vllm-workspace/vllm-ascend/ + + # Simulate container to enter directory + cd /workspace + + # Run real test + echo "Test:" + /vllm-workspace/vllm-ascend/tests/e2e/run_doctests.sh \ No newline at end of file