[CI/Build] Refactor E2E CI: split monolithic workflow into modular scripts (#162)

Signed-off-by: Chenchao Hu <huchenchao@example.com>
Co-authored-by: Chenchao Hu <huchenchao@example.com>
This commit is contained in:
1916hcc
2026-01-29 18:57:09 +08:00
committed by GitHub
parent 1e1e870a71
commit e28b697458
2 changed files with 139 additions and 123 deletions

View File

@@ -1,56 +1,76 @@
# name: e2e-test
name: e2e-test
# on:
# workflow_call:
# pull_request:
# branches: [main]
# types: [opened, synchronize, reopened]
# push:
# branches: [main]
on:
workflow_call:
pull_request:
branches: [main]
types: [opened, synchronize, reopened]
push:
branches: [main]
# concurrency:
# group: e2e-singlecard
# cancel-in-progress: false
concurrency:
group: e2e-singlecard
cancel-in-progress: false
# jobs:
# e2e:
# name: e2e-test-singlecard
# runs-on:
# - self-hosted
# - Linux
# - X64
jobs:
e2e:
name: e2e-test-singlecard
runs-on:
- self-hosted
- Linux
- X64
# steps:
# - name: Checkout PR code
# uses: actions/checkout@v4
# with:
# fetch-depth: 0
steps:
- name: Checkout PR code
uses: actions/checkout@v4
with:
fetch-depth: 0
# - name: Verify PR workspace
# run: |
# echo "===== WORKSPACE ====="
# pwd
# ls -l
# echo "===== GIT INFO ====="
# git rev-parse HEAD
# git log -1 --oneline
# git status --porcelain
- name: Verify PR workspace
run: |
echo "===== WORKSPACE ====="
pwd
ls -l
echo "===== GIT INFO ====="
git rev-parse HEAD
git log -1 --oneline
git status --porcelain
# - name: Start docker
# run: |
# bash ci/scripts/docker/start_docker.sh
- name: Start docker
run: |
bash ci/scripts/docker/start_docker.sh
# - name: Install enviroments
# run: |
# bash ci/scripts/env/install_env.sh
- name: Install enviroments
env:
PROXY_URL: ${{ secrets.PROXY_URL }}
NO_PROXY_LIST: ${{ secrets.NO_PROXY_LIST }}
run: |
bash ci/scripts/env/install_env.sh
# - name: Start vLLM server
# run: |
# bash ci/scripts/server/start_vllm.sh
- name: Start vLLM server
run: |
bash ci/scripts/server/start_vllm.sh
# - name: Wait for vLLM ready
# run: |
# bash ci/scripts/server/wait_vllm.sh
- name: Wait for vLLM ready
run: |
bash ci/scripts/server/wait_vllm.sh
- name: API Test
run: |
docker exec aiak-e2e-singlecard bash -lc '
curl http://localhost:8356/v1/chat/completions \
-H "Content-Type: application/json" \
-d @- << "EOF"
{
"model": "Qwen3-8B",
"messages": [
{ "role": "user", "content": "Who are you?" }
],
"max_tokens": 200,
"temperature": 0
}
EOF
'
# - name: Accuracy testing
# run: |
@@ -130,12 +150,12 @@
# done
# '
# - name: Set permissions
# if: always()
# run: |
# bash ci/scripts/docker/set_permissions.sh
- name: Set permissions
if: always()
run: |
bash ci/scripts/docker/set_permissions.sh
# - name: Cleanup docker
# if: always()
# run: |
# bash ci/scripts/docker/stop_docker.sh
- name: Cleanup docker
if: always()
run: |
bash ci/scripts/docker/stop_docker.sh

View File

@@ -14,11 +14,7 @@ export VLLM_API_BASE="http://127.0.0.1:${VLLM_PORT}"
export MODEL_PATH="${MODEL_PATH:-/ssd3/models/Qwen3-8B}"
export SERVED_MODEL_NAME="${SERVED_MODEL_NAME:-Qwen3-8B}"
export XPU_VISIBLE_DEVICES="${XPU_VISIBLE_DEVICES:-5}"
# Proxy Configuration
export PROXY_URL="${PROXY_URL:-http://agent.baidu.com:8891}"
export NO_PROXY_LIST="${NO_PROXY_LIST:-localhost,127.0.0.1,::1}"
export XPU_VISIBLE_DEVICES="${XPU_VISIBLE_DEVICES:-4}"
export WORKSPACE_MOUNT="${WORKSPACE_MOUNT:-/home/E2E/workspace:/workspace}"