This is an automated email from the ASF dual-hosted git repository. rahulvats pushed a commit to branch fix/allow-newer-packages-stable-compat-test in repository https://gitbox.apache.org/repos/asf/airflow.git
commit 44bc8a0e5fa636e0e3fefe6fd75b29686353b2c3 Author: vatsrahul1001 <[email protected]> AuthorDate: Tue Apr 7 22:49:48 2026 +0530 Allow newer packages when testing stable release versions in compat tests --- scripts/in_container/install_airflow_and_providers.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/scripts/in_container/install_airflow_and_providers.py b/scripts/in_container/install_airflow_and_providers.py index 31187737215..cd731a24475 100755 --- a/scripts/in_container/install_airflow_and_providers.py +++ b/scripts/in_container/install_airflow_and_providers.py @@ -1126,10 +1126,12 @@ def _install_airflow_and_optionally_providers_together( "uv", "pip", "install", + "--exclude-newer", + datetime.now().isoformat(), ] if installation_spec.pre_release: console.print("[bright_blue]Allowing pre-release versions of airflow and providers") - base_install_cmd.extend(["--pre", "--exclude-newer", datetime.now().isoformat()]) + base_install_cmd.append("--pre") if installation_spec.airflow_distribution: console.print( f"\n[bright_blue]Adding airflow distribution to installation: {installation_spec.airflow_distribution} " @@ -1223,10 +1225,12 @@ def _install_only_airflow_airflow_core_task_sdk_with_constraints( "uv", "pip", "install", + "--exclude-newer", + datetime.now().isoformat(), ] if installation_spec.pre_release: console.print("[bright_blue]Allowing pre-release versions of airflow and providers") - base_install_airflow_cmd.extend(["--pre", "--exclude-newer", datetime.now().isoformat()]) + base_install_airflow_cmd.append("--pre") if installation_spec.airflow_distribution: console.print( f"\n[bright_blue]Installing airflow distribution: {installation_spec.airflow_distribution} with constraints"
