This is an automated email from the ASF dual-hosted git repository.
kaxilnaik pushed a commit to branch v3-0-test
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/v3-0-test by this push:
new 22da4568502 [v3-0-test] Update selective checks to run core tests when
serialization files changes (#54423) (#54426)
22da4568502 is described below
commit 22da4568502e8215cd8be38dc07f06c1618eb9ab
Author: github-actions[bot]
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Tue Aug 12 23:25:18 2025 +0100
[v3-0-test] Update selective checks to run core tests when serialization
files changes (#54423) (#54426)
(cherry picked from commit 30a23e57da8a1780f204269f5d26295634989e8c)
Co-authored-by: GPK <[email protected]>
---
dev/breeze/src/airflow_breeze/utils/selective_checks.py | 5 +++++
dev/breeze/tests/test_selective_checks.py | 2 +-
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/dev/breeze/src/airflow_breeze/utils/selective_checks.py
b/dev/breeze/src/airflow_breeze/utils/selective_checks.py
index 68b5782262b..336fa184652 100644
--- a/dev/breeze/src/airflow_breeze/utils/selective_checks.py
+++ b/dev/breeze/src/airflow_breeze/utils/selective_checks.py
@@ -913,6 +913,11 @@ class SelectiveChecks:
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 f41eabd3611..7c258a13bef 100644
--- a/dev/breeze/tests/test_selective_checks.py
+++ b/dev/breeze/tests/test_selective_checks.py
@@ -368,7 +368,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,