From ef012cf4bb1af675cd09c5f0f21d26df45901214 Mon Sep 17 00:00:00 2001 From: Jarek Potiuk Date: Thu, 19 Dec 2024 16:06:41 +0100 Subject: [PATCH] [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 20dc962f1d780..69272f7b901a4 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 e09b813acf916..9a2a4cad330be 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"