This is an automated email from the ASF dual-hosted git repository.
potiuk pushed a commit to branch v3-0-test
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/v3-0-test by this push:
new 972c2883f30 [v3-0-test] Improve warning character in constraints
version check (#52743) (#52749)
972c2883f30 is described below
commit 972c2883f30eee054731d95cf4cbe764bb799034
Author: github-actions[bot]
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Wed Jul 2 23:56:46 2025 +0200
[v3-0-test] Improve warning character in constraints version check (#52743)
(#52749)
The warning sign is now better matching other unicode characters
and the waarning table entry is properly aligned, including the
unicode length of the warning character.
(cherry picked from commit 64460c68ff120ea3677ea916ca0f12b1bc0f8cb2)
Co-authored-by: Jarek Potiuk <[email protected]>
---
dev/breeze/src/airflow_breeze/utils/constraints_version_check.py | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/dev/breeze/src/airflow_breeze/utils/constraints_version_check.py
b/dev/breeze/src/airflow_breeze/utils/constraints_version_check.py
index 4077cf1b417..dc871b229fd 100755
--- a/dev/breeze/src/airflow_breeze/utils/constraints_version_check.py
+++ b/dev/breeze/src/airflow_breeze/utils/constraints_version_check.py
@@ -88,7 +88,7 @@ def get_status_emoji(constraint_date, latest_date,
is_latest_version):
if days_diff <= 5:
return "📢 <5d "
if days_diff <= 30:
- return "⚠ <30d "
+ return "⚠️ <30d "
return f"🚨 >{days_diff}d".ljust(15)
except Exception:
return "📢 N/A "
@@ -412,15 +412,16 @@ def print_package_table_row(
color = (
"green"
if is_latest_version
- else ("yellow" if status.startswith("📢") or status.startswith("⚠")
else "red")
+ else ("yellow" if status.startswith("📢") or status.startswith("⚠️")
else "red")
)
+ offset = 1 if status.startswith("⚠️") else 0
string_to_print = format_str.format(
pkg,
pinned_version[: col_widths["Constraint Version"]],
constraint_release_date[: col_widths["Constraint Date"]],
latest_version[: col_widths["Latest Version"]],
latest_release_date[: col_widths["Latest Date"]],
- status[: col_widths["📢 Status"]],
+ status[: (col_widths["📢 Status"] + offset)],
versions_behind_str,
pypi_link,
)