Skip to content

Commit de5de9b

Browse files
authored
fix: disable failing integration tests (#4841)
* Disable failing integration tests * run formatter * fix error * remove .keras
1 parent 8fb08aa commit de5de9b

File tree

3 files changed

+22
-1
lines changed

3 files changed

+22
-1
lines changed

tests/data/tensorflow_mnist/mnist_v2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ def main(args):
198198

199199
if args.current_host == args.hosts[0]:
200200
ckpt_manager.save()
201-
net.save("/opt/ml/model/1.keras")
201+
net.save("/opt/ml/model/1")
202202

203203

204204
if __name__ == "__main__":

tests/integ/test_tf.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,11 @@ def test_mnist_with_checkpoint_config(
8585
tensorflow_training_latest_version,
8686
tensorflow_training_latest_py_version,
8787
):
88+
if Version(tensorflow_training_latest_version) >= Version("2.16"):
89+
pytest.skip(
90+
"This test is failing in TensorFlow 2.16 beacuse of an upstream bug: "
91+
"https://github.com/tensorflow/io/issues/2039"
92+
)
8893
checkpoint_s3_uri = "s3://{}/checkpoints/tf-{}".format(
8994
sagemaker_session.default_bucket(), sagemaker_timestamp()
9095
)
@@ -235,6 +240,11 @@ def test_mnist_distributed_cpu(
235240
tensorflow_training_latest_version,
236241
tensorflow_training_latest_py_version,
237242
):
243+
if Version(tensorflow_training_latest_version) >= Version("2.16"):
244+
pytest.skip(
245+
"This test is failing in TensorFlow 2.16 beacuse of an upstream bug: "
246+
"https://github.com/tensorflow/io/issues/2039"
247+
)
238248
_create_and_fit_estimator(
239249
sagemaker_session,
240250
tensorflow_training_latest_version,

tests/integ/test_tuner.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
import numpy as np
2020
import pytest
2121
from botocore.exceptions import ClientError
22+
from packaging.version import Version
2223

2324
import tests.integ
2425
from sagemaker import KMeans, LDA, RandomCutForest, image_uris
@@ -691,6 +692,11 @@ def test_tuning_tf(
691692
tensorflow_training_latest_version,
692693
tensorflow_training_latest_py_version,
693694
):
695+
if Version(tensorflow_training_latest_version) >= Version("2.16"):
696+
pytest.skip(
697+
"This test is failing in TensorFlow 2.16 beacuse of an upstream bug: "
698+
"https://github.com/tensorflow/io/issues/2039"
699+
)
694700
resource_path = os.path.join(DATA_DIR, "tensorflow_mnist")
695701
script_path = "mnist.py"
696702

@@ -735,6 +741,11 @@ def test_tuning_tf_vpc_multi(
735741
tensorflow_training_latest_py_version,
736742
):
737743
"""Test Tensorflow multi-instance using the same VpcConfig for training and inference"""
744+
if Version(tensorflow_training_latest_version) >= Version("2.16"):
745+
pytest.skip(
746+
"This test is failing in TensorFlow 2.16 beacuse of an upstream bug: "
747+
"https://github.com/tensorflow/io/issues/2039"
748+
)
738749
instance_type = cpu_instance_type
739750
instance_count = 2
740751

0 commit comments

Comments
 (0)