ci: enhance xeon ci (#9395)

This commit is contained in:
DiweiSun
2025-08-21 18:35:17 +08:00
committed by GitHub
parent 64574ef8c0
commit 029e0af31d
3 changed files with 81 additions and 18 deletions

View File

@@ -28,6 +28,8 @@ jobs:
if: (github.repository == 'sgl-project/sglang' || github.event_name == 'pull_request') &&
github.event.pull_request.draft == false
runs-on: xeon-gnr
env:
HF_HOME: /home/sdp/.cache/huggingface
strategy:
matrix:
build_type: ['all']
@@ -46,6 +48,7 @@ jobs:
run: |
docker run -dt \
-v ${{ github.workspace }}:/sglang-checkout/ --ipc=host \
-v ${HF_HOME}:/root/.cache/huggingface \
--name ci_sglang_xeon \
sglang_xeon
@@ -67,13 +70,13 @@ jobs:
- name: Run unit tests
if: steps.check_amx.outcome == 'success'
timeout-minutes: 20
timeout-minutes: 30
run: |
docker exec -w /sglang-checkout/ ci_sglang_xeon \
bash -c "cd ./test/srt && python3 run_suite.py --suite per-commit-cpu"
- name: Change permission
timeout-minutes: 20
timeout-minutes: 2
run: |
docker exec -u root ci_sglang_xeon bash -c "
rm -rf /tmp/ci-home &&