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

shahar1 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 8037e9ae30d Skip ts-sdk supervisor schema check for doc-only changes 
(#70022)
8037e9ae30d is described below

commit 8037e9ae30de7a138f24f652251ea25b6e4e4719
Author: Andrew Chang <[email protected]>
AuthorDate: Fri Jul 17 23:54:07 2026 +0800

    Skip ts-sdk supervisor schema check for doc-only changes (#70022)
    
    ts-sdk/*.md edits (e.g. README) currently match TS_SDK_FILES and keep
    the check-ts-sdk-supervisor-schema prek hook from being skipped, so a
    documentation-only change needlessly regenerates and diffs the
    generated supervisor schema. Documentation does not affect it.
---
 dev/breeze/src/airflow_breeze/utils/selective_checks.py |  3 ++-
 dev/breeze/tests/test_selective_checks.py               | 10 ++++++++++
 2 files changed, 12 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 7e2e83ed005..b912af64e3d 100644
--- a/dev/breeze/src/airflow_breeze/utils/selective_checks.py
+++ b/dev/breeze/src/airflow_breeze/utils/selective_checks.py
@@ -462,7 +462,8 @@ CI_FILE_GROUP_MATCHES: HashableDict[FileGroupForCi] = 
HashableDict(
             r"^java-sdk/(?!.*\.md$).*",
         ],
         FileGroupForCi.TS_SDK_FILES: [
-            r"^ts-sdk/",
+            # `.md` excluded — doc-only edits do not affect the generated 
supervisor schema.
+            r"^ts-sdk/(?!.*\.md$).*",
         ],
         FileGroupForCi.ASSET_FILES: [
             r"^airflow-core/src/airflow/assets/",
diff --git a/dev/breeze/tests/test_selective_checks.py 
b/dev/breeze/tests/test_selective_checks.py
index 385e7ba99a8..ae8260db30f 100644
--- a/dev/breeze/tests/test_selective_checks.py
+++ b/dev/breeze/tests/test_selective_checks.py
@@ -1788,6 +1788,16 @@ def 
test_ktlint_hook_only_runs_for_java_sdk_changes(files: tuple[str, ...], ktli
             True,
             id="skipped when no ts-sdk files change",
         ),
+        pytest.param(
+            ("ts-sdk/README.md",),
+            True,
+            id="skipped when only ts-sdk docs change",
+        ),
+        pytest.param(
+            ("ts-sdk/example/README.md",),
+            True,
+            id="skipped when only nested ts-sdk docs change",
+        ),
     ],
 )
 def test_check_ts_sdk_supervisor_schema_hook_only_runs_for_relevant_changes(

Reply via email to