diff --git a/dev/breeze/src/airflow_breeze/utils/selective_checks.py b/dev/breeze/src/airflow_breeze/utils/selective_checks.py index 40b5f16763015..13ceb20767b17 100644 --- a/dev/breeze/src/airflow_breeze/utils/selective_checks.py +++ b/dev/breeze/src/airflow_breeze/utils/selective_checks.py @@ -929,6 +929,11 @@ def _get_core_test_types_to_run(self) -> list[str]: get_console().print( "[warning]There are no core/other files. Only tests relevant to the changed files are run.[/]" ) + + # run core tests if any changes in serialization files + if SelectiveCoreTestType.SERIALIZATION.value in candidate_test_types: + candidate_test_types.add(SelectiveCoreTestType.CORE.value) + # sort according to predefined order sorted_candidate_test_types = sorted(candidate_test_types) get_console().print("[warning]Selected core test type candidates to run:[/]") diff --git a/dev/breeze/tests/test_selective_checks.py b/dev/breeze/tests/test_selective_checks.py index e9b05d6f8585a..29e3e77f9a9f7 100644 --- a/dev/breeze/tests/test_selective_checks.py +++ b/dev/breeze/tests/test_selective_checks.py @@ -360,7 +360,7 @@ def assert_outputs_are_printed(expected_outputs: dict[str, str], stderr: str): "skip-pre-commits": ALL_SKIPPED_COMMITS_IF_NO_PROVIDERS_UI_AND_HELM_TESTS, "upgrade-to-newer-dependencies": "false", "core-test-types-list-as-strings-in-json": json.dumps( - [{"description": "Always...Serialization", "test_types": "Always Serialization"}] + [{"description": "Always...Serialization", "test_types": "Always Core Serialization"}] ), "providers-test-types-list-as-strings-in-json": None, "individual-providers-test-types-list-as-strings-in-json": None,