This is an automated email from the ASF dual-hosted git repository.
potiuk pushed a commit to branch v3-2-test
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/v3-2-test by this push:
new e86585dd5cd [v3-2-test] Trigger unit tests when only shared/*.py files
change (#64999) (#65094)
e86585dd5cd is described below
commit e86585dd5cd5f3d1c07c9c9b3b39b51ddce7f840
Author: github-actions[bot]
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Sun Apr 12 17:57:40 2026 +0200
[v3-2-test] Trigger unit tests when only shared/*.py files change (#64999)
(#65094)
Add shared/*.py pattern to ALL_SOURCE_FILES so changes that only
touch the shared libraries (e.g., shared/timezones, shared/logging)
trigger the unit test suite. Previously such changes were missed by
selective checks because the shared/ folder was not part of the
source files patterns, leading to skipped tests for changes that
affect symlinked code in airflow-core, task-sdk, and providers.
(cherry picked from commit f13b71371da3ae1ee5bb0b60d48fe535fa0abb26)
Co-authored-by: Jarek Potiuk <[email protected]>
---
dev/breeze/src/airflow_breeze/utils/selective_checks.py | 1 +
dev/breeze/tests/test_selective_checks.py | 10 ++++++++++
2 files changed, 11 insertions(+)
diff --git a/dev/breeze/src/airflow_breeze/utils/selective_checks.py
b/dev/breeze/src/airflow_breeze/utils/selective_checks.py
index 6a756289db6..19506d490b6 100644
--- a/dev/breeze/src/airflow_breeze/utils/selective_checks.py
+++ b/dev/breeze/src/airflow_breeze/utils/selective_checks.py
@@ -302,6 +302,7 @@ CI_FILE_GROUP_MATCHES: HashableDict[FileGroupForCi] =
HashableDict(
r"^chart/templates/.*",
r"^providers/.*/src/.*",
r"^providers/.*/tests/.*",
+ r"^shared/.*\.py$",
r"^task-sdk/src/.*",
r"^task-sdk/tests/.*",
r"^devel-common/src/.*",
diff --git a/dev/breeze/tests/test_selective_checks.py
b/dev/breeze/tests/test_selective_checks.py
index 90e5551ce33..3838f779e4c 100644
--- a/dev/breeze/tests/test_selective_checks.py
+++ b/dev/breeze/tests/test_selective_checks.py
@@ -1297,6 +1297,16 @@ def assert_outputs_are_printed(expected_outputs:
dict[str, str], stderr: str):
id="Shared logging library changes enable both remote logging
e2e jobs",
)
),
+ (
+ pytest.param(
+ ("shared/timezones/src/airflow_shared/timezones/timezone.py",),
+ {
+ "ci-image-build": "true",
+ "run-unit-tests": "true",
+ },
+ id="Shared library python changes trigger unit tests",
+ )
+ ),
],
)
def test_expected_output_pull_request_main(