Skip to content

Commit 92245f2

Browse files
kerthcetjolfr
authored andcommitted
[CI] Add integration test (vllm-project#759)
Add integration test Signed-off-by: kerthcet <[email protected]> Signed-off-by: jolfr <[email protected]>
1 parent ed414ce commit 92245f2

File tree

2 files changed

+13
-11
lines changed

2 files changed

+13
-11
lines changed

.github/workflows/installation-tests.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,25 +6,25 @@ on:
66
branches: [ "main" ]
77
paths:
88
- '.github/workflows/**'
9-
- 'build/container/**'
9+
- 'build/container/**'
1010
- 'config/**'
1111
- 'pkg/**'
1212
- 'test/**'
1313
- 'cmd/**'
14-
- 'python/**'
14+
- 'python/**'
1515
- 'Makefile'
1616
- 'go.mod'
1717
- 'go.sum'
1818
pull_request:
1919
branches: [ "main" ]
2020
paths:
2121
- '.github/workflows/**'
22-
- 'build/container/**'
22+
- 'build/container/**'
2323
- 'config/**'
2424
- 'pkg/**'
2525
- 'test/**'
2626
- 'cmd/**'
27-
- 'python/**'
27+
- 'python/**'
2828
- 'Makefile'
2929
- 'go.mod'
3030
- 'go.sum'
@@ -66,7 +66,7 @@ jobs:
6666

6767
- name: Download all image artifacts
6868
uses: actions/download-artifact@v4
69-
69+
7070
- name: Free disk space
7171
run: |-
7272
# https://github.com/actions/runner-images/issues/2840#issuecomment-2272410832
@@ -108,7 +108,7 @@ jobs:
108108
run: |
109109
for image in controller-manager gateway-plugins runtime metadata-service; do
110110
docker load < ${image}-image/${image}.tar
111-
111+
112112
# Retag the image
113113
# This is for application integration, since it is not that easy to override all commits in manifest
114114
# It is better to use nightly to represent the latest image
@@ -134,21 +134,21 @@ jobs:
134134
docker build -t aibrix/vllm-mock:nightly -f Dockerfile .
135135
kind load docker-image aibrix/vllm-mock:nightly --name installation-test
136136
kubectl create -k config/mock
137-
137+
138138
- name: Check pod status
139139
run: |
140140
sleep 30s
141141
kubectl get pods --all-namespaces
142142
kubectl wait pod --all --for=condition=ready --all-namespaces --timeout=300s
143-
143+
144144
kubectl port-forward svc/llama2-7b 8000:8000 &
145145
kubectl -n envoy-gateway-system port-forward service/envoy-aibrix-system-aibrix-eg-903790dc 8888:80 &
146-
146+
147147
- name: Run e2e tests
148148
run: |
149149
kind get kubeconfig --name installation-test > /tmp/admin.conf
150150
export KUBECONFIG=/tmp/admin.conf
151151
make test-e2e
152-
152+
153153
- name: Clean up
154154
run: kind delete cluster --name installation-test

.github/workflows/lint-and-tests.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,4 +65,6 @@ jobs:
6565
restore-keys: |
6666
${{ runner.os }}-go-
6767
- name: Run Unit Tests
68-
run: make test
68+
run: make test
69+
- name: Run Integration Tests
70+
run: make test-integration

0 commit comments

Comments
 (0)