Skip to content

Commit

Permalink
merge transformer, explainer, grpc and predictor tests
Browse files Browse the repository at this point in the history
Signed-off-by: Sivanantham Chinnaiyan <[email protected]>
  • Loading branch information
sivanantha321 committed Feb 10, 2024
1 parent 6a3f971 commit 6c13169
Show file tree
Hide file tree
Showing 5 changed files with 160 additions and 171 deletions.
324 changes: 156 additions & 168 deletions .github/workflows/e2e-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -226,11 +226,31 @@ jobs:
with:
image: "kserve/paddleserver:${{ github.sha }}"

- name: Download custom model grpc image
uses: ishworkh/docker-image-artifact-download@v1
with:
image: "kserve/custom-model-grpc:${{ github.sha }}"

- name: Download custom transformer grpc image
uses: ishworkh/docker-image-artifact-download@v1
with:
image: "kserve/custom-image-transformer-grpc:${{ github.sha }}"

- name: Download transformer image
uses: ishworkh/docker-image-artifact-download@v1
with:
image: "kserve/image-transformer:${{ github.sha }}"

- name: Download alibi image
uses: ishworkh/docker-image-artifact-download@v1
with:
image: "kserve/alibi-explainer:${{ github.sha }}"

- name: Download art explainer image
uses: ishworkh/docker-image-artifact-download@v1
with:
image: "kserve/art-explainer:${{ github.sha }}"

- name: Download success_200_isvc predictor image
uses: ishworkh/docker-image-artifact-download@v1
with:
Expand All @@ -254,7 +274,7 @@ jobs:
- name: Run all E2E tests except graph
timeout-minutes: 60
run: |
./test/scripts/gh-actions/run-e2e-tests.sh "fast or pmml or slow" "6"
./test/scripts/gh-actions/run-e2e-tests.sh "fast or pmml or slow or explainer or transformer or mms or collocation or grpc" "6"
- name: Run E2E tests for graph
timeout-minutes: 120
Expand Down Expand Up @@ -346,7 +366,7 @@ jobs:
run: |
./test/scripts/gh-actions/status-check.sh
# test-slow:
# test-explainer:
# runs-on: ubuntu-latest
# needs:
# [kserve-image-build, predictor-runtime-build, explainer-runtime-build]
Expand All @@ -364,117 +384,85 @@ jobs:
# - uses: ./.github/actions/kserve-dep-setup
# - uses: ./.github/actions/base-download
#
# - name: Download sklearn server image
# uses: ishworkh/docker-image-artifact-download@v1
# with:
# image: "kserve/sklearnserver:${{ github.sha }}"
#
#
#
# - name: Install Poetry and version plugin
# run: ./test/scripts/gh-actions/setup-poetry.sh
#
# - name: Install KServe
# run: |
# ./test/scripts/gh-actions/setup-kserve.sh
#
# kubectl get pods -n kserve
# kubectl describe pods -n kserve
#
# - name: Run E2E tests
# timeout-minutes: 40
# run: |
# ./test/scripts/gh-actions/run-e2e-tests.sh "explainer" "6"
#
# - name: Check system status
# if: always()
# run: |
# ./test/scripts/gh-actions/status-check.sh

test-explainer:
runs-on: ubuntu-latest
needs:
[kserve-image-build, predictor-runtime-build, explainer-runtime-build]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: "1.21"
- uses: actions/setup-python@v4
with:
python-version: "3.9"

- uses: ./.github/actions/free-up-disk-space
- uses: ./.github/actions/minikube-setup
- uses: ./.github/actions/kserve-dep-setup
- uses: ./.github/actions/base-download

- name: Download sklearn server image
uses: ishworkh/docker-image-artifact-download@v1
with:
image: "kserve/sklearnserver:${{ github.sha }}"

- name: Download alibi image
uses: ishworkh/docker-image-artifact-download@v1
with:
image: "kserve/alibi-explainer:${{ github.sha }}"

- name: Download art explainer image
uses: ishworkh/docker-image-artifact-download@v1
with:
image: "kserve/art-explainer:${{ github.sha }}"

- name: Install Poetry and version plugin
run: ./test/scripts/gh-actions/setup-poetry.sh

