-
Notifications
You must be signed in to change notification settings - Fork 93
test(e2e): basic E2Es #440
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
sjmonson
merged 1 commit into
vllm-project:main
from
AlonKellner-RedHat:feat/e2e-github-action
Nov 6, 2025
Merged
Changes from all commits
Commits
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
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,69 @@ | ||
| # This workflow builds a Docker artifact, caches it based on the Dockerfile content, | ||
| # and then runs e2e tests using that artifact. | ||
|
|
||
| name: E2E Tests | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - main | ||
| pull_request: | ||
| branches: | ||
| - main | ||
| workflow_dispatch: | ||
|
|
||
| jobs: | ||
| build-and-test: | ||
| runs-on: ubuntu-latest | ||
|
|
||
| steps: | ||
| - name: Check out repository | ||
| uses: actions/checkout@v4 | ||
|
|
||
| # Cache the binary artifact | ||
| # The key is based on the runner's OS and the hash of the Dockerfile. | ||
| # If the Dockerfile changes, the hash changes, and a new cache is created. | ||
| - name: Cache vLLM-sim binary | ||
| id: cache-vllm-sim | ||
| uses: actions/cache@v4 | ||
| with: | ||
| # The path to the file you want to cache | ||
| path: bin/llm-d-inference-sim | ||
| # The unique key for the cache | ||
| key: vllm-sim-binary-${{ runner.os }}-${{ hashFiles('tests/e2e/vllm-sim.Dockerfile') }} | ||
|
|
||
| # Set up Docker Buildx (required for the 'docker build -o' command) | ||
| - name: Set up Docker Buildx | ||
| uses: docker/setup-buildx-action@v3 | ||
|
|
||
| # Conditionally build the artifact | ||
| # This step only runs if the cache step above did NOT find a match. | ||
| # 'steps.cache-vllm-sim.outputs.cache-hit' will be 'true' if the cache was restored. | ||
| - name: Build vLLM-sim artifact (if not cached) | ||
| if: steps.cache-vllm-sim.outputs.cache-hit != 'true' | ||
| run: | | ||
| echo "Cache miss. Building artifact..." | ||
| docker build . -f tests/e2e/vllm-sim.Dockerfile -o type=local,dest=./ | ||
| shell: bash | ||
|
|
||
| - name: Verify artifact | ||
| run: | | ||
| if [ -f "bin/llm-d-inference-sim" ]; then | ||
| echo "Artifact found." | ||
| else | ||
| echo "ERROR: Artifact bin/llm-d-inference-sim not found!" | ||
| exit 1 | ||
| fi | ||
| shell: bash | ||
|
|
||
| - name: Set up Python | ||
| uses: actions/setup-python@v5 | ||
| with: | ||
| python-version: ${{ matrix.python }} | ||
| - name: Install dependencies | ||
| run: | | ||
| curl -sSL https://pdm-project.org/install-pdm.py | python3 - | ||
| pip install tox tox-pdm | ||
| - name: Run E2E tests | ||
| run: tox -e test-e2e | ||
| shell: bash |
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
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
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
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
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 |
|---|---|---|
|
|
@@ -230,3 +230,6 @@ src/ui/next-env.d.ts | |
| !src/ui/public/manifest.json | ||
| !src/ui/serve.json | ||
| .eslintcache | ||
|
|
||
| # e2e tests | ||
| bin/ | ||
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.