You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by ep...@apache.org on 2022/10/18 18:02:42 UTC

[airflow] 03/06: Skip sdist providers installation for non-canary builds (#26671)

This is an automated email from the ASF dual-hosted git repository.

ephraimanierobi pushed a commit to branch v2-4-test
in repository https://gitbox.apache.org/repos/asf/airflow.git

commit ae511653d06f6a1c697a6480abaf5f1354d293ed
Author: Jarek Potiuk <ja...@potiuk.com>
AuthorDate: Mon Sep 26 11:22:14 2022 +0200

    Skip sdist providers installation for non-canary builds (#26671)
    
    The sdist providers installation takes a long time and it is unlikely
    to fail if wheel installation succeeds. We should skip running the
    providers builds for PRs to speed them up. In case there will be
    any problem with sdist installation, we will catch it in our
    "canary" builds anyway.
    
    (cherry picked from commit e5c903c10e8556ce5bc34d4e8a5289e636750c5c)
---
 .github/workflows/ci.yml | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 25957c3a79..26d8b71ce5 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -886,7 +886,10 @@ ${{ hashFiles('.pre-commit-config.yaml') }}"
     env:
       RUNS_ON: ${{ needs.build-info.outputs.runs-on }}
       PYTHON_MAJOR_MINOR_VERSION: ${{ needs.build-info.outputs.default-python-version }}
-    if: needs.build-info.outputs.image-build == 'true' && needs.build-info.outputs.default-branch == 'main'
+    if: >
+      needs.build-info.outputs.image-build == 'true' &&
+      needs.build-info.outputs.default-branch == 'main' &&
+      needs.build-info.outputs.canary-run == 'true'
     steps:
       - name: Cleanup repo
         run: docker run -v "${GITHUB_WORKSPACE}:/workspace" -u 0:0 bash -c "rm -rf /workspace/*"