From 1dc7a2dc4d4d110395a26c4d726782f36ff770f1 Mon Sep 17 00:00:00 2001 From: Diana Parra Corbacho Date: Fri, 22 Nov 2024 15:00:58 +0100 Subject: [PATCH] Run just a subset of suites --- .github/workflows/test-authnz.yaml | 73 ------------------- .github/workflows/test-make-type-check.yaml | 51 ------------- .../workflows/test-management-ui-for-pr.yaml | 72 ------------------ .github/workflows/test-management-ui.yaml | 73 ------------------- 4 files changed, 269 deletions(-) diff --git a/.github/workflows/test-authnz.yaml b/.github/workflows/test-authnz.yaml index 45dd825dcfa6..80352c7f7e1a 100644 --- a/.github/workflows/test-authnz.yaml +++ b/.github/workflows/test-authnz.yaml @@ -31,76 +31,3 @@ concurrency: group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} cancel-in-progress: true jobs: - selenium: - runs-on: ubuntu-22.04 - strategy: - fail-fast: false - matrix: - erlang_version: - - "26.2" - browser: - - chrome - include: - - erlang_version: "26.2" - elixir_version: 1.17.3 - env: - SELENIUM_DIR: selenium - DOCKER_NETWORK: rabbitmq_net - steps: - - name: Checkout - uses: actions/checkout@v4 - - - name: Configure OTP & Elixir - uses: erlef/setup-beam@v1.17 - with: - otp-version: ${{ matrix.erlang_version }} - elixir-version: ${{ matrix.elixir_version }} - hexpm-mirrors: | - https://builds.hex.pm - https://cdn.jsdelivr.net/hex - - - name: Authenticate To Google Cloud - uses: google-github-actions/auth@v2.1.7 - with: - credentials_json: ${{ secrets.REMOTE_CACHE_CREDENTIALS_JSON }} - - - name: Build & Load RabbitMQ OCI - run: | - make package-generic-unix - make docker-image - - - name: Configure Docker Network - run: | - docker network create ${DOCKER_NETWORK} - - - name: Build Test Runner Image - run: | - cd ${SELENIUM_DIR} - docker build -t mocha-test --target test . - - - name: Run Suites - run: | - IMAGE_TAG=$(find PACKAGES/rabbitmq-server-generic-unix-*.tar.xz | awk -F 'PACKAGES/rabbitmq-server-generic-unix-|.tar.xz' '{print $2}') - RABBITMQ_DOCKER_IMAGE=pivotalrabbitmq/rabbitmq:$IMAGE_TAG \ - ${SELENIUM_DIR}/run-suites.sh full-suite-authnz-messaging - mkdir -p /tmp/full-suite-authnz-messaging - mv /tmp/selenium/* /tmp/full-suite-authnz-messaging - - - name: Upload Test Artifacts - if: always() - uses: actions/upload-artifact@v4.3.2 - with: - name: test-artifacts-${{ matrix.browser }}-${{ matrix.erlang_version }} - path: | - logs/* - screens/* - /tmp/selenium/* - - summary-selenium: - needs: - - selenium - runs-on: ubuntu-latest - steps: - - name: SUMMARY - run: | - echo "SUCCESS" diff --git a/.github/workflows/test-make-type-check.yaml b/.github/workflows/test-make-type-check.yaml index bf977874aff9..4b4a536831e5 100644 --- a/.github/workflows/test-make-type-check.yaml +++ b/.github/workflows/test-make-type-check.yaml @@ -17,62 +17,11 @@ jobs: plugin: # These are using plugin-specific test jobs. - rabbit - - rabbitmq_mqtt - - rabbitmq_peer_discovery_aws - # These are from the test-plugin test job. - - amqp10_client - - amqp10_common - - amqp_client - - oauth2_client - - rabbit_common - - rabbitmq_amqp_client - - rabbitmq_auth_backend_cache - - rabbitmq_auth_backend_http - - rabbitmq_auth_backend_ldap - - rabbitmq_auth_backend_oauth2 - - rabbitmq_auth_mechanism_ssl - - rabbitmq_aws - - rabbitmq_consistent_hash_exchange - - rabbitmq_event_exchange - - rabbitmq_federation - - rabbitmq_federation_management - - rabbitmq_federation_prometheus - - rabbitmq_jms_topic_exchange - - rabbitmq_management - - rabbitmq_management_agent - - rabbitmq_peer_discovery_common - - rabbitmq_peer_discovery_consul # @todo We are getting errors because of wrong types # in the eetcd dep. But upgrading requires using gun 2.0, # which we can't because another app's dep, emqtt, requires # gun 1.3.x. So for now we don't type check this plugin. #- rabbitmq_peer_discovery_etcd - - rabbitmq_peer_discovery_k8s - - rabbitmq_prelaunch - - rabbitmq_prometheus - - rabbitmq_recent_history_exchange - - rabbitmq_sharding - - rabbitmq_shovel - - rabbitmq_shovel_management - - rabbitmq_shovel_prometheus - - rabbitmq_stomp - - rabbitmq_stream - - rabbitmq_stream_common - - rabbitmq_stream_management - - rabbitmq_tracing - - rabbitmq_trust_store - - rabbitmq_web_dispatch - - rabbitmq_web_mqtt - - rabbitmq_web_stomp - # This one we do not want to run tests so no corresponding test job. - - rabbitmq_ct_helpers - # These do not have tests at this time so no corresponding test job. - - rabbitmq_ct_client_helpers - - rabbitmq_random_exchange - - rabbitmq_top - - rabbitmq_web_mqtt_examples - - rabbitmq_web_stomp_examples - - trust_store_http uses: ./.github/workflows/test-make-target.yaml with: erlang_version: ${{ inputs.erlang_version }} diff --git a/.github/workflows/test-management-ui-for-pr.yaml b/.github/workflows/test-management-ui-for-pr.yaml index 3a39253a1de0..6781688e003e 100644 --- a/.github/workflows/test-management-ui-for-pr.yaml +++ b/.github/workflows/test-management-ui-for-pr.yaml @@ -9,75 +9,3 @@ concurrency: group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} cancel-in-progress: true jobs: - selenium: - runs-on: ubuntu-22.04 - strategy: - fail-fast: false - matrix: - erlang_version: - - "26.2" - browser: - - chrome - include: - - erlang_version: "26.2" - elixir_version: 1.15.7 - env: - SELENIUM_DIR: selenium - DOCKER_NETWORK: rabbitmq_net - steps: - - name: Checkout - uses: actions/checkout@v4 - - - name: Configure OTP & Elixir - uses: erlef/setup-beam@v1.17 - with: - otp-version: ${{ matrix.erlang_version }} - elixir-version: ${{ matrix.elixir_version }} - hexpm-mirrors: | - https://builds.hex.pm - https://cdn.jsdelivr.net/hex - - - name: Authenticate To Google Cloud - uses: google-github-actions/auth@v2.1.7 - with: - credentials_json: ${{ secrets.REMOTE_CACHE_CREDENTIALS_JSON }} - - - name: Build & Load RabbitMQ OCI - run: | - make package-generic-unix - make docker-image - - - name: Configure Docker Network - run: | - docker network create ${DOCKER_NETWORK} - - - name: Build Test Runner Image - run: | - cd ${SELENIUM_DIR} - docker build -t mocha-test --target test . - - - name: Run full ui suites on a standalone rabbitmq server - run: | - IMAGE_TAG=$(find PACKAGES/rabbitmq-server-generic-unix-*.tar.xz | awk -F 'PACKAGES/rabbitmq-server-generic-unix-|.tar.xz' '{print $2}') - RABBITMQ_DOCKER_IMAGE=pivotalrabbitmq/rabbitmq:$IMAGE_TAG \ - ${SELENIUM_DIR}/run-suites.sh short-suite-management-ui - mkdir -p /tmp/full-suite - mv /tmp/selenium/* /tmp/full-suite - - - name: Upload Test Artifacts - if: always() - uses: actions/upload-artifact@v4.3.2 - with: - name: test-artifacts-${{ matrix.browser }}-${{ matrix.erlang_version }} - path: | - /tmp/full-suite - /tmp/short-suite - - summary-selenium: - needs: - - selenium - runs-on: ubuntu-latest - steps: - - name: SUMMARY - run: | - echo "SUCCESS" diff --git a/.github/workflows/test-management-ui.yaml b/.github/workflows/test-management-ui.yaml index d1cde41f27e9..e5f476770ae6 100644 --- a/.github/workflows/test-management-ui.yaml +++ b/.github/workflows/test-management-ui.yaml @@ -23,76 +23,3 @@ on: concurrency: group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} cancel-in-progress: true -jobs: - selenium: - runs-on: ubuntu-22.04 - strategy: - fail-fast: false - matrix: - erlang_version: - - "26.2" - browser: - - chrome - include: - - erlang_version: "26.2" - elixir_version: 1.17.3 - env: - SELENIUM_DIR: selenium - DOCKER_NETWORK: rabbitmq_net - steps: - - name: Checkout - uses: actions/checkout@v4 - - - name: Configure OTP & Elixir - uses: erlef/setup-beam@v1.17 - with: - otp-version: ${{ matrix.erlang_version }} - elixir-version: ${{ matrix.elixir_version }} - hexpm-mirrors: | - https://builds.hex.pm - https://cdn.jsdelivr.net/hex - - - name: Authenticate To Google Cloud - uses: google-github-actions/auth@v2.1.7 - with: - credentials_json: ${{ secrets.REMOTE_CACHE_CREDENTIALS_JSON }} - - - name: Build & Load RabbitMQ OCI - run: | - make package-generic-unix - make docker-image - - - name: Configure Docker Network - run: | - docker network create ${DOCKER_NETWORK} - - - name: Build Test Runner Image - run: | - cd ${SELENIUM_DIR} - docker build -t mocha-test --target test . - - - name: Run short ui suite on a 3-node rabbitmq cluster - run: | - IMAGE_TAG=$(find PACKAGES/rabbitmq-server-generic-unix-*.tar.xz | awk -F 'PACKAGES/rabbitmq-server-generic-unix-|.tar.xz' '{print $2}') - RABBITMQ_DOCKER_IMAGE=pivotalrabbitmq/rabbitmq:$IMAGE_TAG \ - ${SELENIUM_DIR}/run-suites.sh short-suite-management-ui - mkdir -p /tmp/short-suite - mv /tmp/selenium/* /tmp/short-suite - - - name: Upload Test Artifacts - if: always() - uses: actions/upload-artifact@v4.3.2 - with: - name: test-artifacts-${{ matrix.browser }}-${{ matrix.erlang_version }} - path: | - /tmp/full-suite - /tmp/short-suite - - summary-selenium: - needs: - - selenium - runs-on: ubuntu-latest - steps: - - name: SUMMARY - run: | - echo "SUCCESS"