Skip to content

Commit 2d7efc4

Browse files
committed
add kserve nightly badge
1 parent e6654ec commit 2d7efc4

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
![Docker Nightly build](https://github.com/pytorch/serve/actions/workflows/docker-nightly-build.yml/badge.svg)
55
![Benchmark Nightly](https://github.com/pytorch/serve/actions/workflows/benchmark_nightly.yml/badge.svg)
66
![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)
78

89
TorchServe is a flexible and easy-to-use tool for serving and scaling PyTorch models in production.
910

kubernetes/kserve/tests/scripts/test_mnist.sh

+7
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ function make_cluster_accessible() {
4545
EXPECTED="$4"
4646
if [ "${PREDICTION}" = "${EXPECTED}" ]; then
4747
echo "✓ SUCCESS"
48+
cleanup_port_forwarding
4849
else
4950
echo "✘ Test failed: Prediction: ${PREDICTION}, expected ${EXPECTED}."
5051
delete_minikube_cluster
@@ -75,6 +76,7 @@ function make_cluster_accessible_for_grpc() {
7576
EXPECTED="$4"
7677
if [ "${PREDICTION}" = "${EXPECTED}" ]; then
7778
echo "✓ SUCCESS"
79+
cleanup_port_forwarding
7880
else
7981
echo "✘ Test failed: Prediction: ${PREDICTION}, expected ${EXPECTED}."
8082
delete_minikube_cluster
@@ -157,6 +159,11 @@ function wait_for_port_forwarding() {
157159
sleep "$interval"
158160
}
159161

162+
function cleanup_port_forwarding() {
163+
echo "Clean up port forwarding"
164+
pkill kubectl
165+
}
166+
160167
export INGRESS_HOST=localhost
161168
export INGRESS_PORT=8080
162169
export MODEL_NAME=mnist

0 commit comments

Comments
 (0)