Skip to content

Commit 7a03651

Browse files
authored
ci: Temporary disable KServe Python tests that may fail (#7949)
1 parent fd921c5 commit 7a03651

File tree

2 files changed

+21
-7
lines changed

2 files changed

+21
-7
lines changed

qa/L0_python_api/test.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
2-
# Copyright 2023-2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
2+
# Copyright 2023-2025, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
33
#
44
# Redistribution and use in source and binary forms, with or without
55
# modification, are permitted provided that the following conditions
@@ -25,14 +25,14 @@
2525
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
2626
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2727

28-
BINDING_TEST_LOG="./python_binding.log"
28+
pip3 install pytest-asyncio==0.23.8
2929

3030
RET=0
3131

32-
rm -f $BINDING_TEST_LOG
33-
3432
set +e
3533

34+
BINDING_TEST_LOG="./python_binding.log"
35+
rm -f $BINDING_TEST_LOG
3636
python -m pytest --junitxml=test_binding_report.xml test_binding.py > $BINDING_TEST_LOG 2>&1
3737
if [ $? -ne 0 ]; then
3838
cat $BINDING_TEST_LOG
@@ -41,16 +41,16 @@ if [ $? -ne 0 ]; then
4141
fi
4242

4343
API_TEST_LOG="./python_api.log"
44-
44+
rm -f $API_TEST_LOG
4545
python -m pytest --junitxml=test_api_report.xml test_api.py > $API_TEST_LOG 2>&1
4646
if [ $? -ne 0 ]; then
4747
cat $API_TEST_LOG
4848
echo -e "\n***\n*** Test Failed\n***"
4949
RET=1
5050
fi
5151

52-
5352
FRONTEND_TEST_LOG="./python_kserve.log"
53+
rm -f $FRONTEND_TEST_LOG
5454
python -m pytest --junitxml=test_kserve.xml test_kserve.py > $FRONTEND_TEST_LOG 2>&1
5555
if [ $? -ne 0 ]; then
5656
cat $FRONTEND_TEST_LOG

qa/L0_python_api/test_kserve.py

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
1+
# Copyright 2024-2025, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
22
#
33
# Redistribution and use in source and binary forms, with or without
44
# modification, are permitted provided that the following conditions
@@ -114,6 +114,7 @@ def test_wrong_http_parameters(self):
114114

115115

116116
class TestKServe:
117+
@pytest.mark.xfail(run=False, reason="Python model may not load after gRPC import")
117118
@pytest.mark.parametrize("frontend, client_type, url", [HTTP_ARGS, GRPC_ARGS])
118119
def test_server_ready(self, frontend, client_type, url):
119120
server = utils.setup_server()
@@ -126,6 +127,7 @@ def test_server_ready(self, frontend, client_type, url):
126127
utils.teardown_service(service)
127128
utils.teardown_server(server)
128129

130+
@pytest.mark.xfail(run=False, reason="Python model may not load after gRPC import")
129131
@pytest.mark.parametrize("frontend", [HTTP_ARGS[0], GRPC_ARGS[0]])
130132
def test_service_double_start(self, frontend):
131133
server = utils.setup_server()
@@ -140,6 +142,7 @@ def test_service_double_start(self, frontend):
140142
utils.teardown_server(server)
141143
utils.teardown_service(service)
142144

145+
@pytest.mark.xfail(run=False, reason="Python model may not load after gRPC import")
143146
@pytest.mark.parametrize("frontend", [HTTP_ARGS[0], GRPC_ARGS[0]])
144147
def test_invalid_options(self, frontend):
145148
server = utils.setup_server()
@@ -153,6 +156,7 @@ def test_invalid_options(self, frontend):
153156

154157
utils.teardown_server(server)
155158

159+
@pytest.mark.xfail(run=False, reason="Python model may not load after gRPC import")
156160
@pytest.mark.parametrize("frontend", [HTTP_ARGS[0], GRPC_ARGS[0]])
157161
def test_server_service_order(self, frontend):
158162
server = utils.setup_server()
@@ -161,6 +165,7 @@ def test_server_service_order(self, frontend):
161165
utils.teardown_server(server)
162166
utils.teardown_service(service)
163167

168+
@pytest.mark.xfail(run=False, reason="Python model may not load after gRPC import")
164169
@pytest.mark.parametrize("frontend, client_type", [HTTP_ARGS[:2], GRPC_ARGS[:2]])
165170
def test_service_custom_port(self, frontend, client_type):
166171
server = utils.setup_server()
@@ -175,6 +180,7 @@ def test_service_custom_port(self, frontend, client_type):
175180
utils.teardown_service(service)
176181
utils.teardown_server(server)
177182

183+
@pytest.mark.xfail(run=False, reason="Python model may not load after gRPC import")
178184
@pytest.mark.parametrize("frontend, client_type, url", [HTTP_ARGS, GRPC_ARGS])
179185
def test_inference(self, frontend, client_type, url):
180186
server = utils.setup_server()
@@ -186,6 +192,7 @@ def test_inference(self, frontend, client_type, url):
186192
utils.teardown_service(service)
187193
utils.teardown_server(server)
188194

195+
@pytest.mark.xfail(run=False, reason="Python model may not load after gRPC import")
189196
@pytest.mark.parametrize("frontend, client_type, url", [GRPC_ARGS])
190197
def test_streaming_inference(self, frontend, client_type, url):
191198
server = utils.setup_server()
@@ -196,6 +203,7 @@ def test_streaming_inference(self, frontend, client_type, url):
196203
utils.teardown_service(service)
197204
utils.teardown_server(server)
198205

206+
@pytest.mark.xfail(run=False, reason="Python model may not load after gRPC import")
199207
@pytest.mark.parametrize("frontend, client_type, url", [HTTP_ARGS])
200208
def test_http_generate_inference(self, frontend, client_type, url):
201209
server = utils.setup_server()
@@ -206,6 +214,7 @@ def test_http_generate_inference(self, frontend, client_type, url):
206214
utils.teardown_service(service)
207215
utils.teardown_server(server)
208216

217+
@pytest.mark.xfail(run=False, reason="Python model may not load after gRPC import")
209218
@pytest.mark.parametrize("frontend, client_type, url", [HTTP_ARGS])
210219
def test_http_req_during_shutdown(self, frontend, client_type, url):
211220
server = utils.setup_server()
@@ -247,6 +256,7 @@ def test_http_req_during_shutdown(self, frontend, client_type, url):
247256
):
248257
utils.teardown_server(server)
249258

