Skip to content

Commit b7a50ec

Browse files
authored
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
1 parent 39c9a5d commit b7a50ec

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

‎.github/workflows/finalize-tests.yml‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,10 +154,14 @@ jobs:
154154
run: >
155155
breeze release-management constraints-version-check
156156
--python "${MATRIX_PYTHON_VERSION}"
157-
--airflow-constraints-mode "${MATRIX_CONSTRAINTS_MODE}" --explain-why
157+
--airflow-constraints-mode "${MATRIX_CONSTRAINTS_MODE}" "${EXPLAIN_WHY_FLAG}"
158158
env:
159159
MATRIX_PYTHON_VERSION: "${{ matrix.python-version }}"
160160
MATRIX_CONSTRAINTS_MODE: "${{ matrix.constraints-mode }}"
161+
# Explaining an outdated package resolves its dependency tree; on Python 3.10 more and more
162+
# dependencies have dropped support, so there is far more to explain and the job takes much
163+
# longer. Not worth it weeks before 3.10 support is dropped - remove this along with 3.10.
164+
EXPLAIN_WHY_FLAG: ${{ matrix.python-version == '3.10' && '--no-explain-why' || '--explain-why' }}
161165
VERBOSE: "false"
162166

163167
push-buildx-cache-to-github-registry:

0 commit comments

Comments
 (0)