Skip to content
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

[CI] Add integration test #759

Merged
merged 1 commit into from
Feb 27, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions .github/workflows/installation-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,25 @@ on:
branches: [ "main" ]
paths:
- '.github/workflows/**'
- 'build/container/**'
- 'build/container/**'
- 'config/**'
- 'pkg/**'
- 'test/**'
- 'cmd/**'
- 'python/**'
- 'python/**'
- 'Makefile'
- 'go.mod'
- 'go.sum'
pull_request:
branches: [ "main" ]
paths:
- '.github/workflows/**'
- 'build/container/**'
- 'build/container/**'
- 'config/**'
- 'pkg/**'
- 'test/**'
- 'cmd/**'
- 'python/**'
- 'python/**'
- 'Makefile'
- 'go.mod'
- 'go.sum'
Expand Down Expand Up @@ -66,7 +66,7 @@ jobs:

- name: Download all image artifacts
uses: actions/download-artifact@v4

- name: Free disk space
run: |-
# https://github.com/actions/runner-images/issues/2840#issuecomment-2272410832
Expand Down Expand Up @@ -108,7 +108,7 @@ jobs:
run: |
for image in controller-manager gateway-plugins runtime metadata-service; do
docker load < ${image}-image/${image}.tar

# Retag the image
# This is for application integration, since it is not that easy to override all commits in manifest
# It is better to use nightly to represent the latest image
Expand All @@ -134,21 +134,21 @@ jobs:
docker build -t aibrix/vllm-mock:nightly -f Dockerfile .
kind load docker-image aibrix/vllm-mock:nightly --name installation-test
kubectl create -k config/mock

- name: Check pod status
run: |
sleep 30s
kubectl get pods --all-namespaces
kubectl wait pod --all --for=condition=ready --all-namespaces --timeout=300s

kubectl port-forward svc/llama2-7b 8000:8000 &
kubectl -n envoy-gateway-system port-forward service/envoy-aibrix-system-aibrix-eg-903790dc 8888:80 &

- name: Run e2e tests
run: |
kind get kubeconfig --name installation-test > /tmp/admin.conf
export KUBECONFIG=/tmp/admin.conf
make test-e2e

- name: Clean up
run: kind delete cluster --name installation-test
4 changes: 3 additions & 1 deletion .github/workflows/lint-and-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,6 @@ jobs:
restore-keys: |
${{ runner.os }}-go-
- name: Run Unit Tests
run: make test
run: make test
- name: Run Integration Tests
run: make test-integration