From 2f024d44a0ccb0f725458d3e77855400c6504e75 Mon Sep 17 00:00:00 2001 From: Mike <45373284+munkhuushmgl@users.noreply.github.com> Date: Tue, 23 Mar 2021 12:14:02 -0700 Subject: [PATCH] chore: disabling datalabeling tests due to service limited exception (#81) * chore: disabling datalabeling tests due to service limited exception * lint --- datalabeling/snippets/create_annotation_spec_set_test.py | 1 + datalabeling/snippets/create_instruction_test.py | 1 + datalabeling/snippets/import_data_test.py | 2 +- datalabeling/snippets/manage_dataset_test.py | 5 +++++ 4 files changed, 8 insertions(+), 1 deletion(-) diff --git a/datalabeling/snippets/create_annotation_spec_set_test.py b/datalabeling/snippets/create_annotation_spec_set_test.py index 1ed722ecc2d3..952f192c8e79 100644 --- a/datalabeling/snippets/create_annotation_spec_set_test.py +++ b/datalabeling/snippets/create_annotation_spec_set_test.py @@ -37,6 +37,7 @@ def cleaner(): testing_lib.delete_annotation_spec_set(resource_name) +@pytest.mark.skip(reason="service is limited due to covid") def test_create_annotation_spec_set(cleaner, capsys): @backoff.on_exception( backoff.expo, ServerError, max_time=testing_lib.RETRY_DEADLINE diff --git a/datalabeling/snippets/create_instruction_test.py b/datalabeling/snippets/create_instruction_test.py index 5b32f8277bdc..8e521c245c24 100644 --- a/datalabeling/snippets/create_instruction_test.py +++ b/datalabeling/snippets/create_instruction_test.py @@ -39,6 +39,7 @@ def cleaner(): testing_lib.delete_instruction(resource_name) +@pytest.mark.skip(reason="service is limited due to covid") def test_create_instruction(cleaner, capsys): @backoff.on_exception( backoff.expo, ServerError, max_time=testing_lib.RETRY_DEADLINE diff --git a/datalabeling/snippets/import_data_test.py b/datalabeling/snippets/import_data_test.py index 742c71f17560..fbccf8d9d87f 100644 --- a/datalabeling/snippets/import_data_test.py +++ b/datalabeling/snippets/import_data_test.py @@ -40,7 +40,7 @@ def dataset(): testing_lib.delete_dataset(dataset.name) -@pytest.mark.flaky(max_runs=3, min_passes=1) +@pytest.mark.skip(reason="service is limited due to covid") def test_import_data(capsys, dataset): @backoff.on_exception( backoff.expo, ServerError, max_time=testing_lib.RETRY_DEADLINE diff --git a/datalabeling/snippets/manage_dataset_test.py b/datalabeling/snippets/manage_dataset_test.py index a0dc5800d9af..80fae2f2d2ff 100644 --- a/datalabeling/snippets/manage_dataset_test.py +++ b/datalabeling/snippets/manage_dataset_test.py @@ -28,6 +28,7 @@ PROJECT_ID = os.getenv("GOOGLE_CLOUD_PROJECT") +@pytest.mark.skip(reason="service is limited due to covid") @pytest.fixture(scope="module") def dataset(): # create a temporary dataset @@ -57,6 +58,7 @@ def cleaner(): testing_lib.delete_dataset(resource_name) +@pytest.mark.skip(reason="service is limited due to covid") def test_create_dataset(cleaner, capsys): @backoff.on_exception( backoff.expo, ServerError, max_time=testing_lib.RETRY_DEADLINE @@ -71,6 +73,7 @@ def run_sample(): assert "The dataset resource name:" in out +@pytest.mark.skip(reason="service is limited due to covid") def test_list_dataset(capsys, dataset): @backoff.on_exception( backoff.expo, ServerError, max_time=testing_lib.RETRY_DEADLINE @@ -83,6 +86,7 @@ def run_sample(): assert dataset.name in out +@pytest.mark.skip(reason="service is limited due to covid") def test_get_dataset(capsys, dataset): @backoff.on_exception( backoff.expo, ServerError, max_time=testing_lib.RETRY_DEADLINE @@ -95,6 +99,7 @@ def run_sample(): assert "The dataset resource name:" in out +@pytest.mark.skip(reason="service is limited due to covid") def test_delete_dataset(capsys, dataset): @backoff.on_exception( backoff.expo, ServerError, max_time=testing_lib.RETRY_DEADLINE