From c818456fda9e007639e1a4a23077a975996a09d7 Mon Sep 17 00:00:00 2001 From: Agustin Bettati Date: Fri, 5 Jan 2024 15:52:56 +0100 Subject: [PATCH] chore: Skips Stream test group when running in QA (#1810) --- .github/workflows/acceptance-tests-runner.yml | 6 +++++- .github/workflows/acceptance-tests.yml | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/acceptance-tests-runner.yml b/.github/workflows/acceptance-tests-runner.yml index 2e97fa9377..f87b398fae 100644 --- a/.github/workflows/acceptance-tests-runner.yml +++ b/.github/workflows/acceptance-tests-runner.yml @@ -16,6 +16,10 @@ on: description: 'The branch, tag or SHA where tests will run, e.g. v1.14.0, empty for default branch' type: string required: false + atlas_cloud_env: + description: 'Atlas cloud environment used, can be either `dev` or `qa`, empty for `dev`' + type: string + required: false mongodb_atlas_org_id: type: string @@ -268,7 +272,7 @@ jobs: stream: needs: [ change-detection ] - if: ${{ needs.change-detection.outputs.stream == 'true' || inputs.test_group == 'stream' }} + if: ${{ inputs.atlas_cloud_env != 'qa' && (needs.change-detection.outputs.stream == 'true' || inputs.test_group == 'stream') }} runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/acceptance-tests.yml b/.github/workflows/acceptance-tests.yml index 2a5b044f64..8de118c045 100644 --- a/.github/workflows/acceptance-tests.yml +++ b/.github/workflows/acceptance-tests.yml @@ -53,6 +53,7 @@ jobs: terraform_version: ${{ inputs.terraform_version || vars.TF_VERSION_LATEST }} ref: ${{ inputs.ref }} test_group: ${{ inputs.test_group }} + atlas_cloud_env: ${{ inputs.atlas_cloud_env }} mongodb_atlas_org_id: ${{ inputs.atlas_cloud_env == 'qa' && vars.MONGODB_ATLAS_ORG_ID_CLOUD_QA || vars.MONGODB_ATLAS_ORG_ID_CLOUD_DEV }} mongodb_atlas_org_id_network: ${{ inputs.atlas_cloud_env == 'qa' && vars.MONGODB_ATLAS_ORG_ID_CLOUD_QA || vars.MONGODB_ATLAS_ORG_ID_CLOUD_DEV_NETWORK }} mongodb_atlas_project_id_network: ${{ inputs.atlas_cloud_env == 'qa' && vars.MONGODB_ATLAS_PROJECT_ID_CLOUD_QA || vars.MONGODB_ATLAS_PROJECT_ID_CLOUD_DEV_NETWORK }}