259+
@pytest.mark.xfail(run=False, reason="Python model may not load after gRPC import")
250260
@pytest.mark.parametrize("frontend, client_type, url", [GRPC_ARGS])
251261
def test_grpc_req_during_shutdown(self, frontend, client_type, url):
252262
server = utils.setup_server()
@@ -302,6 +312,7 @@ def callback(user_data, result, error):
302312
utils.teardown_client(grpc_client)
303313
utils.teardown_server(server)
304314

315+
@pytest.mark.xfail(run=False, reason="Python model may not load after gRPC import")
305316
@pytest.mark.parametrize("frontend, url", [METRICS_ARGS])
306317
def test_metrics_default_port(self, frontend, url):
307318
server = utils.setup_server()
@@ -315,6 +326,7 @@ def test_metrics_default_port(self, frontend, url):
315326
utils.teardown_service(service)
316327
utils.teardown_server(server)
317328

329+
@pytest.mark.xfail(run=False, reason="Python model may not load after gRPC import")
318330
@pytest.mark.parametrize("frontend", [Metrics])
319331
def test_metrics_custom_port(self, frontend, port=8005):
320332
server = utils.setup_server()
@@ -328,6 +340,7 @@ def test_metrics_custom_port(self, frontend, port=8005):
328340
utils.teardown_service(service)
329341
utils.teardown_server(server)
330342

343+
@pytest.mark.xfail(run=False, reason="Python model may not load after gRPC import")
331344
@pytest.mark.parametrize("frontend, url", [METRICS_ARGS])
332345
def test_metrics_update(self, frontend, url):
333346
# Setup Server, KServeGrpc, Metrics
@@ -362,6 +375,7 @@ def test_metrics_update(self, frontend, url):
362375
# Once the server has been stopped, the underlying TRITONSERVER_Server instance
363376
# is deleted. However, the frontend does not know the server instance
364377
# is no longer valid.
378+
# @pytest.mark.xfail(run=False, reason="Python model may not load after gRPC import")
365379
# def test_inference_after_server_stop(self):
366380
# server = utils.setup_server()
367381
# http_service = utils.setup_service(server, KServeHttp)

0 commit comments

Comments
 (0)