From 918e4e9850d9b46da8f01a4d35d9fef754922374 Mon Sep 17 00:00:00 2001 From: plusNew001 <95567040+plusNew001@users.noreply.github.com> Date: Wed, 22 Oct 2025 19:43:03 +0800 Subject: [PATCH] [XPU] Change XPU stable third-party version (#4524) * add xpu ci case * Add xDeepEP download and build steps Download and build xDeepEP before running tests. * Fix formatting and add missing sleep command * Update Docker image version in CI workflow * Modify run_ci_xpu.sh for log cleanup and error handling Clean up log files before running tests and output worker log on failure. * Enhance test_ep.py with process management and assertions Refactor test function to include process cleanup and assertions. * Replace test_fastdeploy_llm with test_fd_ep * Fix conditional statement in run_ci_xpu.sh * Update test_ep.py for string handling and formatting Fix string encoding issues and improve readability. * Rename test_ep.py to run_ep.py * Change test script from test_ep.py to run_ep.py * Update dependency versions for stable release * Install pytest-timeout and modify test execution Added pytest-timeout installation and updated test command. --- custom_ops/xpu_ops/download_dependencies.sh | 4 ++-- scripts/run_ci_xpu.sh | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/custom_ops/xpu_ops/download_dependencies.sh b/custom_ops/xpu_ops/download_dependencies.sh index e5e3ddcbd..7e5ff7586 100644 --- a/custom_ops/xpu_ops/download_dependencies.sh +++ b/custom_ops/xpu_ops/download_dependencies.sh @@ -12,8 +12,8 @@ rm -rf "$THIRDPARTY_DIR" mkdir -p "$THIRDPARTY_DIR" || exit 1 if [ "$1" == "stable" ]; then - version_xvllm="20250902" - version_xtdk="3.4.40.1" + version_xvllm="20251017" + version_xtdk="3.4.0.1" else version_xvllm="latest" version_xtdk="latest" diff --git a/scripts/run_ci_xpu.sh b/scripts/run_ci_xpu.sh index 9afd81249..1b339609e 100644 --- a/scripts/run_ci_xpu.sh +++ b/scripts/run_ci_xpu.sh @@ -32,6 +32,7 @@ python -m pip install openai -U python -m pip uninstall -y triton python -m pip install triton==3.3.0 python -m pip install pytest +python -m pip install pytest-timeout unset http_proxy unset https_proxy unset no_proxy @@ -197,7 +198,7 @@ cd xDeepEP bash build.sh cd - -python tests/ci_use/XPU_45T/run_ep.py +python -m pytest -s --timeout=300 tests/ci_use/XPU_45T/run_ep.py ep_exit_code=$? if [ ${ep_exit_code} -ne 0 ]; then