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 86de25fa987 Do not error if summarize warning does not find warnings 
(#49360)
86de25fa987 is described below

commit 86de25fa987b8a48aa922045c23ab82889f55a71
Author: Jarek Potiuk <[email protected]>
AuthorDate: Wed Apr 16 16:33:26 2025 +0200

    Do not error if summarize warning does not find warnings (#49360)
    
    Edge case that happens when only UI files changed.
---
 scripts/ci/testing/summarize_captured_warnings.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/scripts/ci/testing/summarize_captured_warnings.py 
b/scripts/ci/testing/summarize_captured_warnings.py
index f4843b43381..ad834be37b3 100755
--- a/scripts/ci/testing/summarize_captured_warnings.py
+++ b/scripts/ci/testing/summarize_captured_warnings.py
@@ -246,6 +246,9 @@ def main(_input: str, _output: str | None, pattern: str | 
None) -> int | str:
 
     try:
         input_path = 
Path(os.path.expanduser(os.path.expandvars(_input))).resolve(strict=True)
+    except FileNotFoundError:
+        print(f"The path {_input!r} does not exist. Skipping it.")
+        return 0
     except OSError as ex:
         return f"Unable to resolve {_input!r} path. {type(ex).__name__}: {ex}"
 

Reply via email to