This is an automated email from the ASF dual-hosted git repository.

potiuk pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/main by this push:
     new f13b71371da Trigger unit tests when only shared/*.py files change 
(#64999)
f13b71371da is described below

commit f13b71371da3ae1ee5bb0b60d48fe535fa0abb26
Author: Jarek Potiuk <[email protected]>
AuthorDate: Sun Apr 12 17:56:15 2026 +0200

    Trigger unit tests when only shared/*.py files change (#64999)
    
    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.
---
 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(

Reply via email to