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
116116class 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