You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by sh...@apache.org on 2026/09/21 14:48:11 UTC

(airflow) branch main updated: Skip --explain-why for Python 3.10 in the deps summary job (#73449)

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 b7a50ec7f02 Skip --explain-why for Python 3.10 in the deps summary job (#73449)
b7a50ec7f02 is described below

commit b7a50ec7f02ee4e387c11d0e0160b23073cea7a2
Author: Jarek Potiuk <ja...@potiuk.com>
AuthorDate: Mon Sep 21 16:48:03 2026 +0200

    Skip --explain-why for Python 3.10 in the deps summary job (#73449)
    
    Python 3.10 is losing support in more and more of our dependencies, so the
    constraints check has far more outdated packages to explain there, and each
    explanation costs a dependency resolution. That pushed the 3.10 job from
    ~18 to ~27 minutes on main. With 3.10 support being dropped in weeks, the
    explanations are not worth the CI time for that version.
    
    Generated-by: Claude Opus 5
---
 .github/workflows/finalize-tests.yml | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/finalize-tests.yml b/.github/workflows/finalize-tests.yml
index 8165c981cb8..33db1c24333 100644
--- a/.github/workflows/finalize-tests.yml
+++ b/.github/workflows/finalize-tests.yml
@@ -154,10 +154,14 @@ jobs:
         run: >
           breeze release-management constraints-version-check
           --python "${MATRIX_PYTHON_VERSION}"
-          --airflow-constraints-mode "${MATRIX_CONSTRAINTS_MODE}" --explain-why
+          --airflow-constraints-mode "${MATRIX_CONSTRAINTS_MODE}" "${EXPLAIN_WHY_FLAG}"
         env:
           MATRIX_PYTHON_VERSION: "${{ matrix.python-version }}"
           MATRIX_CONSTRAINTS_MODE: "${{ matrix.constraints-mode }}"
+          # Explaining an outdated package resolves its dependency tree; on Python 3.10 more and more
+          # dependencies have dropped support, so there is far more to explain and the job takes much
+          # longer. Not worth it weeks before 3.10 support is dropped - remove this along with 3.10.
+          EXPLAIN_WHY_FLAG: ${{ matrix.python-version == '3.10' && '--no-explain-why' || '--explain-why' }}
           VERBOSE: "false"
 
   push-buildx-cache-to-github-registry: