File tree 2 files changed +8
-0
lines changed
kubernetes/kserve/tests/scripts
2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change 4
4
![ Docker Nightly build] ( https://github.com/pytorch/serve/actions/workflows/docker-nightly-build.yml/badge.svg )
5
5
![ Benchmark Nightly] ( https://github.com/pytorch/serve/actions/workflows/benchmark_nightly.yml/badge.svg )
6
6
![ Docker Regression Nightly] ( https://github.com/pytorch/serve/actions/workflows/regression_tests_docker.yml/badge.svg )
7
+ ![ KServe Regression Nightly] ( https://github.com/pytorch/serve/actions/workflows/kserve_cpu_tests.yml/badge.svg )
7
8
8
9
TorchServe is a flexible and easy-to-use tool for serving and scaling PyTorch models in production.
9
10
Original file line number Diff line number Diff line change @@ -45,6 +45,7 @@ function make_cluster_accessible() {
45
45
EXPECTED=" $4 "
46
46
if [ " ${PREDICTION} " = " ${EXPECTED} " ]; then
47
47
echo " ✓ SUCCESS"
48
+ cleanup_port_forwarding
48
49
else
49
50
echo " ✘ Test failed: Prediction: ${PREDICTION} , expected ${EXPECTED} ."
50
51
delete_minikube_cluster
@@ -75,6 +76,7 @@ function make_cluster_accessible_for_grpc() {
75
76
EXPECTED=" $4 "
76
77
if [ " ${PREDICTION} " = " ${EXPECTED} " ]; then
77
78
echo " ✓ SUCCESS"
79
+ cleanup_port_forwarding
78
80
else
79
81
echo " ✘ Test failed: Prediction: ${PREDICTION} , expected ${EXPECTED} ."
80
82
delete_minikube_cluster
@@ -157,6 +159,11 @@ function wait_for_port_forwarding() {
157
159
sleep " $interval "
158
160
}
159
161
162
+ function cleanup_port_forwarding() {
163
+ echo " Clean up port forwarding"
164
+ pkill kubectl
165
+ }
166
+
160
167
export INGRESS_HOST=localhost
161
168
export INGRESS_PORT=8080
162
169
export MODEL_NAME=mnist
You can’t perform that action at this time.
0 commit comments