[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:
124
.github/workflows/run-e2e.yml
vendored
124
.github/workflows/run-e2e.yml
vendored
@@ -1,56 +1,76 @@
|
|||||||
# name: e2e-test
|
name: e2e-test
|
||||||
|
|
||||||
# on:
|
on:
|
||||||
# workflow_call:
|
workflow_call:
|
||||||
# pull_request:
|
pull_request:
|
||||||
# branches: [main]
|
branches: [main]
|
||||||
# types: [opened, synchronize, reopened]
|
types: [opened, synchronize, reopened]
|
||||||
# push:
|
push:
|
||||||
# branches: [main]
|
branches: [main]
|
||||||
|
|
||||||
# concurrency:
|
concurrency:
|
||||||
# group: e2e-singlecard
|
group: e2e-singlecard
|
||||||
# cancel-in-progress: false
|
cancel-in-progress: false
|
||||||
|
|
||||||
# jobs:
|
jobs:
|
||||||
# e2e:
|
e2e:
|
||||||
# name: e2e-test-singlecard
|
name: e2e-test-singlecard
|
||||||
# runs-on:
|
runs-on:
|
||||||
# - self-hosted
|
- self-hosted
|
||||||
# - Linux
|
- Linux
|
||||||
# - X64
|
- X64
|
||||||
|
|
||||||
# steps:
|
steps:
|
||||||
# - name: Checkout PR code
|
- name: Checkout PR code
|
||||||
# uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
# with:
|
with:
|
||||||
# fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
# - name: Verify PR workspace
|
- name: Verify PR workspace
|
||||||
# run: |
|
run: |
|
||||||
# echo "===== WORKSPACE ====="
|
echo "===== WORKSPACE ====="
|
||||||
# pwd
|
pwd
|
||||||
# ls -l
|
ls -l
|
||||||
# echo "===== GIT INFO ====="
|
echo "===== GIT INFO ====="
|
||||||
# git rev-parse HEAD
|
git rev-parse HEAD
|
||||||
# git log -1 --oneline
|
git log -1 --oneline
|
||||||
# git status --porcelain
|
git status --porcelain
|
||||||
|
|
||||||
# - name: Start docker
|
- name: Start docker
|
||||||
# run: |
|
run: |
|
||||||
# bash ci/scripts/docker/start_docker.sh
|
bash ci/scripts/docker/start_docker.sh
|
||||||
|
|
||||||
# - name: Install enviroments
|
- name: Install enviroments
|
||||||
# run: |
|
env:
|
||||||
# bash ci/scripts/env/install_env.sh
|
PROXY_URL: ${{ secrets.PROXY_URL }}
|
||||||
|
NO_PROXY_LIST: ${{ secrets.NO_PROXY_LIST }}
|
||||||
|
run: |
|
||||||
|
bash ci/scripts/env/install_env.sh
|
||||||
|
|
||||||
# - name: Start vLLM server
|
- name: Start vLLM server
|
||||||
# run: |
|
run: |
|
||||||
# bash ci/scripts/server/start_vllm.sh
|
bash ci/scripts/server/start_vllm.sh
|
||||||
|
|
||||||
# - name: Wait for vLLM ready
|
- name: Wait for vLLM ready
|
||||||
# run: |
|
run: |
|
||||||
# bash ci/scripts/server/wait_vllm.sh
|
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
|
# - name: Accuracy testing
|
||||||
# run: |
|
# run: |
|
||||||
@@ -130,12 +150,12 @@
|
|||||||
# done
|
# done
|
||||||
# '
|
# '
|
||||||
|
|
||||||
# - name: Set permissions
|
- name: Set permissions
|
||||||
# if: always()
|
if: always()
|
||||||
# run: |
|
run: |
|
||||||
# bash ci/scripts/docker/set_permissions.sh
|
bash ci/scripts/docker/set_permissions.sh
|
||||||
|
|
||||||
# - name: Cleanup docker
|
- name: Cleanup docker
|
||||||
# if: always()
|
if: always()
|
||||||
# run: |
|
run: |
|
||||||
# bash ci/scripts/docker/stop_docker.sh
|
bash ci/scripts/docker/stop_docker.sh
|
||||||
|
|||||||
@@ -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 MODEL_PATH="${MODEL_PATH:-/ssd3/models/Qwen3-8B}"
|
||||||
export SERVED_MODEL_NAME="${SERVED_MODEL_NAME:-Qwen3-8B}"
|
export SERVED_MODEL_NAME="${SERVED_MODEL_NAME:-Qwen3-8B}"
|
||||||
|
|
||||||
export XPU_VISIBLE_DEVICES="${XPU_VISIBLE_DEVICES:-5}"
|
export XPU_VISIBLE_DEVICES="${XPU_VISIBLE_DEVICES:-4}"
|
||||||
|
|
||||||
# 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 WORKSPACE_MOUNT="${WORKSPACE_MOUNT:-/home/E2E/workspace:/workspace}"
|
export WORKSPACE_MOUNT="${WORKSPACE_MOUNT:-/home/E2E/workspace:/workspace}"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user