- name: Install KServe
run: |
./test/scripts/gh-actions/setup-kserve.sh
kubectl get pods -n kserve
kubectl describe pods -n kserve
- name: Run E2E tests
timeout-minutes: 40
run: |
./test/scripts/gh-actions/run-e2e-tests.sh "explainer" "6"
- name: Check system status
if: always()
run: |
./test/scripts/gh-actions/status-check.sh
test-transformer-mms:
runs-on: ubuntu-latest
needs:
[kserve-image-build, predictor-runtime-build, explainer-runtime-build]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: "1.21"
- uses: actions/setup-python@v4
with:
python-version: "3.9"

- uses: ./.github/actions/free-up-disk-space
- uses: ./.github/actions/minikube-setup
- uses: ./.github/actions/kserve-dep-setup
- uses: ./.github/actions/base-download

- name: Download sklearn server image
uses: ishworkh/docker-image-artifact-download@v1
with:
image: "kserve/sklearnserver:${{ github.sha }}"

- name: Download transformer image
uses: ishworkh/docker-image-artifact-download@v1
with:
image: "kserve/image-transformer:${{ github.sha }}"

- name: Download xgb server image
uses: ishworkh/docker-image-artifact-download@v1
with:
image: "kserve/xgbserver:${{ github.sha }}"

- name: Install Poetry and version plugin
run: ./test/scripts/gh-actions/setup-poetry.sh

- name: Install KServe
run: |
./test/scripts/gh-actions/setup-kserve.sh
kubectl get pods -n kserve
kubectl describe pods -n kserve
- name: Run E2E tests
timeout-minutes: 40
run: |
./test/scripts/gh-actions/run-e2e-tests.sh "transformer or mms or collocation" "6"
- name: Check system status
if: always()
run: |
./test/scripts/gh-actions/status-check.sh
# test-transformer-mms:
# runs-on: ubuntu-latest
# needs:
# [kserve-image-build, predictor-runtime-build, explainer-runtime-build]
# steps:
# - uses: actions/checkout@v3
# - uses: actions/setup-go@v4
# with:
# go-version: "1.21"
# - uses: actions/setup-python@v4
# with:
# python-version: "3.9"
#
# - uses: ./.github/actions/free-up-disk-space
# - uses: ./.github/actions/minikube-setup
# - uses: ./.github/actions/kserve-dep-setup
# - uses: ./.github/actions/base-download
#
# - name: Download sklearn server image
# uses: ishworkh/docker-image-artifact-download@v1
# with:
# image: "kserve/sklearnserver:${{ github.sha }}"
#
# - name: Download transformer image
# uses: ishworkh/docker-image-artifact-download@v1
# with:
# image: "kserve/image-transformer:${{ github.sha }}"
#
# - name: Download xgb server image
# uses: ishworkh/docker-image-artifact-download@v1
# with:
# image: "kserve/xgbserver:${{ github.sha }}"
#
# - name: Install Poetry and version plugin
# run: ./test/scripts/gh-actions/setup-poetry.sh
#
# - name: Install KServe
# run: |
# ./test/scripts/gh-actions/setup-kserve.sh
#
# kubectl get pods -n kserve
# kubectl describe pods -n kserve
#
# - name: Run E2E tests
# timeout-minutes: 40
# run: |
# ./test/scripts/gh-actions/run-e2e-tests.sh "transformer or mms or collocation" "6"
#
# - name: Check system status
# if: always()
# run: |
# ./test/scripts/gh-actions/status-check.sh

test-qpext:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -520,67 +508,67 @@ jobs:
run: |
./test/scripts/gh-actions/status-check.sh
test-grpc:
runs-on: ubuntu-latest
needs:
[kserve-image-build, predictor-runtime-build, explainer-runtime-build]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: "1.21"
- uses: actions/setup-python@v4
with:
python-version: "3.9"

- uses: ./.github/actions/free-up-disk-space
- uses: ./.github/actions/minikube-setup
- uses: ./.github/actions/kserve-dep-setup
- uses: ./.github/actions/base-download

- name: Download custom model grpc image
uses: ishworkh/docker-image-artifact-download@v1
with:
image: "kserve/custom-model-grpc:${{ github.sha }}"

