@@ -153,3 +153,79 @@ jobs:
153153 docker rm -f ${CONTAINER_ID} || true
154154 docker image prune -a --force --filter "until=24h"
155155 docker system df
156+
157+ cuda-test :
158+ needs : [build-image]
159+ if : needs.build-image.result == 'success'
160+ runs-on :
161+ - codebuild-runner-${{ github.run_id }}-${{ github.run_attempt }}
162+ fleet:x86-g6xl-runner
163+ steps :
164+ - name : Checkout DLC source
165+ uses : actions/checkout@v5
166+
167+ - name : ECR login
168+ run : |
169+ aws ecr get-login-password --region ${{ secrets.AWS_REGION }} | docker login --username AWS --password-stdin ${{ secrets.AWS_ACCOUNT_ID }}.dkr.ecr.${{ secrets.AWS_REGION }}.amazonaws.com
170+
171+ - name : Download image URI artifact
172+ uses : actions/download-artifact@v4
173+ with :
174+ name : vllm-ec2-image-uri
175+
176+ - name : Resolve image URI for test
177+ run : |
178+ IMAGE_URI=$(cat image_uri.txt)
179+ echo "Resolved image URI: $IMAGE_URI"
180+ echo "IMAGE_URI=$IMAGE_URI" >> $GITHUB_ENV
181+
182+ - name : Pull image
183+ run : |
184+ docker pull $IMAGE_URI
185+
186+ - name : Checkout vLLM Tests
187+ uses : actions/checkout@v5
188+ with :
189+ repository : vllm-project/vllm
190+ ref : v0.11.0
191+ path : vllm_source
192+
193+ - name : Start container
194+ run : |
195+ CONTAINER_ID=$(docker run -d -it --rm --gpus=all --entrypoint /bin/bash \
196+ -v ${HOME}/.cache/huggingface:/root/.cache/huggingface \
197+ -v ${HOME}/.cache/vllm:/root/.cache/vllm \
198+ -v ./vllm_source:/workdir --workdir /workdir \
199+ -e HUGGING_FACE_HUB_TOKEN=${{ secrets.HUGGING_FACE_HUB_TOKEN }} \
200+ ${IMAGE_URI})
201+ echo "CONTAINER_ID=$CONTAINER_ID" >> $GITHUB_ENV
202+
203+ - name : Setup for vLLM Test
204+ run : |
205+ docker exec ${CONTAINER_ID} sh -c '
206+ set -eux
207+ uv pip install --system -r requirements/common.txt -r requirements/dev.txt --torch-backend=auto
208+ uv pip install --system pytest pytest-asyncio
209+ uv pip install --system -e tests/vllm_test_utils
210+ uv pip install --system hf_transfer
211+ mkdir src
212+ mv vllm src/vllm
213+ '
214+
215+ - name : Run vLLM Tests
216+ run : |
217+ docker exec ${CONTAINER_ID} sh -c '
218+ set -eux
219+ nvidia-smi
220+
221+ # Platform Tests (CUDA) # 4min
222+ cd /workdir/tests
223+ pytest -v -s cuda/test_cuda_context.py
224+ '
225+
226+ - name : Cleanup container and images
227+ if : always()
228+ run : |
229+ docker rm -f ${CONTAINER_ID} || true
230+ docker image prune -a --force --filter "until=24h"
231+ docker system df
0 commit comments