@@ -149,36 +149,36 @@ def model_builder(request):
149149 return request .getfixturevalue (request .param )
150150
151151
152- @pytest .mark .skipif (
153- PYTHON_VERSION_IS_NOT_310 ,
154- reason = "The goal of these test are to test the serving components of our feature" ,
155- )
156- @pytest .mark .parametrize (
157- "model_builder" , ["model_builder_inference_spec_schema_builder" ], indirect = True
158- )
159- @pytest .mark .slow_test
160- def test_happy_pytorch_local_container (sagemaker_session , model_builder , test_image ):
161- logger .info ("Running in LOCAL_CONTAINER mode..." )
162- caught_ex = None
163-
164- model = model_builder .build (mode = Mode .LOCAL_CONTAINER , sagemaker_session = sagemaker_session )
165-
166- with timeout (minutes = SERVE_LOCAL_CONTAINER_TIMEOUT ):
167- try :
168- logger .info ("Deploying and predicting in LOCAL_CONTAINER mode..." )
169- predictor = model .deploy ()
170- logger .info ("Local container successfully deployed." )
171- predictor .predict (test_image )
172- except Exception as e :
173- logger .exception ("test failed" )
174- caught_ex = e
175- finally :
176- if model .modes [str (Mode .LOCAL_CONTAINER )].container :
177- model .modes [str (Mode .LOCAL_CONTAINER )].container .kill ()
178- if caught_ex :
179- assert (
180- False
181- ), f"{ caught_ex } was thrown when running pytorch squeezenet local container test"
152+ # @pytest.mark.skipif(
153+ # PYTHON_VERSION_IS_NOT_310,
154+ # reason="The goal of these test are to test the serving components of our feature",
155+ # )
156+ # @pytest.mark.parametrize(
157+ # "model_builder", ["model_builder_inference_spec_schema_builder"], indirect=True
158+ # )
159+ # @pytest.mark.slow_test
160+ # def test_happy_pytorch_local_container(sagemaker_session, model_builder, test_image):
161+ # logger.info("Running in LOCAL_CONTAINER mode...")
162+ # caught_ex = None
163+ #
164+ # model = model_builder.build(mode=Mode.LOCAL_CONTAINER, sagemaker_session=sagemaker_session)
165+ #
166+ # with timeout(minutes=SERVE_LOCAL_CONTAINER_TIMEOUT):
167+ # try:
168+ # logger.info("Deploying and predicting in LOCAL_CONTAINER mode...")
169+ # predictor = model.deploy()
170+ # logger.info("Local container successfully deployed.")
171+ # predictor.predict(test_image)
172+ # except Exception as e:
173+ # logger.exception("test failed")
174+ # caught_ex = e
175+ # finally:
176+ # if model.modes[str(Mode.LOCAL_CONTAINER)].container:
177+ # model.modes[str(Mode.LOCAL_CONTAINER)].container.kill()
178+ # if caught_ex:
179+ # assert (
180+ # False
181+ # ), f"{caught_ex} was thrown when running pytorch squeezenet local container test"
182182
183183
184184@pytest .mark .skipif (
0 commit comments