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

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


The following commit(s) were added to refs/heads/v2-10-test by this push:
     new ef012cf4bb1 [v2-10-test] Only run ARM collection tests in main branch 
(#45068) (#45076)
ef012cf4bb1 is described below

commit ef012cf4bb1af675cd09c5f0f21d26df45901214
Author: Jarek Potiuk <[email protected]>
AuthorDate: Thu Dec 19 16:06:41 2024 +0100

    [v2-10-test] Only run ARM collection tests in main branch (#45068) (#45076)
    
    The ARM collection tests are testing if all tests can be properly
    collected when packages not available on ARM are removed. We currently
    do not have such packages, but since this is only valid for providers
    and in version branches we never touch providers, we should just
    skip the test on non-main branch.
    (cherry picked from commit d1245cd0771f23be8f9d378f93b127fe13d3706f)
---
 .github/workflows/ci.yml            | 1 +
 .github/workflows/special-tests.yml | 5 +++++
 2 files changed, 6 insertions(+)

diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 20dc962f1d7..69272f7b901 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -466,6 +466,7 @@ jobs:
        needs.build-info.outputs.upgrade-to-newer-dependencies != 'false' ||
        needs.build-info.outputs.full-tests-needed == 'true')
     with:
+      default-branch: ${{ needs.build-info.outputs.default-branch }}
       runs-on-as-json-default: ${{ 
needs.build-info.outputs.runs-on-as-json-default }}
       image-tag: ${{ needs.build-info.outputs.image-tag }}
       parallel-test-types-list-as-string: ${{ 
needs.build-info.outputs.parallel-test-types-list-as-string }}
diff --git a/.github/workflows/special-tests.yml 
b/.github/workflows/special-tests.yml
index e09b813acf9..9a2a4cad330 100644
--- a/.github/workflows/special-tests.yml
+++ b/.github/workflows/special-tests.yml
@@ -24,6 +24,10 @@ on:  # yamllint disable-line rule:truthy
         description: "The array of labels (in json form) determining default 
runner used for the build."
         required: true
         type: string
+      default-branch:
+        description: "The default branch for the repository"
+        required: true
+        type: string
       image-tag:
         description: "Tag to set for the image"
         required: true
@@ -257,6 +261,7 @@ jobs:
       include-success-outputs: ${{ 
needs.build-info.outputs.include-success-outputs }}
       run-coverage: ${{ inputs.run-coverage }}
       debug-resources: ${{ inputs.debug-resources }}
+    if: ${{ inputs.default-branch == 'main' }}
 
   tests-system:
     name: "System test"

Reply via email to