-
Notifications
You must be signed in to change notification settings - Fork 580
ci: add support for vllm sanity testing on Github #2526
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
# SPDX-FileCopyrightText: Copyright (c) 2024-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
name: NVIDIA Github Validation | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- "pull-request/[0-9]+" | ||
|
||
nv-tusharma marked this conversation as resolved.
Show resolved
Hide resolved
|
||
jobs: | ||
build-test: | ||
runs-on: gpu-l40-runners | ||
strategy: | ||
matrix: | ||
framework: [vllm] | ||
include: | ||
- framework: vllm | ||
target: runtime | ||
pytest_marks: "e2e and vllm and gpu_1 and not slow" | ||
# Do not cancel main branch runs | ||
concurrency: | ||
group: ${{ matrix.framework }}-build-test-${{ github.ref_name || github.run_id }} | ||
cancel-in-progress: ${{ github.ref_name != 'main' }} | ||
|
||
name: Build and Test - ${{ matrix.framework }} | ||
env: | ||
CONTAINER_ID: test_${{ github.run_id }}_${{ github.run_attempt }}_${{ github.job }}_${{ matrix.framework }} | ||
PYTEST_XML_FILE: pytest_test_report.xml | ||
FRAMEWORK: ${{ matrix.framework }} | ||
TARGET: ${{ matrix.target }} | ||
PYTEST_MARKS: ${{ matrix.pytest_marks }} | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
- name: Login to NGC | ||
if: github.event.pull_request.head.repo.full_name == github.repository || github.event_name == 'push' | ||
run: | | ||
echo "${{ secrets.NGC_CI_ACCESS_TOKEN }}" | docker login nvcr.io -u '$oauthtoken' --password-stdin | ||
- name: Cleanup | ||
if: always() | ||
run: | | ||
docker system prune -af | ||
- name: Debug | ||
run: | | ||
lsmod | grep nvidia | ||
sudo dmesg | grep -i nvrm || true | ||
nvidia-smi | ||
- name: Build image | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.CI_TOKEN }} | ||
saturley-hall marked this conversation as resolved.
Show resolved
Hide resolved
|
||
AWS_DEFAULT_REGION: ${{ secrets.AWS_DEFAULT_REGION }} | ||
SCCACHE_S3_BUCKET: ${{ secrets.SCCACHE_S3_BUCKET }} | ||
run: | | ||
./container/build.sh --tag ${{ matrix.framework }}:latest \ | ||
--target ${{ matrix.target }} \ | ||
--framework ${{ matrix.framework }} \ | ||
--use-sccache \ | ||
--sccache-bucket "$SCCACHE_S3_BUCKET" \ | ||
--sccache-region "$AWS_DEFAULT_REGION" | ||
- name: Run pytest | ||
nv-tusharma marked this conversation as resolved.
Show resolved
Hide resolved
|
||
run: | | ||
docker run --rm --gpus all -w /workspace \ | ||
--name ${{ env.CONTAINER_ID }}_pytest \ | ||
${{ matrix.framework }}:latest \ | ||
bash -c "pytest -xsv --basetemp=/tmp --junitxml=${{ env.PYTEST_XML_FILE }} -m \"${{ env.PYTEST_MARKS }}\"" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.