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 ba973a7388 Fix constraint generation on CI (#23194)
ba973a7388 is described below

commit ba973a73886d626e2024806f640ee45bea181289
Author: Jarek Potiuk <[email protected]>
AuthorDate: Sun Apr 24 09:21:20 2022 +0200

    Fix constraint generation on CI (#23194)
    
    This is another small aftermath after the #23104 - this could not
    be tested during PRs because generate-constraints only run in
    main in apache/airflow repo and a problem crept in that I have
    forgotten to add --run-in-parallel for those breeze commands,
    which resulted in missing the python version to generate
    constraints for.
    
    This change adds --run-in-parallell and list of python versions
    to work on so that generate constraints might start work again.
---
 .github/workflows/ci.yml | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 1b71bc7669..c8a249c404 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -1499,9 +1499,12 @@ ${{ hashFiles('.pre-commit-config.yaml') }}"
           IMAGE_TAG: ${{ env.IMAGE_TAG_FOR_THE_BUILD }}
       - name: "Generate constraints"
         run: |
-          breeze generate-constraints --generate-constraints-mode 
source-providers --answer yes
-          breeze generate-constraints --generate-constraints-mode 
pypi-providers --answer yes
-          breeze generate-constraints --generate-constraints-mode no-providers 
--answer yes
+          breeze generate-constraints --run-in-parallel 
--generate-constraints-mode source-providers
+          breeze generate-constraints --run-in-parallel 
--generate-constraints-mode pypi-providers
+          breeze generate-constraints --run-in-parallel 
--generate-constraints-mode no-providers
+        env:
+          PYTHON_VERSIONS: ${{ 
needs.build-info.outputs.pythonVersionsListAsString }}
+          ANSWER: "yes"
       - name: "Set constraints branch name"
         id: constraints-branch
         run: ./scripts/ci/constraints/ci_branch_constraints.sh

Reply via email to