You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by po...@apache.org on 2022/10/23 19:27:12 UTC
[airflow] branch main updated: Fix constraint upgrade (#27221)
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 e789a2ba9f Fix constraint upgrade (#27221)
e789a2ba9f is described below
commit e789a2ba9fbcc0a2ac8a865f39fbb488c23e64f7
Author: Jarek Potiuk <ja...@potiuk.com>
AuthorDate: Sun Oct 23 21:27:05 2022 +0200
Fix constraint upgrade (#27221)
It turnded out that #27215 has a problem when runnning when
in-workflow-build is False - additional condition has to be added for
it.
Additionally, the constraint generation is run for all python
versions in parallel instaed of running only for default python
version.
---
.github/workflows/build-images.yml | 4 +++-
.github/workflows/ci.yml | 8 ++++++--
2 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/.github/workflows/build-images.yml b/.github/workflows/build-images.yml
index 03fca283e5..7c234f6a88 100644
--- a/.github/workflows/build-images.yml
+++ b/.github/workflows/build-images.yml
@@ -239,8 +239,10 @@ ${{ hashFiles('.pre-commit-config.yaml') }}"
PYTHON_VERSIONS: ${{ needs.build-info.outputs.all-python-versions-list-as-string }}
- name: "Show dependencies to be upgraded"
run: >
- breeze release-management generate-constraints
+ breeze release-management generate-constraints --run-in-parallel
--airflow-constraints-mode constraints-source-providers
+ env:
+ PYTHON_VERSIONS: ${{ needs.build-info.outputs.python-versions-list-as-string }}
if: needs.build-info.outputs.upgrade-to-newer-dependencies != 'false'
- name: Push empty CI image ${{ env.PYTHON_MAJOR_MINOR_VERSION }}:${{ env.IMAGE_TAG_FOR_THE_BUILD }}
if: failure() || cancelled()
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index f7ea042755..1716be16b1 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -411,9 +411,13 @@ ${{ hashFiles('.pre-commit-config.yaml') }}"
if: needs.build-info.outputs.in-workflow-build == 'true'
- name: "Show dependencies to be upgraded"
run: >
- breeze release-management generate-constraints
+ breeze release-management generate-constraints --run-in-parallel
--airflow-constraints-mode constraints-source-providers
- if: needs.build-info.outputs.upgrade-to-newer-dependencies != 'false'
+ env:
+ PYTHON_VERSIONS: ${{ needs.build-info.outputs.python-versions-list-as-string }}
+ if: >
+ needs.build-info.outputs.upgrade-to-newer-dependencies != 'false' &&
+ needs.build-info.outputs.in-workflow-build == 'true'
- name: "Candidates for pip resolver backtrack triggers"
if: failure() || cancelled()
run: >