From 61b32a4009c72e6aa5e343648d63011425204a73 Mon Sep 17 00:00:00 2001 From: Kaxil Naik Date: Wed, 23 Oct 2024 16:40:41 +0100 Subject: [PATCH] Fix failing main Test was failing here: https://github.com/apache/airflow/actions/runs/11482958870/job/31957874656?pr=43291 ``` =========================== short test summary info ============================ FAILED tests/always/test_project_structure.py::TestProjectStructure::test_providers_modules_should_have_tests - AssertionError: Detect added tests in providers module - please remove the tests from OVERLOOKED_TESTS list above assert equals failed set() set([ 'providers/tests/google/cloud /sensors/test_dataform.py', ]) = 1 failed, 12165 passed, 9445 skipped, 2 xfailed, 5 warnings in 571.47s (0:09:31) = ``` This was because the test was added in https://github.com/apache/airflow/pull/43055/ --- .../tests/system/google/cloud/dataform/example_dataform.py | 4 ++-- tests/always/test_project_structure.py | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/providers/tests/system/google/cloud/dataform/example_dataform.py b/providers/tests/system/google/cloud/dataform/example_dataform.py index f15e629b0f4b6..bf2a2a3eb8eda 100644 --- a/providers/tests/system/google/cloud/dataform/example_dataform.py +++ b/providers/tests/system/google/cloud/dataform/example_dataform.py @@ -179,7 +179,7 @@ # [START howto_operator_create_workflow_invocation_action_async] create_workflow_invocation_async_action = DataformCreateWorkflowInvocationOperator( - task_id="create-workflow-invocation-async", + task_id="create-workflow-invocation-async-action", project_id=PROJECT_ID, region=REGION, repository_id=REPOSITORY_ID, @@ -190,7 +190,7 @@ ) is_workflow_invocation_action_done = DataformWorkflowInvocationActionStateSensor( - task_id="is-workflow-invocation-done", + task_id="is-workflow-invocation-action-done", project_id=PROJECT_ID, region=REGION, repository_id=REPOSITORY_ID, diff --git a/tests/always/test_project_structure.py b/tests/always/test_project_structure.py index 9db0b22df84fc..38b5bccba4412 100644 --- a/tests/always/test_project_structure.py +++ b/tests/always/test_project_structure.py @@ -137,7 +137,6 @@ def test_providers_modules_should_have_tests(self): "providers/tests/google/cloud/operators/vertex_ai/test_hyperparameter_tuning_job.py", "providers/tests/google/cloud/operators/vertex_ai/test_model_service.py", "providers/tests/google/cloud/operators/vertex_ai/test_pipeline_job.py", - "providers/tests/google/cloud/sensors/test_dataform.py", "providers/tests/google/cloud/transfers/test_bigquery_to_sql.py", "providers/tests/google/cloud/transfers/test_presto_to_gcs.py", "providers/tests/google/cloud/utils/test_bigquery.py",