- name: Download custom transformer image
uses: ishworkh/docker-image-artifact-download@v1
with:
image: "kserve/image-transformer:${{ github.sha }}"

- name: Download custom transformer grpc image
uses: ishworkh/docker-image-artifact-download@v1
with:
image: "kserve/custom-image-transformer-grpc:${{ github.sha }}"

- name: Download xgb server image
uses: ishworkh/docker-image-artifact-download@v1
with:
image: "kserve/xgbserver:${{ github.sha }}"

- name: Download lgb server image
uses: ishworkh/docker-image-artifact-download@v1
with:
image: "kserve/lgbserver:${{ github.sha }}"

- name: Install Poetry and version plugin
run: ./test/scripts/gh-actions/setup-poetry.sh

- name: Install KServe
run: |
./test/scripts/gh-actions/setup-kserve.sh
kubectl get pods -n kserve
kubectl describe pods -n kserve
- name: Run E2E tests
timeout-minutes: 40
run: |
./test/scripts/gh-actions/run-e2e-tests.sh "grpc" "6"
- name: Check system status
if: always()
run: |
./test/scripts/gh-actions/status-check.sh
# test-grpc:
# runs-on: ubuntu-latest
# needs:
# [kserve-image-build, predictor-runtime-build, explainer-runtime-build]
# steps:
# - uses: actions/checkout@v3
# - uses: actions/setup-go@v4
# with:
# go-version: "1.21"
# - uses: actions/setup-python@v4
# with:
# python-version: "3.9"
#
# - uses: ./.github/actions/free-up-disk-space
# - uses: ./.github/actions/minikube-setup
# - uses: ./.github/actions/kserve-dep-setup
# - uses: ./.github/actions/base-download
#
# - name: Download custom model grpc image
# uses: ishworkh/docker-image-artifact-download@v1
# with:
# image: "kserve/custom-model-grpc:${{ github.sha }}"
#
# - name: Download custom transformer image
# uses: ish workh/docker-image-artifact-download@v1
# with:
# image: "kserve/image-transformer:${{ github.sha }}"
#
# - name: Download custom transformer grpc image
# uses: ishworkh/docker-image-artifact-download@v1
# with:
# image: "kserve/custom-image-transformer-grpc:${{ github.sha }}"
#
# - name: Download xgb server image
# uses: ishworkh/docker-image-artifact-download@v1
# with:
# image: "kserve/xgbserver:${{ github.sha }}"
#
# - name: Download lgb server image
# uses: ishworkh/docker-image-artifact-download@v1
# with:
# image: "kserve/lgbserver:${{ github.sha }}"
#
# - name: Install Poetry and version plugin
# run: ./test/scripts/gh-actions/setup-poetry.sh
#
# - name: Install KServe
# run: |
# ./test/scripts/gh-actions/setup-kserve.sh
# kubectl get pods -n kserve
# kubectl describe pods -n kserve
#
# - name: Run E2E tests
# timeout-minutes: 40
# run: |
# ./test/scripts/gh-actions/run-e2e-tests.sh "grpc" "6"
#
# - name: Check system status
# if: always()
# run: |
# ./test/scripts/gh-actions/status-check.sh

test-with-helm:
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/helm/test_kserve_sklearn.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

@pytest.mark.helm
def test_sklearn_kserve():
service_name = "isvc-sklearn-kserve"
service_name = "isvc-sklearn-helm"

predictor = V1beta1PredictorSpec(
min_replicas=1,
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/predictor/test_sklearn.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def test_sklearn_kserve():

@pytest.mark.slow
def test_sklearn_v2_mlserver():
service_name = "isvc-sklearn-v2"
service_name = "sklearn-v2-mlserver"
predictor = V1beta1PredictorSpec(
min_replicas=1,
sklearn=V1beta1SKLearnSpec(
Expand Down
1 change: 1 addition & 0 deletions test/e2e/pytest.ini
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ markers =
helm: helm e2e tests
raw: raw e2e tests
kourier: e2e tests using kourier as networking layer
collocation: transformer and predictor collocation e2e tests
Loading

0 comments on commit 6c13169

Please sign in to comment.