Skip to content

Commit 35d68d0

Browse files
committed
temporarily skip tests impacted by data inconsistency
1 parent 242d6ed commit 35d68d0

7 files changed

+25
-3
lines changed

tests/integ/sagemaker/lineage/conftest.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -709,9 +709,10 @@ def static_model_artifact(sagemaker_session, static_pipeline_execution_arn):
709709
)
710710
)
711711

712-
yield artifact.ModelArtifact.load(
713-
artifacts[0]["ArtifactArn"], sagemaker_session=sagemaker_session
714-
)
712+
artifact_arn = artifacts[0]["ArtifactArn"]
713+
logging.info(f"Using static model artifact {artifact_arn}")
714+
715+
yield artifact.ModelArtifact.load(artifact_arn, sagemaker_session=sagemaker_session)
715716

716717

717718
@pytest.fixture

tests/integ/sagemaker/lineage/test_artifact.py

+1
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ def test_list_by_type(artifact_objs, sagemaker_session):
102102
assert artifact_names_listed[0] == expected_name
103103

104104

105+
@pytest.mark.skip("data inconsistency P61661075")
105106
def test_get_artifact(static_dataset_artifact):
106107
s3_uri = static_dataset_artifact.source.source_uri
107108
expected_artifact = static_dataset_artifact.s3_uri_artifacts(s3_uri=s3_uri)

tests/integ/sagemaker/lineage/test_dataset_artifact.py

+5
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
"""This module contains code to test SageMaker ``DatasetArtifact``"""
1414
from __future__ import absolute_import
1515

16+
import pytest
17+
1618

1719
def test_trained_models(
1820
dataset_artifact_associated_models,
@@ -27,6 +29,7 @@ def test_trained_models(
2729
assert model.destination_type == "Context"
2830

2931

32+
@pytest.mark.skip("data inconsistency P61661075")
3033
def test_endpoint_contexts(
3134
static_dataset_artifact,
3235
):
@@ -37,6 +40,7 @@ def test_endpoint_contexts(
3740
assert context.context_type == "Endpoint"
3841

3942

43+
@pytest.mark.skip("data inconsistency P61661075")
4044
def test_get_upstream_datasets(static_dataset_artifact, sagemaker_session):
4145
artifacts_from_query = static_dataset_artifact.upstream_datasets()
4246
assert len(artifacts_from_query) > 0
@@ -45,6 +49,7 @@ def test_get_upstream_datasets(static_dataset_artifact, sagemaker_session):
4549
assert "artifact" in artifact.artifact_arn
4650

4751

52+
@pytest.mark.skip("data inconsistency P61661075")
4853
def test_get_down_datasets(static_dataset_artifact, sagemaker_session):
4954
artifacts_from_query = static_dataset_artifact.downstream_datasets()
5055
assert len(artifacts_from_query) > 0

tests/integ/sagemaker/lineage/test_endpoint_context.py

+5
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
from __future__ import absolute_import
1515
import time
1616

17+
import pytest
18+
1719
SLEEP_TIME_ONE_SECONDS = 1
1820
SLEEP_TIME_THREE_SECONDS = 3
1921

@@ -38,6 +40,7 @@ def test_model_v2(endpoint_context_associate_with_model, model_obj, sagemaker_se
3840
assert model.properties == model_obj.properties
3941

4042

43+
@pytest.mark.skip("data inconsistency P61661075")
4144
def test_dataset_artifacts(static_endpoint_context):
4245
artifacts_from_query = static_endpoint_context.dataset_artifacts()
4346

@@ -46,6 +49,7 @@ def test_dataset_artifacts(static_endpoint_context):
4649
assert artifact.artifact_type == "DataSet"
4750

4851

52+
@pytest.mark.skip("data inconsistency P61661075")
4953
def test_training_job_arns(
5054
static_endpoint_context,
5155
):
@@ -56,6 +60,7 @@ def test_training_job_arns(
5660
assert "training-job" in arn
5761

5862

63+
@pytest.mark.skip("data inconsistency P61661075")
5964
def test_pipeline_execution_arn(static_endpoint_context, static_pipeline_execution_arn):
6065
pipeline_execution_arn = static_endpoint_context.pipeline_execution_arn()
6166

tests/integ/sagemaker/lineage/test_lineage_trial_component.py

+5
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,26 @@
1313
"""This module contains code to test SageMaker ``Trial Component``"""
1414
from __future__ import absolute_import
1515

16+
import pytest
1617

18+
19+
@pytest.mark.skip("data inconsistency P61661075")
1720
def test_dataset_artifacts(static_training_job_trial_component):
1821
artifacts_from_query = static_training_job_trial_component.dataset_artifacts()
1922
assert len(artifacts_from_query) > 0
2023
for artifact in artifacts_from_query:
2124
assert artifact.artifact_type == "DataSet"
2225

2326

27+
@pytest.mark.skip("data inconsistency P61661075")
2428
def test_models(static_processing_job_trial_component):
2529
artifacts_from_query = static_processing_job_trial_component.models()
2630
assert len(artifacts_from_query) > 0
2731
for artifact in artifacts_from_query:
2832
assert artifact.artifact_type == "Model"
2933

3034

35+
@pytest.mark.skip("data inconsistency P61661075")
3136
def test_pipeline_execution_arn(static_training_job_trial_component, static_pipeline_execution_arn):
3237
pipeline_execution_arn = static_training_job_trial_component.pipeline_execution_arn()
3338
assert pipeline_execution_arn == static_pipeline_execution_arn

tests/integ/sagemaker/lineage/test_model_artifact.py

+4
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
"""This module contains code to test SageMaker ``DatasetArtifact``"""
1414
from __future__ import absolute_import
1515

16+
import pytest
17+
1618

1719
def test_endpoints(
1820
model_artifact_associated_endpoints,
@@ -38,6 +40,7 @@ def test_endpoint_contexts(
3840
assert context.context_type == "Endpoint"
3941

4042

43+
@pytest.mark.skip("data inconsistency P61661075")
4144
def test_dataset_artifacts(
4245
static_model_artifact,
4346
):
@@ -48,6 +51,7 @@ def test_dataset_artifacts(
4851
assert artifact.artifact_type == "DataSet"
4952

5053

54+
@pytest.mark.skip("data inconsistency P61661075")
5155
def test_training_job_arns(
5256
static_model_artifact,
5357
):

tests/integ/sagemaker/lineage/test_model_package_group_context.py

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
from __future__ import absolute_import
1515

1616

17+
@pytest.mark.skip("data inconsistency P61661075")
1718
def test_pipeline_execution_arn(static_model_package_group_context, static_pipeline_execution_arn):
1819
pipeline_execution_arn = static_model_package_group_context.pipeline_execution_arn()
1920

0 commit comments

Comments
 (0)