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 a4f9ccd05dc Fix `breeze pr auto-triage` command hash instability in CI 
(#63698)
a4f9ccd05dc is described below

commit a4f9ccd05dc586947d822c9a93ccde16905f89f9
Author: Jarek Potiuk <[email protected]>
AuthorDate: Mon Mar 16 07:52:46 2026 +0100

    Fix `breeze pr auto-triage` command hash instability in CI (#63698)
    
    The `--reviews-for` option used `HiddenChoiceWithCompletion` populated
    by `_load_collaborators_cache()` at import time. The cached collaborator
    list varies between environments (populated locally, empty on CI),
    changing the Click command structure hash and failing the
    `update-breeze-cmd-output` static check on every main CI run.
    
    Return an empty list during command-image generation so the hash is
    stable regardless of local cache state.
---
 dev/breeze/doc/images/output_pr_auto-triage.txt       | 2 +-
 dev/breeze/src/airflow_breeze/commands/pr_commands.py | 4 ++++
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/dev/breeze/doc/images/output_pr_auto-triage.txt 
b/dev/breeze/doc/images/output_pr_auto-triage.txt
index 6eaec4730f7..dc56649fa28 100644
--- a/dev/breeze/doc/images/output_pr_auto-triage.txt
+++ b/dev/breeze/doc/images/output_pr_auto-triage.txt
@@ -1 +1 @@
-0d5bd2391abbfd55d6aa69266177dd05
+81f90099329d48933ff6824ffbf3e2b9
diff --git a/dev/breeze/src/airflow_breeze/commands/pr_commands.py 
b/dev/breeze/src/airflow_breeze/commands/pr_commands.py
index d05bd3e8dfa..ecf98c185e6 100644
--- a/dev/breeze/src/airflow_breeze/commands/pr_commands.py
+++ b/dev/breeze/src/airflow_breeze/commands/pr_commands.py
@@ -663,6 +663,10 @@ def _fetch_collaborators_from_api(token: str, 
github_repository: str) -> list[st
 
 def _load_collaborators_cache(github_repository: str) -> list[str]:
     """Load collaborators from local cache file. Returns empty list if no 
cache."""
+    from airflow_breeze.utils.recording import generating_command_images
+
+    if generating_command_images():
+        return []
     cache_path = _get_collaborators_cache_path(github_repository)
     if cache_path.exists():
         try:

Reply via email to