Skip to content

Commit 3ecae5e

Browse files
committed
Move tests to self-hosted runners
1 parent e099b93 commit 3ecae5e

5 files changed

Lines changed: 72 additions & 16 deletions

File tree

.github/workflows/build-wheel.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,16 @@ jobs:
3838
- name: Verify wheel
3939
run: |
4040
pip install dist/*.whl
41-
python -c "import vllm_fl; print('vllm_fl imported successfully')"
41+
# Verify package metadata and file structure (full import requires flag_gems runtime)
42+
python -c "
43+
from importlib.metadata import metadata, files
44+
meta = metadata('vllm-plugin-fl')
45+
print(f\"Package: {meta['Name']} {meta['Version']}\")
46+
pkg_files = [str(f) for f in files('vllm-plugin-fl')]
47+
assert any('vllm_fl' in f for f in pkg_files), 'vllm_fl module not found in wheel'
48+
print(f'Installed files: {len(pkg_files)}')
49+
print('Wheel verified successfully')
50+
"
4251
4352
- name: Upload wheel
4453
if: inputs.upload-artifact

.github/workflows/functional-test.yml

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,45 @@ on:
1919
jobs:
2020
functional-tests:
2121
name: Functional Tests (GPU)
22-
runs-on: [self-hosted, gpu]
22+
runs-on: [self-hosted, gpu-8]
2323
timeout-minutes: ${{ inputs.timeout-minutes }}
24+
container:
25+
image: harbor.baai.ac.cn/flagscale/cuda12.8.1-cudnn9.15.1-python3.12-torch2.7.1-train:2512031616
26+
volumes:
27+
- /data:/data
28+
options: >-
29+
--privileged
30+
--gpus all
31+
--network=host
32+
--ipc=host
33+
--device=/dev/infiniband
34+
--shm-size 512g
35+
--ulimit memlock=-1
36+
--cap-add=SYS_PTRACE
2437
2538
steps:
2639
- uses: actions/checkout@v4
2740

2841
- name: Check GPU availability
2942
run: nvidia-smi
3043

44+
- name: Install FlagGems
45+
run: |
46+
pip install -U scikit-build-core==0.11 pybind11 ninja cmake
47+
git clone https://github.com/flagos-ai/FlagGems /tmp/FlagGems
48+
pip install --no-build-isolation /tmp/FlagGems
49+
50+
- name: Install FlagCX
51+
run: |
52+
git clone https://github.com/flagos-ai/FlagCX.git /tmp/FlagCX
53+
cd /tmp/FlagCX
54+
git checkout v0.9.0
55+
git submodule update --init --recursive
56+
make USE_NVIDIA=1
57+
echo "FLAGCX_PATH=/tmp/FlagCX" >> $GITHUB_ENV
58+
cd plugin/torch/
59+
FLAGCX_ADAPTOR=nvidia pip install --no-build-isolation .
60+
3161
- name: Install dependencies
3262
run: |
3363
pip install --upgrade pip

.github/workflows/unit-test.yml

Lines changed: 29 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -19,23 +19,40 @@ on:
1919
jobs:
2020
unit-tests:
2121
name: Unit Tests
22-
runs-on: ubuntu-latest
22+
runs-on: self-hosted
23+
container:
24+
image: harbor.baai.ac.cn/flagscale/cuda12.8.1-cudnn9.15.1-python3.12-torch2.7.1-train:2512031616
25+
volumes:
26+
- /data:/data
27+
options: >-
28+
--privileged
29+
--gpus all
30+
--network=host
31+
--ipc=host
32+
--device=/dev/infiniband
33+
--shm-size 512g
34+
--ulimit memlock=-1
35+
--cap-add=SYS_PTRACE
2336
2437
steps:
2538
- uses: actions/checkout@v4
2639

27-
- name: Set up Python
28-
uses: actions/setup-python@v5
29-
with:
30-
python-version: "3.12"
40+
- name: Install FlagGems
41+
run: |
42+
pip install -U scikit-build-core==0.11 pybind11 ninja cmake
43+
git clone https://github.com/flagos-ai/FlagGems /tmp/FlagGems
44+
pip install --no-build-isolation /tmp/FlagGems
3145
32-
- name: Cache pip packages
33-
uses: actions/cache@v4
34-
with:
35-
path: ~/.cache/pip
36-
key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt', 'pyproject.toml') }}
37-
restore-keys: |
38-
${{ runner.os }}-pip-
46+
- name: Install FlagCX
47+
run: |
48+
git clone https://github.com/flagos-ai/FlagCX.git /tmp/FlagCX
49+
cd /tmp/FlagCX
50+
git checkout v0.9.0
51+
git submodule update --init --recursive
52+
make USE_NVIDIA=1
53+
echo "FLAGCX_PATH=/tmp/FlagCX" >> $GITHUB_ENV
54+
cd plugin/torch/
55+
FLAGCX_ADAPTOR=nvidia pip install --no-build-isolation .
3956
4057
- name: Install dependencies
4158
run: |

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ test = [
2828
"torch>=2.7.1",
2929
"pyyaml",
3030
"decorator",
31-
"vllm==0.13.0",
31+
"vllm[audio]==0.13.0",
3232
]
3333

3434
[tool.setuptools.packages.find]

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def _read_requirements(filename: str) -> list[str]:
8080
"torch>=2.7.1",
8181
"pyyaml",
8282
"decorator",
83-
"vllm==0.13.0",
83+
"vllm[audio]==0.13.0",
8484
],
8585
},
8686
entry_points={

0 commit comments

Comments
 (0)