summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Sébastien Pédron <jean-sebastien.pedron@dumbbell.fr>2020-11-17 13:33:16 +0100
committerJean-Sébastien Pédron <jean-sebastien.pedron@dumbbell.fr>2020-11-17 13:33:16 +0100
commit47686ee1f073bba46911d865a978517c4b94f48a (patch)
treea47923ac592a0753125644b5b94d29ad1df0b7c0
parent5b8dba5e2f26f02cd29163ef7a6036d78aa873ec (diff)
downloadrabbitmq-server-git-47686ee1f073bba46911d865a978517c4b94f48a.tar.gz
Remove unused .github directories
They were valid until the switch to the "monorepository" when everything was merged into a single Git repository.
-rw-r--r--deps/amqp10_client/.github/ISSUE_TEMPLATE.md21
-rw-r--r--deps/amqp10_client/.github/PULL_REQUEST_TEMPLATE.md43
-rw-r--r--deps/amqp10_client/.github/workflows/test-erlang-otp-21.3.yaml404
-rw-r--r--deps/amqp10_client/.github/workflows/test-erlang-otp-22.3.yaml404
-rw-r--r--deps/rabbit/.github/CODEOWNERS1
-rw-r--r--deps/rabbit/.github/workflows/test-erlang-otp-22.3.yaml9328
-rw-r--r--deps/rabbit/.github/workflows/test-erlang-otp-23.1.yaml9328
-rw-r--r--deps/rabbit/.github/workflows/test-jobs/30-CT_SUITE.yaml95
-rw-r--r--deps/rabbit_common/.github/workflows/test-jobs/00-header.yaml9
-rw-r--r--deps/rabbit_common/.github/workflows/test-jobs/01-checks.yaml101
-rw-r--r--deps/rabbit_common/.github/workflows/test-jobs/10-dialyzer.yaml35
-rw-r--r--deps/rabbit_common/.github/workflows/test-jobs/20-eunit.yaml34
-rw-r--r--deps/rabbit_common/.github/workflows/test-jobs/30-CT_SUITE.yaml73
-rw-r--r--deps/rabbit_common/.github/workflows/test-jobs/99-capture-tested-deps-versions.yaml30
-rw-r--r--deps/rabbit_common/.github/workflows/webhooks.yml18
-rw-r--r--deps/rabbitmq_auth_backend_cache/.github/ISSUE_TEMPLATE.md21
-rw-r--r--deps/rabbitmq_auth_backend_cache/.github/PULL_REQUEST_TEMPLATE.md43
-rw-r--r--deps/rabbitmq_auth_backend_http/.github/ISSUE_TEMPLATE.md21
-rw-r--r--deps/rabbitmq_auth_backend_http/.github/PULL_REQUEST_TEMPLATE.md43
-rw-r--r--deps/rabbitmq_auth_backend_ldap/.github/ISSUE_TEMPLATE.md21
-rw-r--r--deps/rabbitmq_auth_backend_ldap/.github/PULL_REQUEST_TEMPLATE.md43
-rw-r--r--deps/rabbitmq_auth_backend_oauth2/.github/ISSUE_TEMPLATE.md21
-rw-r--r--deps/rabbitmq_auth_backend_oauth2/.github/PULL_REQUEST_TEMPLATE.md43
-rw-r--r--deps/rabbitmq_auth_mechanism_ssl/.github/ISSUE_TEMPLATE.md21
-rw-r--r--deps/rabbitmq_auth_mechanism_ssl/.github/PULL_REQUEST_TEMPLATE.md43
-rw-r--r--deps/rabbitmq_cli/.github/ISSUE_TEMPLATE.md21
-rw-r--r--deps/rabbitmq_cli/.github/PULL_REQUEST_TEMPLATE.md43
-rw-r--r--deps/rabbitmq_cli/.github/workflows/webhooks.yml18
-rw-r--r--deps/rabbitmq_consistent_hash_exchange/.github/ISSUE_TEMPLATE.md43
-rw-r--r--deps/rabbitmq_consistent_hash_exchange/.github/PULL_REQUEST_TEMPLATE.md43
-rw-r--r--deps/rabbitmq_event_exchange/.github/ISSUE_TEMPLATE.md21
-rw-r--r--deps/rabbitmq_event_exchange/.github/PULL_REQUEST_TEMPLATE.md43
-rw-r--r--deps/rabbitmq_federation/.github/ISSUE_TEMPLATE.md43
-rw-r--r--deps/rabbitmq_federation/.github/PULL_REQUEST_TEMPLATE.md43
-rw-r--r--deps/rabbitmq_federation_management/.github/ISSUE_TEMPLATE.md43
-rw-r--r--deps/rabbitmq_federation_management/.github/PULL_REQUEST_TEMPLATE.md43
-rw-r--r--deps/rabbitmq_management/.github/ISSUE_TEMPLATE.md43
-rw-r--r--deps/rabbitmq_management/.github/PULL_REQUEST_TEMPLATE.md43
-rw-r--r--deps/rabbitmq_management/.github/workflows/test-erlang-otp-22.3.yaml1060
-rw-r--r--deps/rabbitmq_management/.github/workflows/test-erlang-otp-23.0.yaml1060
-rw-r--r--deps/rabbitmq_management/.github/workflows/test-jobs/10-dialyzer.yaml7
-rw-r--r--deps/rabbitmq_mqtt/.github/ISSUE_TEMPLATE.md43
-rw-r--r--deps/rabbitmq_mqtt/.github/PULL_REQUEST_TEMPLATE.md43
-rw-r--r--deps/rabbitmq_peer_discovery_aws/.github/ISSUE_TEMPLATE.md21
-rw-r--r--deps/rabbitmq_peer_discovery_aws/.github/PULL_REQUEST_TEMPLATE.md43
-rw-r--r--deps/rabbitmq_peer_discovery_common/.github/ISSUE_TEMPLATE.md21
-rw-r--r--deps/rabbitmq_peer_discovery_common/.github/PULL_REQUEST_TEMPLATE.md43
-rw-r--r--deps/rabbitmq_peer_discovery_consul/.github/ISSUE_TEMPLATE.md21
-rw-r--r--deps/rabbitmq_peer_discovery_consul/.github/PULL_REQUEST_TEMPLATE.md43
-rw-r--r--deps/rabbitmq_peer_discovery_etcd/.github/ISSUE_TEMPLATE.md21
-rw-r--r--deps/rabbitmq_peer_discovery_etcd/.github/PULL_REQUEST_TEMPLATE.md43
-rw-r--r--deps/rabbitmq_peer_discovery_k8s/.github/ISSUE_TEMPLATE.md21
-rw-r--r--deps/rabbitmq_peer_discovery_k8s/.github/PULL_REQUEST_TEMPLATE.md43
-rw-r--r--deps/rabbitmq_prometheus/.github/CODEOWNERS9
-rw-r--r--deps/rabbitmq_prometheus/.github/ISSUE_TEMPLATE.md21
-rw-r--r--deps/rabbitmq_prometheus/.github/PULL_REQUEST_TEMPLATE.md43
-rw-r--r--deps/rabbitmq_prometheus/.github/workflows/test.yml36
-rw-r--r--deps/rabbitmq_shovel/.github/ISSUE_TEMPLATE.md43
-rw-r--r--deps/rabbitmq_shovel/.github/PULL_REQUEST_TEMPLATE.md43
-rw-r--r--deps/rabbitmq_shovel_management/.github/ISSUE_TEMPLATE.md43
-rw-r--r--deps/rabbitmq_shovel_management/.github/PULL_REQUEST_TEMPLATE.md43
-rw-r--r--deps/rabbitmq_stomp/.github/ISSUE_TEMPLATE.md43
-rw-r--r--deps/rabbitmq_stomp/.github/PULL_REQUEST_TEMPLATE.md43
-rw-r--r--deps/rabbitmq_tracing/.github/ISSUE_TEMPLATE.md21
-rw-r--r--deps/rabbitmq_tracing/.github/PULL_REQUEST_TEMPLATE.md43
-rw-r--r--deps/rabbitmq_web_mqtt/.github/ISSUE_TEMPLATE.md43
-rw-r--r--deps/rabbitmq_web_mqtt/.github/PULL_REQUEST_TEMPLATE.md43
-rw-r--r--deps/rabbitmq_web_stomp_examples/.github/ISSUE_TEMPLATE.md21
-rw-r--r--deps/rabbitmq_web_stomp_examples/.github/PULL_REQUEST_TEMPLATE.md43
69 files changed, 0 insertions, 23848 deletions
diff --git a/deps/amqp10_client/.github/ISSUE_TEMPLATE.md b/deps/amqp10_client/.github/ISSUE_TEMPLATE.md
deleted file mode 100644
index bce561261a..0000000000
--- a/deps/amqp10_client/.github/ISSUE_TEMPLATE.md
+++ /dev/null
@@ -1,21 +0,0 @@
-Thank you for using RabbitMQ.
-
-**STOP NOW AND READ THIS** BEFORE OPENING A NEW ISSUE ON GITHUB
-
-Unless you are CERTAIN you have found a reproducible problem in RabbitMQ or
-have a **specific, actionable** suggestion for our team, you must first ask
-your question or discuss your suspected issue on the mailing list:
-
-https://groups.google.com/forum/#!forum/rabbitmq-users
-
-Team RabbitMQ does not use GitHub issues for discussions, investigations, root
-cause analysis and so on.
-
-Please take the time to read the CONTRIBUTING.md document for instructions on
-how to effectively ask a question or report a suspected issue:
-
-https://github.com/rabbitmq/rabbitmq-server/blob/master/CONTRIBUTING.md#github-issues
-
-Following these rules **will save time** for both you and RabbitMQ's maintainers.
-
-Thank you.
diff --git a/deps/amqp10_client/.github/PULL_REQUEST_TEMPLATE.md b/deps/amqp10_client/.github/PULL_REQUEST_TEMPLATE.md
deleted file mode 100644
index 230febf8a2..0000000000
--- a/deps/amqp10_client/.github/PULL_REQUEST_TEMPLATE.md
+++ /dev/null
@@ -1,43 +0,0 @@
-## Proposed Changes
-
-Please describe the big picture of your changes here to communicate to the
-RabbitMQ team why we should accept this pull request. If it fixes a bug or
-resolves a feature request, be sure to link to that issue.
-
-A pull request that doesn't explain **why** the change was made has a much
-lower chance of being accepted.
-
-If English isn't your first language, don't worry about it and try to
-communicate the problem you are trying to solve to the best of your abilities.
-As long as we can understand the intent, it's all good.
-
-## Types of Changes
-
-What types of changes does your code introduce to this project?
-_Put an `x` in the boxes that apply_
-
-- [ ] Bug fix (non-breaking change which fixes issue #NNNN)
-- [ ] New feature (non-breaking change which adds functionality)
-- [ ] Breaking change (fix or feature that would cause an observable behavior change in existing systems)
-- [ ] Documentation improvements (corrections, new content, etc)
-- [ ] Cosmetic change (whitespace, formatting, etc)
-
-## Checklist
-
-_Put an `x` in the boxes that apply. You can also fill these out after creating
-the PR. If you're unsure about any of them, don't hesitate to ask on the
-mailing list. We're here to help! This is simply a reminder of what we are
-going to look for before merging your code._
-
-- [ ] I have read the `CONTRIBUTING.md` document
-- [ ] I have signed the CA (see https://cla.pivotal.io/sign/rabbitmq)
-- [ ] All tests pass locally with my changes
-- [ ] I have added tests that prove my fix is effective or that my feature works
-- [ ] I have added necessary documentation (if appropriate)
-- [ ] Any dependent changes have been merged and published in related repositories
-
-## Further Comments
-
-If this is a relatively large or complex change, kick off the discussion by
-explaining why you chose the solution you did and what alternatives you
-considered, etc.
diff --git a/deps/amqp10_client/.github/workflows/test-erlang-otp-21.3.yaml b/deps/amqp10_client/.github/workflows/test-erlang-otp-21.3.yaml
deleted file mode 100644
index d93c8c8c04..0000000000
--- a/deps/amqp10_client/.github/workflows/test-erlang-otp-21.3.yaml
+++ /dev/null
@@ -1,404 +0,0 @@
-# vim:sw=2:et:
-# https://help.github.com/en/actions/configuring-and-managing-workflows/configuring-a-workflow
-name: "Test - Erlang 21.3"
-on:
- push:
- repository_dispatch:
- types:
- - new-commit-to-dep-release-branch
-jobs:
- # vim:sw=2:et:
- checks:
- name: checks
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 21.3
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: CHECK RABBITMQ COMPONENTS
- # https://github.community/t5/GitHub-Actions/How-can-I-set-an-expression-as-an-environment-variable-at/m-p/41804/highlight/true#M4751
- id: ref
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- echo "::set-output name=branch_or_tag_name::$branch_or_tag_name"
- make check-rabbitmq-components.mk base_rmq_ref=master current_rmq_ref=$branch_or_tag_name
- # https://help.github.com/en/actions/configuring-and-managing-workflows/caching-dependencies-to-speed-up-workflows
- - name: CACHE DEPS
- uses: actions/cache@v1
- with:
- path: deps
- key: otp-21.3_git-${{ github.sha }}_deps
- - name: RESOLVE & COMPILE DEPS
- run: |
- make deps test-deps base_rmq_ref=master current_rmq_ref=${{ steps.ref.outputs.branch_or_tag_name }}
- echo "Capture versions of the RabbitMQ components used in this workflow..."
- make amqp10_client-rabbitmq-deps.mk
- mv amqp10_client-rabbitmq-deps.mk deps/
- echo "Remove directories not used in the subsequent jobs..."
- rm -fr deps/*/{.git,test}
- - name: UPLOAD DEPS VERSIONS
- uses: actions/upload-artifact@v2-preview
- with:
- name: amqp10_client-rabbitmq-deps.mk
- path: deps/amqp10_client-rabbitmq-deps.mk
- - name: CHECK CROSS REFERENCES
- run: |
- make xref base_rmq_ref=master current_rmq_ref=${{ steps.ref.outputs.branch_or_tag_name }}
- - name: COMPILE FOR TEST
- run: |
- make test-build base_rmq_ref=master current_rmq_ref=${{ steps.ref.outputs.branch_or_tag_name }}
- - name: CACHE SECONDARY UMBRELLAS
- if: success() && 'oldest' == 'oldest'
- uses: actions/cache@v1
- with:
- path: umbrellas
- key: secondary-umbrellas-v3.7.26-v3.8.3-erlang-21.3-rev3
- - name: PREPARE SECONDARY UMBRELLA COPIES
- if: success() && 'oldest' == 'oldest'
- run: |
- # ----------------------------------------------------------
- # CAUTION:
- # The same script must be copied to `03-CT_SUITE.yaml`. It is used to
- # recreate the umbrellas if the cache restore fails.
- # ----------------------------------------------------------
- set -x
- for version in v3.7.26 v3.8.3; do
- umbrella="umbrellas/$version"
- if ! test -d "$umbrella" ||
- ! make -C "$umbrella/deps/amqp10_client" test-dist; then
- rm -rf "$umbrella"
-
- # Fetch the master Umbrella; the final umbrellas are created from
- # the master copy.
- if ! test -d umbrellas/master; then
- git config --global advice.detachedHead false
- git clone \
- https://github.com/rabbitmq/rabbitmq-public-umbrella.git \
- umbrellas/master
- make -C umbrellas/master co # To get RabbitMQ components.
- fi
-
- # We copy the master Umbrella and checkout the appropriate tag.
- cp -a umbrellas/master "$umbrella"
- git -C "$umbrella" checkout "master"
- make -C "$umbrella" up BRANCH="$version"
- # To remove third-party deps which were checked out when the
- # projects were on the `master` branch. Thus, possibly not the
- # version pinning we expect. We update the Umbrella one last time
- # to fetch the correct third-party deps.
- make -C "$umbrella" clean-3rd-party-repos
- make -C "$umbrella" up
- make -C "$umbrella/deps/amqp10_client" test-dist
- rm -fr "$umbrella"/deps/*/{.git,test} "$umbrella"/.git
- fi
- done
- rm -fr umbrellas/master
- # vim:sw=2:et:
- dialyzer:
- name: dialyzer
- needs: [checks]
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- if: success() && 'oldest' == 'latest'
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- if: success() && 'oldest' == 'latest'
- uses: actions/setup-elixir@v1
- with:
- otp-version: 21.3
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: CACHE DEPS
- if: success() && 'oldest' == 'latest'
- uses: actions/cache@v1
- with:
- path: deps
- key: otp-21.3_git-${{ github.sha }}_deps
- - name: CACHE DIALYZER PLT
- if: success() && 'oldest' == 'latest'
- uses: actions/cache@v1
- with:
- path: .amqp10_client.plt
- key: plt-amqp10_client-erlang-21.3-g${{ github.sha }}
- - name: RUN DIALYZER
- if: success() && 'oldest' == 'latest'
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- make dialyze \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL=
- # vim:sw=2:et:
- eunit:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: eunit
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 21.3
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: CACHE DEPS
- uses: actions/cache@v1
- with:
- path: deps
- key: otp-21.3_git-${{ github.sha }}_deps
- - name: RUN TESTS
- run: |
- ! test -d ebin || touch ebin/*
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- make eunit \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1
- # vim:sw=2:et:
- ct-msg:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-msg
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 21.3
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: CACHE DEPS
- uses: actions/cache@v1
- with:
- path: deps
- key: otp-21.3_git-${{ github.sha }}_deps
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- make ct-msg \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1
- - name: CACHE SECONDARY UMBRELLAS
- if: success() && 'oldest' == 'oldest'
- uses: actions/cache@v1
- with:
- path: umbrellas
- key: secondary-umbrellas-v3.7.26-v3.8.3-erlang-21.3-rev3
- - name: VERIFY SECONDARY UMBRELLA COPIES (in case of cache restore failure)
- if: success() && 'oldest' == 'oldest'
- run: |
- set -x
- for version in v3.7.26 v3.8.3; do
- umbrella="umbrellas/$version"
- if ! test -d "$umbrella" ||
- ! make -C "$umbrella/deps/amqp10_client" test-dist; then
- rm -rf "$umbrella"
-
- # Fetch the master Umbrella; the final umbrellas are created from
- # the master copy.
- if ! test -d umbrellas/master; then
- git config --global advice.detachedHead false
- git clone \
- https://github.com/rabbitmq/rabbitmq-public-umbrella.git \
- umbrellas/master
- make -C umbrellas/master co # To get RabbitMQ components.
- fi
-
- # We copy the master Umbrella and checkout the appropriate tag.
- cp -a umbrellas/master "$umbrella"
- git -C "$umbrella" checkout "master"
- make -C "$umbrella" up BRANCH="$version"
- # To remove third-party deps which were checked out when the
- # projects were on the `master` branch. Thus, possibly not the
- # version pinning we expect. We update the Umbrella one last time
- # to fetch the correct third-party deps.
- make -C "$umbrella" clean-3rd-party-repos
- make -C "$umbrella" up
- make -C "$umbrella/deps/amqp10_client" test-dist
- rm -fr "$umbrella"/deps/*/{.git,test} "$umbrella"/.git
- fi
- done
- rm -fr umbrellas/master
- - name: RUN TESTS [mixed-versions]
- if: success() && 'oldest' == 'oldest'
- run: |
- set -x
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-msg \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS=
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-msg-logs
- path: "*-ct-logs-*.tar.xz"
- # vim:sw=2:et:
- ct-system:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-system
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 21.3
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: CACHE DEPS
- uses: actions/cache@v1
- with:
- path: deps
- key: otp-21.3_git-${{ github.sha }}_deps
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- make ct-system \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1
- - name: CACHE SECONDARY UMBRELLAS
- if: success() && 'oldest' == 'oldest'
- uses: actions/cache@v1
- with:
- path: umbrellas
- key: secondary-umbrellas-v3.7.26-v3.8.3-erlang-21.3-rev3
- - name: VERIFY SECONDARY UMBRELLA COPIES (in case of cache restore failure)
- if: success() && 'oldest' == 'oldest'
- run: |
- set -x
- for version in v3.7.26 v3.8.3; do
- umbrella="umbrellas/$version"
- if ! test -d "$umbrella" ||
- ! make -C "$umbrella/deps/amqp10_client" test-dist; then
- rm -rf "$umbrella"
-
- # Fetch the master Umbrella; the final umbrellas are created from
- # the master copy.
- if ! test -d umbrellas/master; then
- git config --global advice.detachedHead false
- git clone \
- https://github.com/rabbitmq/rabbitmq-public-umbrella.git \
- umbrellas/master
- make -C umbrellas/master co # To get RabbitMQ components.
- fi
-
- # We copy the master Umbrella and checkout the appropriate tag.
- cp -a umbrellas/master "$umbrella"
- git -C "$umbrella" checkout "master"
- make -C "$umbrella" up BRANCH="$version"
- # To remove third-party deps which were checked out when the
- # projects were on the `master` branch. Thus, possibly not the
- # version pinning we expect. We update the Umbrella one last time
- # to fetch the correct third-party deps.
- make -C "$umbrella" clean-3rd-party-repos
- make -C "$umbrella" up
- make -C "$umbrella/deps/amqp10_client" test-dist
- rm -fr "$umbrella"/deps/*/{.git,test} "$umbrella"/.git
- fi
- done
- rm -fr umbrellas/master
- - name: RUN TESTS [mixed-versions]
- if: success() && 'oldest' == 'oldest'
- run: |
- set -x
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-system \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS=
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-system-logs
- path: "*-ct-logs-*.tar.xz"
- # vim:sw=2:et:
- capture-tested-deps-versions:
- needs:
- - dialyzer
- - eunit
- - ct-msg
- - ct-system
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- - name: CACHE DEPS
- uses: actions/cache@v1
- with:
- path: deps
- key: otp-21.3_git-${{ github.sha }}_deps
- - name: FORMAT GIT REF
- # https://github.community/t5/GitHub-Actions/How-can-I-set-an-expression-as-an-environment-variable-at/m-p/41804/highlight/true#M4751
- id: ref
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- echo "::set-output name=branch_or_tag_name::$branch_or_tag_name"
- - name: UPLOAD TO S3
- if: github.ref == 'refs/heads/master'
- # https://github.com/marketplace/actions/s3-file-upload
- uses: zdurham/s3-upload-github-action@master
- env:
- AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
- AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
- AWS_REGION: ${{ secrets.AWS_REGION }}
- FILE: deps/amqp10_client-rabbitmq-deps.mk
- S3_BUCKET: ${{ secrets.AWS_S3_BUCKET }}
- S3_KEY: rabbitmq-amqp1.0-client/${{ steps.ref.outputs.branch_or_tag_name }}/${{ github.run_id }}/otp-21.3/amqp10_client-rabbitmq-deps.mk
diff --git a/deps/amqp10_client/.github/workflows/test-erlang-otp-22.3.yaml b/deps/amqp10_client/.github/workflows/test-erlang-otp-22.3.yaml
deleted file mode 100644
index bf2c4723a4..0000000000
--- a/deps/amqp10_client/.github/workflows/test-erlang-otp-22.3.yaml
+++ /dev/null
@@ -1,404 +0,0 @@
-# vim:sw=2:et:
-# https://help.github.com/en/actions/configuring-and-managing-workflows/configuring-a-workflow
-name: "Test - Erlang 22.3"
-on:
- push:
- repository_dispatch:
- types:
- - new-commit-to-dep-release-branch
-jobs:
- # vim:sw=2:et:
- checks:
- name: checks
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 22.3
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: CHECK RABBITMQ COMPONENTS
- # https://github.community/t5/GitHub-Actions/How-can-I-set-an-expression-as-an-environment-variable-at/m-p/41804/highlight/true#M4751
- id: ref
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- echo "::set-output name=branch_or_tag_name::$branch_or_tag_name"
- make check-rabbitmq-components.mk base_rmq_ref=master current_rmq_ref=$branch_or_tag_name
- # https://help.github.com/en/actions/configuring-and-managing-workflows/caching-dependencies-to-speed-up-workflows
- - name: CACHE DEPS
- uses: actions/cache@v1
- with:
- path: deps
- key: otp-22.3_git-${{ github.sha }}_deps
- - name: RESOLVE & COMPILE DEPS
- run: |
- make deps test-deps base_rmq_ref=master current_rmq_ref=${{ steps.ref.outputs.branch_or_tag_name }}
- echo "Capture versions of the RabbitMQ components used in this workflow..."
- make amqp10_client-rabbitmq-deps.mk
- mv amqp10_client-rabbitmq-deps.mk deps/
- echo "Remove directories not used in the subsequent jobs..."
- rm -fr deps/*/{.git,test}
- - name: UPLOAD DEPS VERSIONS
- uses: actions/upload-artifact@v2-preview
- with:
- name: amqp10_client-rabbitmq-deps.mk
- path: deps/amqp10_client-rabbitmq-deps.mk
- - name: CHECK CROSS REFERENCES
- run: |
- make xref base_rmq_ref=master current_rmq_ref=${{ steps.ref.outputs.branch_or_tag_name }}
- - name: COMPILE FOR TEST
- run: |
- make test-build base_rmq_ref=master current_rmq_ref=${{ steps.ref.outputs.branch_or_tag_name }}
- - name: CACHE SECONDARY UMBRELLAS
- if: success() && 'latest' == 'oldest'
- uses: actions/cache@v1
- with:
- path: umbrellas
- key: secondary-umbrellas-v3.7.26-v3.8.3-erlang-22.3-rev3
- - name: PREPARE SECONDARY UMBRELLA COPIES
- if: success() && 'latest' == 'oldest'
- run: |
- # ----------------------------------------------------------
- # CAUTION:
- # The same script must be copied to `03-CT_SUITE.yaml`. It is used to
- # recreate the umbrellas if the cache restore fails.
- # ----------------------------------------------------------
- set -x
- for version in v3.7.26 v3.8.3; do
- umbrella="umbrellas/$version"
- if ! test -d "$umbrella" ||
- ! make -C "$umbrella/deps/amqp10_client" test-dist; then
- rm -rf "$umbrella"
-
- # Fetch the master Umbrella; the final umbrellas are created from
- # the master copy.
- if ! test -d umbrellas/master; then
- git config --global advice.detachedHead false
- git clone \
- https://github.com/rabbitmq/rabbitmq-public-umbrella.git \
- umbrellas/master
- make -C umbrellas/master co # To get RabbitMQ components.
- fi
-
- # We copy the master Umbrella and checkout the appropriate tag.
- cp -a umbrellas/master "$umbrella"
- git -C "$umbrella" checkout "master"
- make -C "$umbrella" up BRANCH="$version"
- # To remove third-party deps which were checked out when the
- # projects were on the `master` branch. Thus, possibly not the
- # version pinning we expect. We update the Umbrella one last time
- # to fetch the correct third-party deps.
- make -C "$umbrella" clean-3rd-party-repos
- make -C "$umbrella" up
- make -C "$umbrella/deps/amqp10_client" test-dist
- rm -fr "$umbrella"/deps/*/{.git,test} "$umbrella"/.git
- fi
- done
- rm -fr umbrellas/master
- # vim:sw=2:et:
- dialyzer:
- name: dialyzer
- needs: [checks]
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- if: success() && 'latest' == 'latest'
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- if: success() && 'latest' == 'latest'
- uses: actions/setup-elixir@v1
- with:
- otp-version: 22.3
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: CACHE DEPS
- if: success() && 'latest' == 'latest'
- uses: actions/cache@v1
- with:
- path: deps
- key: otp-22.3_git-${{ github.sha }}_deps
- - name: CACHE DIALYZER PLT
- if: success() && 'latest' == 'latest'
- uses: actions/cache@v1
- with:
- path: .amqp10_client.plt
- key: plt-amqp10_client-erlang-22.3-g${{ github.sha }}
- - name: RUN DIALYZER
- if: success() && 'latest' == 'latest'
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- make dialyze \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL=
- # vim:sw=2:et:
- eunit:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: eunit
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 22.3
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: CACHE DEPS
- uses: actions/cache@v1
- with:
- path: deps
- key: otp-22.3_git-${{ github.sha }}_deps
- - name: RUN TESTS
- run: |
- ! test -d ebin || touch ebin/*
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- make eunit \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1
- # vim:sw=2:et:
- ct-msg:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-msg
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 22.3
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: CACHE DEPS
- uses: actions/cache@v1
- with:
- path: deps
- key: otp-22.3_git-${{ github.sha }}_deps
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- make ct-msg \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1
- - name: CACHE SECONDARY UMBRELLAS
- if: success() && 'latest' == 'oldest'
- uses: actions/cache@v1
- with:
- path: umbrellas
- key: secondary-umbrellas-v3.7.26-v3.8.3-erlang-22.3-rev3
- - name: VERIFY SECONDARY UMBRELLA COPIES (in case of cache restore failure)
- if: success() && 'latest' == 'oldest'
- run: |
- set -x
- for version in v3.7.26 v3.8.3; do
- umbrella="umbrellas/$version"
- if ! test -d "$umbrella" ||
- ! make -C "$umbrella/deps/amqp10_client" test-dist; then
- rm -rf "$umbrella"
-
- # Fetch the master Umbrella; the final umbrellas are created from
- # the master copy.
- if ! test -d umbrellas/master; then
- git config --global advice.detachedHead false
- git clone \
- https://github.com/rabbitmq/rabbitmq-public-umbrella.git \
- umbrellas/master
- make -C umbrellas/master co # To get RabbitMQ components.
- fi
-
- # We copy the master Umbrella and checkout the appropriate tag.
- cp -a umbrellas/master "$umbrella"
- git -C "$umbrella" checkout "master"
- make -C "$umbrella" up BRANCH="$version"
- # To remove third-party deps which were checked out when the
- # projects were on the `master` branch. Thus, possibly not the
- # version pinning we expect. We update the Umbrella one last time
- # to fetch the correct third-party deps.
- make -C "$umbrella" clean-3rd-party-repos
- make -C "$umbrella" up
- make -C "$umbrella/deps/amqp10_client" test-dist
- rm -fr "$umbrella"/deps/*/{.git,test} "$umbrella"/.git
- fi
- done
- rm -fr umbrellas/master
- - name: RUN TESTS [mixed-versions]
- if: success() && 'latest' == 'oldest'
- run: |
- set -x
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-msg \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS=
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-msg-logs
- path: "*-ct-logs-*.tar.xz"
- # vim:sw=2:et:
- ct-system:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-system
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 22.3
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: CACHE DEPS
- uses: actions/cache@v1
- with:
- path: deps
- key: otp-22.3_git-${{ github.sha }}_deps
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- make ct-system \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1
- - name: CACHE SECONDARY UMBRELLAS
- if: success() && 'latest' == 'oldest'
- uses: actions/cache@v1
- with:
- path: umbrellas
- key: secondary-umbrellas-v3.7.26-v3.8.3-erlang-22.3-rev3
- - name: VERIFY SECONDARY UMBRELLA COPIES (in case of cache restore failure)
- if: success() && 'latest' == 'oldest'
- run: |
- set -x
- for version in v3.7.26 v3.8.3; do
- umbrella="umbrellas/$version"
- if ! test -d "$umbrella" ||
- ! make -C "$umbrella/deps/amqp10_client" test-dist; then
- rm -rf "$umbrella"
-
- # Fetch the master Umbrella; the final umbrellas are created from
- # the master copy.
- if ! test -d umbrellas/master; then
- git config --global advice.detachedHead false
- git clone \
- https://github.com/rabbitmq/rabbitmq-public-umbrella.git \
- umbrellas/master
- make -C umbrellas/master co # To get RabbitMQ components.
- fi
-
- # We copy the master Umbrella and checkout the appropriate tag.
- cp -a umbrellas/master "$umbrella"
- git -C "$umbrella" checkout "master"
- make -C "$umbrella" up BRANCH="$version"
- # To remove third-party deps which were checked out when the
- # projects were on the `master` branch. Thus, possibly not the
- # version pinning we expect. We update the Umbrella one last time
- # to fetch the correct third-party deps.
- make -C "$umbrella" clean-3rd-party-repos
- make -C "$umbrella" up
- make -C "$umbrella/deps/amqp10_client" test-dist
- rm -fr "$umbrella"/deps/*/{.git,test} "$umbrella"/.git
- fi
- done
- rm -fr umbrellas/master
- - name: RUN TESTS [mixed-versions]
- if: success() && 'latest' == 'oldest'
- run: |
- set -x
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-system \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS=
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-system-logs
- path: "*-ct-logs-*.tar.xz"
- # vim:sw=2:et:
- capture-tested-deps-versions:
- needs:
- - dialyzer
- - eunit
- - ct-msg
- - ct-system
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- - name: CACHE DEPS
- uses: actions/cache@v1
- with:
- path: deps
- key: otp-22.3_git-${{ github.sha }}_deps
- - name: FORMAT GIT REF
- # https://github.community/t5/GitHub-Actions/How-can-I-set-an-expression-as-an-environment-variable-at/m-p/41804/highlight/true#M4751
- id: ref
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- echo "::set-output name=branch_or_tag_name::$branch_or_tag_name"
- - name: UPLOAD TO S3
- if: github.ref == 'refs/heads/master'
- # https://github.com/marketplace/actions/s3-file-upload
- uses: zdurham/s3-upload-github-action@master
- env:
- AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
- AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
- AWS_REGION: ${{ secrets.AWS_REGION }}
- FILE: deps/amqp10_client-rabbitmq-deps.mk
- S3_BUCKET: ${{ secrets.AWS_S3_BUCKET }}
- S3_KEY: rabbitmq-amqp1.0-client/${{ steps.ref.outputs.branch_or_tag_name }}/${{ github.run_id }}/otp-22.3/amqp10_client-rabbitmq-deps.mk
diff --git a/deps/rabbit/.github/CODEOWNERS b/deps/rabbit/.github/CODEOWNERS
deleted file mode 100644
index 40b1dcb859..0000000000
--- a/deps/rabbit/.github/CODEOWNERS
+++ /dev/null
@@ -1 +0,0 @@
-.github/workflows/ @gerhard @dumbbell
diff --git a/deps/rabbit/.github/workflows/test-erlang-otp-22.3.yaml b/deps/rabbit/.github/workflows/test-erlang-otp-22.3.yaml
deleted file mode 100644
index c4650979f2..0000000000
--- a/deps/rabbit/.github/workflows/test-erlang-otp-22.3.yaml
+++ /dev/null
@@ -1,9328 +0,0 @@
-# vim:sw=2:et:
-# https://help.github.com/en/actions/configuring-and-managing-workflows/configuring-a-workflow
-name: "Test - Erlang 22.3"
-on:
- push:
- repository_dispatch:
- types:
- - new-commit-to-dep-release-branch
-jobs:
- # vim:sw=2:et:
- checks:
- name: checks
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 22.3
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: CHECK RABBITMQ COMPONENTS
- # https://github.community/t5/GitHub-Actions/How-can-I-set-an-expression-as-an-environment-variable-at/m-p/41804/highlight/true#M4751
- id: ref
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- echo "::set-output name=branch_or_tag_name::$branch_or_tag_name"
- make check-rabbitmq-components.mk base_rmq_ref=master current_rmq_ref=$branch_or_tag_name
- - name: RESOLVE & COMPILE DEPS
- run: |
- make deps test-deps base_rmq_ref=master current_rmq_ref=${{ steps.ref.outputs.branch_or_tag_name }}
- echo "Capture versions of the RabbitMQ components used in this workflow..."
- make rabbit-rabbitmq-deps.mk
- echo "Remove directories not used in the subsequent jobs..."
- rm -fr deps/*/{.git,test}
- - name: UPLOAD DEPS VERSIONS
- uses: actions/upload-artifact@v2
- with:
- name: rabbit-rabbitmq-deps.mk
- path: rabbit-rabbitmq-deps.mk
- - name: CREATE DEPS ARCHIVE
- run: |
- tar cf - deps | xz > deps.tar.xz
- - name: UPLOAD DEPS ARCHIVE
- uses: actions/upload-artifact@v2
- with:
- name: deps.tar.xz
- path: deps.tar.xz
- - name: CHECK CROSS REFERENCES
- run: |
- make xref base_rmq_ref=master current_rmq_ref=${{ steps.ref.outputs.branch_or_tag_name }}
- - name: COMPILE FOR TEST
- run: |
- make test-build base_rmq_ref=master current_rmq_ref=${{ steps.ref.outputs.branch_or_tag_name }}
- - name: CACHE SECONDARY UMBRELLAS
- if: success() && 'oldest' == 'oldest'
- uses: actions/cache@v1
- with:
- path: umbrellas
- key: secondary-umbrellas-v3.7.28-v3.8.9-erlang-22.3-rev4
- - name: PREPARE SECONDARY UMBRELLA COPIES
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- for version in v3.7.28 v3.8.9; do
- umbrella="umbrellas/$version"
- if ! test -d "$umbrella" ||
- ! make -C "$umbrella/deps/rabbit" test-dist; then
- rm -rf "$umbrella"
-
- # Fetch the master Umbrella; the final umbrellas are created from
- # the master copy.
- if ! test -d umbrellas/master; then
- git config --global advice.detachedHead false
- git clone \
- https://github.com/rabbitmq/rabbitmq-public-umbrella.git \
- umbrellas/master
- make -C umbrellas/master co # To get RabbitMQ components.
- fi
-
- # We copy the master Umbrella and checkout the appropriate tag.
- cp -a umbrellas/master "$umbrella"
- git -C "$umbrella" checkout "master"
- make -C "$umbrella" up BRANCH="$version"
- # To remove third-party deps which were checked out when the
- # projects were on the `master` branch. Thus, possibly not the
- # version pinning we expect. We update the Umbrella one last time
- # to fetch the correct third-party deps.
- make -C "$umbrella" clean-3rd-party-repos
- make -C "$umbrella" up
- make -C "$umbrella/deps/rabbit" test-dist
- rm -rf "$umbrella"/deps/rabbitmq_website
- rm -rf "$umbrella"/deps/rabbitmq_prometheus/docker
- rm -rf "$umbrella"/deps/*/{.git,test} "$umbrella"/.git
- fi
- done
- rm -fr umbrellas/master
- - name: CREATE SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- tar cf - umbrellas | xz > secondary-umbrellas.tar.xz
- - name: UPLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- uses: actions/upload-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- path: secondary-umbrellas.tar.xz
- # vim:sw=2:et:
- dialyzer:
- name: dialyzer
- needs: [checks]
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- if: success() && 'oldest' == 'latest'
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- if: success() && 'oldest' == 'latest'
- uses: actions/setup-elixir@v1
- with:
- otp-version: 22.3
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- if: success() && 'oldest' == 'latest'
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- if: success() && 'oldest' == 'latest'
- run: |
- tar Jxf deps.tar.xz
- rm deps.tar.xz
- - name: RUN DIALYZER
- if: success() && 'oldest' == 'latest'
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- make dialyze \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL=
- # vim:sw=2:et:
- eunit:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: eunit
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 22.3
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- rm deps.tar.xz
- - name: RUN TESTS
- run: |
- ! test -d ebin || touch ebin/*
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- make eunit \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1
- # vim:sw=2:et:
- ct-amqqueue_backward_compatibility:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-amqqueue_backward_compatibility
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 22.3
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=22.3
- export ELIXIR_VERSION=1.10.4
- make ct-amqqueue_backward_compatibility \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-amqqueue_backward_compatibility \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-amqqueue_backward_compatibility-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-backing_queue:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-backing_queue
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 22.3
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=22.3
- export ELIXIR_VERSION=1.10.4
- make ct-backing_queue \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-backing_queue \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-backing_queue-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-channel_interceptor:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-channel_interceptor
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 22.3
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=22.3
- export ELIXIR_VERSION=1.10.4
- make ct-channel_interceptor \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-channel_interceptor \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-channel_interceptor-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-channel_operation_timeout:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-channel_operation_timeout
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 22.3
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=22.3
- export ELIXIR_VERSION=1.10.4
- make ct-channel_operation_timeout \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-channel_operation_timeout \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-channel_operation_timeout-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-cluster:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-cluster
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 22.3
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=22.3
- export ELIXIR_VERSION=1.10.4
- make ct-cluster \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-cluster \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-cluster-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-cluster_rename:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-cluster_rename
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 22.3
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=22.3
- export ELIXIR_VERSION=1.10.4
- make ct-cluster_rename \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-cluster_rename \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-cluster_rename-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-clustering_management:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-clustering_management
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 22.3
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=22.3
- export ELIXIR_VERSION=1.10.4
- make ct-clustering_management \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-clustering_management \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-clustering_management-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-config_schema:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-config_schema
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 22.3
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=22.3
- export ELIXIR_VERSION=1.10.4
- make ct-config_schema \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-config_schema \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-config_schema-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-confirms_rejects:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-confirms_rejects
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 22.3
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=22.3
- export ELIXIR_VERSION=1.10.4
- make ct-confirms_rejects \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-confirms_rejects \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-confirms_rejects-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-consumer_timeout:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-consumer_timeout
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 22.3
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=22.3
- export ELIXIR_VERSION=1.10.4
- make ct-consumer_timeout \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-consumer_timeout \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-consumer_timeout-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-crashing_queues:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-crashing_queues
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 22.3
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=22.3
- export ELIXIR_VERSION=1.10.4
- make ct-crashing_queues \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-crashing_queues \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-crashing_queues-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-dead_lettering:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-dead_lettering
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 22.3
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=22.3
- export ELIXIR_VERSION=1.10.4
- make ct-dead_lettering \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-dead_lettering \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-dead_lettering-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-definition_import:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-definition_import
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 22.3
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=22.3
- export ELIXIR_VERSION=1.10.4
- make ct-definition_import \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-definition_import \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-definition_import-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-disconnect_detected_during_alarm:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-disconnect_detected_during_alarm
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 22.3
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=22.3
- export ELIXIR_VERSION=1.10.4
- make ct-disconnect_detected_during_alarm \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-disconnect_detected_during_alarm \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-disconnect_detected_during_alarm-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-dynamic_ha:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-dynamic_ha
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 22.3
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=22.3
- export ELIXIR_VERSION=1.10.4
- make ct-dynamic_ha \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-dynamic_ha \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-dynamic_ha-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-dynamic_qq:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-dynamic_qq
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 22.3
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=22.3
- export ELIXIR_VERSION=1.10.4
- make ct-dynamic_qq \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-dynamic_qq \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-dynamic_qq-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-eager_sync:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-eager_sync
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 22.3
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=22.3
- export ELIXIR_VERSION=1.10.4
- make ct-eager_sync \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-eager_sync \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-eager_sync-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-feature_flags:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-feature_flags
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 22.3
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=22.3
- export ELIXIR_VERSION=1.10.4
- make ct-feature_flags \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-feature_flags \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-feature_flags-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-lazy_queue:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-lazy_queue
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 22.3
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=22.3
- export ELIXIR_VERSION=1.10.4
- make ct-lazy_queue \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-lazy_queue \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-lazy_queue-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-list_consumers_sanity_check:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-list_consumers_sanity_check
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 22.3
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=22.3
- export ELIXIR_VERSION=1.10.4
- make ct-list_consumers_sanity_check \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-list_consumers_sanity_check \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-list_consumers_sanity_check-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-list_queues_online_and_offline:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-list_queues_online_and_offline
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 22.3
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=22.3
- export ELIXIR_VERSION=1.10.4
- make ct-list_queues_online_and_offline \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-list_queues_online_and_offline \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-list_queues_online_and_offline-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-maintenance_mode:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-maintenance_mode
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 22.3
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=22.3
- export ELIXIR_VERSION=1.10.4
- make ct-maintenance_mode \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-maintenance_mode \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-maintenance_mode-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-many_node_ha:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-many_node_ha
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 22.3
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=22.3
- export ELIXIR_VERSION=1.10.4
- make ct-many_node_ha \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-many_node_ha \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-many_node_ha-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-message_size_limit:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-message_size_limit
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 22.3
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=22.3
- export ELIXIR_VERSION=1.10.4
- make ct-message_size_limit \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-message_size_limit \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-message_size_limit-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-metrics:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-metrics
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 22.3
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=22.3
- export ELIXIR_VERSION=1.10.4
- make ct-metrics \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-metrics \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-metrics-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-mirrored_supervisor:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-mirrored_supervisor
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 22.3
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=22.3
- export ELIXIR_VERSION=1.10.4
- make ct-mirrored_supervisor \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-mirrored_supervisor \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-mirrored_supervisor-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-msg_store:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-msg_store
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 22.3
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=22.3
- export ELIXIR_VERSION=1.10.4
- make ct-msg_store \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-msg_store \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-msg_store-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-peer_discovery_classic_config:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-peer_discovery_classic_config
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 22.3
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=22.3
- export ELIXIR_VERSION=1.10.4
- make ct-peer_discovery_classic_config \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-peer_discovery_classic_config \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-peer_discovery_classic_config-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-peer_discovery_dns:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-peer_discovery_dns
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 22.3
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=22.3
- export ELIXIR_VERSION=1.10.4
- make ct-peer_discovery_dns \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-peer_discovery_dns \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-peer_discovery_dns-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-per_user_connection_channel_limit:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-per_user_connection_channel_limit
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 22.3
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=22.3
- export ELIXIR_VERSION=1.10.4
- make ct-per_user_connection_channel_limit \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-per_user_connection_channel_limit \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-per_user_connection_channel_limit-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-per_user_connection_channel_limit_partitions:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-per_user_connection_channel_limit_partitions
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 22.3
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=22.3
- export ELIXIR_VERSION=1.10.4
- make ct-per_user_connection_channel_limit_partitions \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-per_user_connection_channel_limit_partitions \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-per_user_connection_channel_limit_partitions-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-per_user_connection_channel_tracking:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-per_user_connection_channel_tracking
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 22.3
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=22.3
- export ELIXIR_VERSION=1.10.4
- make ct-per_user_connection_channel_tracking \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-per_user_connection_channel_tracking \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-per_user_connection_channel_tracking-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-per_user_connection_tracking:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-per_user_connection_tracking
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 22.3
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=22.3
- export ELIXIR_VERSION=1.10.4
- make ct-per_user_connection_tracking \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-per_user_connection_tracking \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-per_user_connection_tracking-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-per_vhost_connection_limit:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-per_vhost_connection_limit
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 22.3
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=22.3
- export ELIXIR_VERSION=1.10.4
- make ct-per_vhost_connection_limit \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-per_vhost_connection_limit \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-per_vhost_connection_limit-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-per_vhost_connection_limit_partitions:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-per_vhost_connection_limit_partitions
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 22.3
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=22.3
- export ELIXIR_VERSION=1.10.4
- make ct-per_vhost_connection_limit_partitions \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-per_vhost_connection_limit_partitions \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-per_vhost_connection_limit_partitions-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-per_vhost_msg_store:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-per_vhost_msg_store
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 22.3
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=22.3
- export ELIXIR_VERSION=1.10.4
- make ct-per_vhost_msg_store \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-per_vhost_msg_store \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-per_vhost_msg_store-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-per_vhost_queue_limit:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-per_vhost_queue_limit
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 22.3
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=22.3
- export ELIXIR_VERSION=1.10.4
- make ct-per_vhost_queue_limit \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-per_vhost_queue_limit \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-per_vhost_queue_limit-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-policy:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-policy
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 22.3
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=22.3
- export ELIXIR_VERSION=1.10.4
- make ct-policy \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-policy \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-policy-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-priority_queue:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-priority_queue
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 22.3
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=22.3
- export ELIXIR_VERSION=1.10.4
- make ct-priority_queue \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-priority_queue \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-priority_queue-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-priority_queue_recovery:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-priority_queue_recovery
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 22.3
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=22.3
- export ELIXIR_VERSION=1.10.4
- make ct-priority_queue_recovery \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-priority_queue_recovery \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-priority_queue_recovery-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-product_info:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-product_info
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 22.3
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=22.3
- export ELIXIR_VERSION=1.10.4
- make ct-product_info \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-product_info \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-product_info-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-proxy_protocol:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-proxy_protocol
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 22.3
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=22.3
- export ELIXIR_VERSION=1.10.4
- make ct-proxy_protocol \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-proxy_protocol \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-proxy_protocol-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-publisher_confirms_parallel:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-publisher_confirms_parallel
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 22.3
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=22.3
- export ELIXIR_VERSION=1.10.4
- make ct-publisher_confirms_parallel \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-publisher_confirms_parallel \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-publisher_confirms_parallel-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-queue_length_limits:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-queue_length_limits
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 22.3
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=22.3
- export ELIXIR_VERSION=1.10.4
- make ct-queue_length_limits \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-queue_length_limits \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-queue_length_limits-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-queue_master_location:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-queue_master_location
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 22.3
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=22.3
- export ELIXIR_VERSION=1.10.4
- make ct-queue_master_location \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-queue_master_location \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-queue_master_location-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-queue_parallel:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-queue_parallel
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 22.3
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=22.3
- export ELIXIR_VERSION=1.10.4
- make ct-queue_parallel \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-queue_parallel \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-queue_parallel-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-queue_type:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-queue_type
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 22.3
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=22.3
- export ELIXIR_VERSION=1.10.4
- make ct-queue_type \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-queue_type \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-queue_type-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-quorum_queue:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-quorum_queue
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 22.3
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=22.3
- export ELIXIR_VERSION=1.10.4
- make ct-quorum_queue \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-quorum_queue \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-quorum_queue-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-rabbit_confirms:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-rabbit_confirms
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 22.3
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=22.3
- export ELIXIR_VERSION=1.10.4
- make ct-rabbit_confirms \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-rabbit_confirms \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-rabbit_confirms-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-rabbit_core_metrics_gc:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-rabbit_core_metrics_gc
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 22.3
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=22.3
- export ELIXIR_VERSION=1.10.4
- make ct-rabbit_core_metrics_gc \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-rabbit_core_metrics_gc \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-rabbit_core_metrics_gc-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-rabbit_fifo:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-rabbit_fifo
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 22.3
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=22.3
- export ELIXIR_VERSION=1.10.4
- make ct-rabbit_fifo \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-rabbit_fifo \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-rabbit_fifo-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-rabbit_fifo_int:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-rabbit_fifo_int
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 22.3
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=22.3
- export ELIXIR_VERSION=1.10.4
- make ct-rabbit_fifo_int \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-rabbit_fifo_int \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-rabbit_fifo_int-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-rabbit_fifo_prop:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-rabbit_fifo_prop
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 22.3
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=22.3
- export ELIXIR_VERSION=1.10.4
- make ct-rabbit_fifo_prop \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-rabbit_fifo_prop \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-rabbit_fifo_prop-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-rabbit_fifo_v0:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-rabbit_fifo_v0
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 22.3
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=22.3
- export ELIXIR_VERSION=1.10.4
- make ct-rabbit_fifo_v0 \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-rabbit_fifo_v0 \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-rabbit_fifo_v0-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-rabbit_msg_record:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-rabbit_msg_record
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 22.3
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=22.3
- export ELIXIR_VERSION=1.10.4
- make ct-rabbit_msg_record \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-rabbit_msg_record \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-rabbit_msg_record-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-rabbit_stream_queue:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-rabbit_stream_queue
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 22.3
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=22.3
- export ELIXIR_VERSION=1.10.4
- make ct-rabbit_stream_queue \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-rabbit_stream_queue \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-rabbit_stream_queue-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-rabbitmq_queues_cli_integration:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-rabbitmq_queues_cli_integration
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 22.3
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=22.3
- export ELIXIR_VERSION=1.10.4
- make ct-rabbitmq_queues_cli_integration \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-rabbitmq_queues_cli_integration \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-rabbitmq_queues_cli_integration-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-rabbitmqctl_integration:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-rabbitmqctl_integration
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 22.3
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=22.3
- export ELIXIR_VERSION=1.10.4
- make ct-rabbitmqctl_integration \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-rabbitmqctl_integration \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-rabbitmqctl_integration-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-rabbitmqctl_shutdown:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-rabbitmqctl_shutdown
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 22.3
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=22.3
- export ELIXIR_VERSION=1.10.4
- make ct-rabbitmqctl_shutdown \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-rabbitmqctl_shutdown \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-rabbitmqctl_shutdown-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-signal_handling:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-signal_handling
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 22.3
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=22.3
- export ELIXIR_VERSION=1.10.4
- make ct-signal_handling \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-signal_handling \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-signal_handling-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-simple_ha:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-simple_ha
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 22.3
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=22.3
- export ELIXIR_VERSION=1.10.4
- make ct-simple_ha \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-simple_ha \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-simple_ha-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-single_active_consumer:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-single_active_consumer
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 22.3
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=22.3
- export ELIXIR_VERSION=1.10.4
- make ct-single_active_consumer \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-single_active_consumer \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-single_active_consumer-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-sync_detection:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-sync_detection
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 22.3
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=22.3
- export ELIXIR_VERSION=1.10.4
- make ct-sync_detection \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-sync_detection \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-sync_detection-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-term_to_binary_compat_prop:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-term_to_binary_compat_prop
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 22.3
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=22.3
- export ELIXIR_VERSION=1.10.4
- make ct-term_to_binary_compat_prop \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-term_to_binary_compat_prop \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-term_to_binary_compat_prop-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-topic_permission:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-topic_permission
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 22.3
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=22.3
- export ELIXIR_VERSION=1.10.4
- make ct-topic_permission \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-topic_permission \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-topic_permission-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-unit_access_control:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-unit_access_control
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 22.3
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=22.3
- export ELIXIR_VERSION=1.10.4
- make ct-unit_access_control \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-unit_access_control \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-unit_access_control-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-unit_access_control_authn_authz_context_propagation:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-unit_access_control_authn_authz_context_propagation
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 22.3
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=22.3
- export ELIXIR_VERSION=1.10.4
- make ct-unit_access_control_authn_authz_context_propagation \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-unit_access_control_authn_authz_context_propagation \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-unit_access_control_authn_authz_context_propagation-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-unit_access_control_credential_validation:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-unit_access_control_credential_validation
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 22.3
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=22.3
- export ELIXIR_VERSION=1.10.4
- make ct-unit_access_control_credential_validation \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-unit_access_control_credential_validation \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-unit_access_control_credential_validation-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-unit_amqp091_content_framing:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-unit_amqp091_content_framing
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 22.3
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=22.3
- export ELIXIR_VERSION=1.10.4
- make ct-unit_amqp091_content_framing \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-unit_amqp091_content_framing \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-unit_amqp091_content_framing-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-unit_amqp091_server_properties:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-unit_amqp091_server_properties
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 22.3
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=22.3
- export ELIXIR_VERSION=1.10.4
- make ct-unit_amqp091_server_properties \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-unit_amqp091_server_properties \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-unit_amqp091_server_properties-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-unit_app_management:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-unit_app_management
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 22.3
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=22.3
- export ELIXIR_VERSION=1.10.4
- make ct-unit_app_management \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-unit_app_management \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-unit_app_management-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-unit_cluster_formation_locking_mocks:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-unit_cluster_formation_locking_mocks
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 22.3
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=22.3
- export ELIXIR_VERSION=1.10.4
- make ct-unit_cluster_formation_locking_mocks \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-unit_cluster_formation_locking_mocks \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-unit_cluster_formation_locking_mocks-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-unit_collections:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-unit_collections
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 22.3
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=22.3
- export ELIXIR_VERSION=1.10.4
- make ct-unit_collections \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-unit_collections \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-unit_collections-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-unit_config_value_encryption:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-unit_config_value_encryption
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 22.3
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=22.3
- export ELIXIR_VERSION=1.10.4
- make ct-unit_config_value_encryption \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-unit_config_value_encryption \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-unit_config_value_encryption-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-unit_connection_tracking:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-unit_connection_tracking
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 22.3
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=22.3
- export ELIXIR_VERSION=1.10.4
- make ct-unit_connection_tracking \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-unit_connection_tracking \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-unit_connection_tracking-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-unit_credit_flow:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-unit_credit_flow
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 22.3
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=22.3
- export ELIXIR_VERSION=1.10.4
- make ct-unit_credit_flow \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-unit_credit_flow \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-unit_credit_flow-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-unit_disk_monitor:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-unit_disk_monitor
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 22.3
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=22.3
- export ELIXIR_VERSION=1.10.4
- make ct-unit_disk_monitor \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-unit_disk_monitor \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-unit_disk_monitor-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-unit_disk_monitor_mocks:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-unit_disk_monitor_mocks
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 22.3
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=22.3
- export ELIXIR_VERSION=1.10.4
- make ct-unit_disk_monitor_mocks \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-unit_disk_monitor_mocks \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-unit_disk_monitor_mocks-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-unit_file_handle_cache:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-unit_file_handle_cache
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 22.3
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=22.3
- export ELIXIR_VERSION=1.10.4
- make ct-unit_file_handle_cache \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-unit_file_handle_cache \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-unit_file_handle_cache-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-unit_gen_server2:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-unit_gen_server2
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 22.3
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=22.3
- export ELIXIR_VERSION=1.10.4
- make ct-unit_gen_server2 \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-unit_gen_server2 \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-unit_gen_server2-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-unit_gm:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-unit_gm
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 22.3
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=22.3
- export ELIXIR_VERSION=1.10.4
- make ct-unit_gm \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-unit_gm \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-unit_gm-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-unit_log_config:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-unit_log_config
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 22.3
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=22.3
- export ELIXIR_VERSION=1.10.4
- make ct-unit_log_config \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-unit_log_config \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-unit_log_config-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-unit_log_management:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-unit_log_management
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 22.3
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=22.3
- export ELIXIR_VERSION=1.10.4
- make ct-unit_log_management \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-unit_log_management \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-unit_log_management-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-unit_operator_policy:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-unit_operator_policy
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 22.3
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=22.3
- export ELIXIR_VERSION=1.10.4
- make ct-unit_operator_policy \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-unit_operator_policy \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-unit_operator_policy-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-unit_pg_local:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-unit_pg_local
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 22.3
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=22.3
- export ELIXIR_VERSION=1.10.4
- make ct-unit_pg_local \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-unit_pg_local \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-unit_pg_local-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-unit_plugin_directories:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-unit_plugin_directories
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 22.3
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=22.3
- export ELIXIR_VERSION=1.10.4
- make ct-unit_plugin_directories \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-unit_plugin_directories \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-unit_plugin_directories-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-unit_plugin_versioning:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-unit_plugin_versioning
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 22.3
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=22.3
- export ELIXIR_VERSION=1.10.4
- make ct-unit_plugin_versioning \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-unit_plugin_versioning \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-unit_plugin_versioning-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-unit_policy_validators:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-unit_policy_validators
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 22.3
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=22.3
- export ELIXIR_VERSION=1.10.4
- make ct-unit_policy_validators \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-unit_policy_validators \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-unit_policy_validators-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-unit_priority_queue:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-unit_priority_queue
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 22.3
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=22.3
- export ELIXIR_VERSION=1.10.4
- make ct-unit_priority_queue \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-unit_priority_queue \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-unit_priority_queue-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-unit_queue_consumers:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-unit_queue_consumers
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 22.3
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=22.3
- export ELIXIR_VERSION=1.10.4
- make ct-unit_queue_consumers \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-unit_queue_consumers \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-unit_queue_consumers-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-unit_stats_and_metrics:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-unit_stats_and_metrics
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 22.3
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=22.3
- export ELIXIR_VERSION=1.10.4
- make ct-unit_stats_and_metrics \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-unit_stats_and_metrics \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-unit_stats_and_metrics-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-unit_supervisor2:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-unit_supervisor2
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 22.3
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=22.3
- export ELIXIR_VERSION=1.10.4
- make ct-unit_supervisor2 \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-unit_supervisor2 \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-unit_supervisor2-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-unit_vm_memory_monitor:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-unit_vm_memory_monitor
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 22.3
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=22.3
- export ELIXIR_VERSION=1.10.4
- make ct-unit_vm_memory_monitor \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-unit_vm_memory_monitor \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-unit_vm_memory_monitor-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-upgrade_preparation:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-upgrade_preparation
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 22.3
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=22.3
- export ELIXIR_VERSION=1.10.4
- make ct-upgrade_preparation \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-upgrade_preparation \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-upgrade_preparation-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-vhost:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-vhost
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 22.3
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=22.3
- export ELIXIR_VERSION=1.10.4
- make ct-vhost \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-vhost \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-vhost-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- capture-tested-deps-versions:
- needs:
- - dialyzer
- - eunit
- - ct-amqqueue_backward_compatibility
- - ct-backing_queue
- - ct-channel_interceptor
- - ct-channel_operation_timeout
- - ct-cluster
- - ct-cluster_rename
- - ct-clustering_management
- - ct-config_schema
- - ct-confirms_rejects
- - ct-consumer_timeout
- - ct-crashing_queues
- - ct-dead_lettering
- - ct-definition_import
- - ct-disconnect_detected_during_alarm
- - ct-dynamic_ha
- - ct-dynamic_qq
- - ct-eager_sync
- - ct-feature_flags
- - ct-lazy_queue
- - ct-list_consumers_sanity_check
- - ct-list_queues_online_and_offline
- - ct-maintenance_mode
- - ct-many_node_ha
- - ct-message_size_limit
- - ct-metrics
- - ct-mirrored_supervisor
- - ct-msg_store
- - ct-peer_discovery_classic_config
- - ct-peer_discovery_dns
- - ct-per_user_connection_channel_limit
- - ct-per_user_connection_channel_limit_partitions
- - ct-per_user_connection_channel_tracking
- - ct-per_user_connection_tracking
- - ct-per_vhost_connection_limit
- - ct-per_vhost_connection_limit_partitions
- - ct-per_vhost_msg_store
- - ct-per_vhost_queue_limit
- - ct-policy
- - ct-priority_queue
- - ct-priority_queue_recovery
- - ct-product_info
- - ct-proxy_protocol
- - ct-publisher_confirms_parallel
- - ct-queue_length_limits
- - ct-queue_master_location
- - ct-queue_parallel
- - ct-queue_type
- - ct-quorum_queue
- - ct-rabbit_confirms
- - ct-rabbit_core_metrics_gc
- - ct-rabbit_fifo
- - ct-rabbit_fifo_int
- - ct-rabbit_fifo_prop
- - ct-rabbit_fifo_v0
- - ct-rabbit_msg_record
- - ct-rabbit_stream_queue
- - ct-rabbitmq_queues_cli_integration
- - ct-rabbitmqctl_integration
- - ct-rabbitmqctl_shutdown
- - ct-signal_handling
- - ct-simple_ha
- - ct-single_active_consumer
- - ct-sync_detection
- - ct-term_to_binary_compat_prop
- - ct-topic_permission
- - ct-unit_access_control
- - ct-unit_access_control_authn_authz_context_propagation
- - ct-unit_access_control_credential_validation
- - ct-unit_amqp091_content_framing
- - ct-unit_amqp091_server_properties
- - ct-unit_app_management
- - ct-unit_cluster_formation_locking_mocks
- - ct-unit_collections
- - ct-unit_config_value_encryption
- - ct-unit_connection_tracking
- - ct-unit_credit_flow
- - ct-unit_disk_monitor
- - ct-unit_disk_monitor_mocks
- - ct-unit_file_handle_cache
- - ct-unit_gen_server2
- - ct-unit_gm
- - ct-unit_log_config
- - ct-unit_log_management
- - ct-unit_operator_policy
- - ct-unit_pg_local
- - ct-unit_plugin_directories
- - ct-unit_plugin_versioning
- - ct-unit_policy_validators
- - ct-unit_priority_queue
- - ct-unit_queue_consumers
- - ct-unit_stats_and_metrics
- - ct-unit_supervisor2
- - ct-unit_vm_memory_monitor
- - ct-upgrade_preparation
- - ct-vhost
- runs-on: ubuntu-18.04
- steps:
- - if: github.ref == 'refs/heads/master'
- uses: actions/download-artifact@v2
- with:
- name: rabbit-rabbitmq-deps.mk
- - name: FORMAT GIT REF
- if: github.ref == 'refs/heads/master'
- # https://github.community/t5/GitHub-Actions/How-can-I-set-an-expression-as-an-environment-variable-at/m-p/41804/highlight/true#M4751
- id: ref
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- echo "::set-output name=branch_or_tag_name::$branch_or_tag_name"
- - name: UPLOAD TO S3
- if: github.ref == 'refs/heads/master'
- # https://github.com/marketplace/actions/s3-file-upload
- uses: zdurham/s3-upload-github-action@master
- env:
- AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
- AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
- AWS_REGION: ${{ secrets.AWS_REGION }}
- FILE: rabbit-rabbitmq-deps.mk
- S3_BUCKET: ${{ secrets.AWS_S3_BUCKET }}
- S3_KEY: rabbitmq-server/${{ steps.ref.outputs.branch_or_tag_name }}/${{ github.run_id }}/otp-22.3/rabbit-rabbitmq-deps.mk
diff --git a/deps/rabbit/.github/workflows/test-erlang-otp-23.1.yaml b/deps/rabbit/.github/workflows/test-erlang-otp-23.1.yaml
deleted file mode 100644
index 5bebcf13a3..0000000000
--- a/deps/rabbit/.github/workflows/test-erlang-otp-23.1.yaml
+++ /dev/null
@@ -1,9328 +0,0 @@
-# vim:sw=2:et:
-# https://help.github.com/en/actions/configuring-and-managing-workflows/configuring-a-workflow
-name: "Test - Erlang 23.1"
-on:
- push:
- repository_dispatch:
- types:
- - new-commit-to-dep-release-branch
-jobs:
- # vim:sw=2:et:
- checks:
- name: checks
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 23.1
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: CHECK RABBITMQ COMPONENTS
- # https://github.community/t5/GitHub-Actions/How-can-I-set-an-expression-as-an-environment-variable-at/m-p/41804/highlight/true#M4751
- id: ref
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- echo "::set-output name=branch_or_tag_name::$branch_or_tag_name"
- make check-rabbitmq-components.mk base_rmq_ref=master current_rmq_ref=$branch_or_tag_name
- - name: RESOLVE & COMPILE DEPS
- run: |
- make deps test-deps base_rmq_ref=master current_rmq_ref=${{ steps.ref.outputs.branch_or_tag_name }}
- echo "Capture versions of the RabbitMQ components used in this workflow..."
- make rabbit-rabbitmq-deps.mk
- echo "Remove directories not used in the subsequent jobs..."
- rm -fr deps/*/{.git,test}
- - name: UPLOAD DEPS VERSIONS
- uses: actions/upload-artifact@v2
- with:
- name: rabbit-rabbitmq-deps.mk
- path: rabbit-rabbitmq-deps.mk
- - name: CREATE DEPS ARCHIVE
- run: |
- tar cf - deps | xz > deps.tar.xz
- - name: UPLOAD DEPS ARCHIVE
- uses: actions/upload-artifact@v2
- with:
- name: deps.tar.xz
- path: deps.tar.xz
- - name: CHECK CROSS REFERENCES
- run: |
- make xref base_rmq_ref=master current_rmq_ref=${{ steps.ref.outputs.branch_or_tag_name }}
- - name: COMPILE FOR TEST
- run: |
- make test-build base_rmq_ref=master current_rmq_ref=${{ steps.ref.outputs.branch_or_tag_name }}
- - name: CACHE SECONDARY UMBRELLAS
- if: success() && 'latest' == 'oldest'
- uses: actions/cache@v1
- with:
- path: umbrellas
- key: secondary-umbrellas-v3.7.28-v3.8.9-erlang-23.1-rev4
- - name: PREPARE SECONDARY UMBRELLA COPIES
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- for version in v3.7.28 v3.8.9; do
- umbrella="umbrellas/$version"
- if ! test -d "$umbrella" ||
- ! make -C "$umbrella/deps/rabbit" test-dist; then
- rm -rf "$umbrella"
-
- # Fetch the master Umbrella; the final umbrellas are created from
- # the master copy.
- if ! test -d umbrellas/master; then
- git config --global advice.detachedHead false
- git clone \
- https://github.com/rabbitmq/rabbitmq-public-umbrella.git \
- umbrellas/master
- make -C umbrellas/master co # To get RabbitMQ components.
- fi
-
- # We copy the master Umbrella and checkout the appropriate tag.
- cp -a umbrellas/master "$umbrella"
- git -C "$umbrella" checkout "master"
- make -C "$umbrella" up BRANCH="$version"
- # To remove third-party deps which were checked out when the
- # projects were on the `master` branch. Thus, possibly not the
- # version pinning we expect. We update the Umbrella one last time
- # to fetch the correct third-party deps.
- make -C "$umbrella" clean-3rd-party-repos
- make -C "$umbrella" up
- make -C "$umbrella/deps/rabbit" test-dist
- rm -rf "$umbrella"/deps/rabbitmq_website
- rm -rf "$umbrella"/deps/rabbitmq_prometheus/docker
- rm -rf "$umbrella"/deps/*/{.git,test} "$umbrella"/.git
- fi
- done
- rm -fr umbrellas/master
- - name: CREATE SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- tar cf - umbrellas | xz > secondary-umbrellas.tar.xz
- - name: UPLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- uses: actions/upload-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- path: secondary-umbrellas.tar.xz
- # vim:sw=2:et:
- dialyzer:
- name: dialyzer
- needs: [checks]
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- if: success() && 'latest' == 'latest'
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- if: success() && 'latest' == 'latest'
- uses: actions/setup-elixir@v1
- with:
- otp-version: 23.1
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- if: success() && 'latest' == 'latest'
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- if: success() && 'latest' == 'latest'
- run: |
- tar Jxf deps.tar.xz
- rm deps.tar.xz
- - name: RUN DIALYZER
- if: success() && 'latest' == 'latest'
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- make dialyze \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL=
- # vim:sw=2:et:
- eunit:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: eunit
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 23.1
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- rm deps.tar.xz
- - name: RUN TESTS
- run: |
- ! test -d ebin || touch ebin/*
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- make eunit \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1
- # vim:sw=2:et:
- ct-amqqueue_backward_compatibility:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-amqqueue_backward_compatibility
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 23.1
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=23.1
- export ELIXIR_VERSION=1.10.4
- make ct-amqqueue_backward_compatibility \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-amqqueue_backward_compatibility \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-amqqueue_backward_compatibility-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-backing_queue:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-backing_queue
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 23.1
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=23.1
- export ELIXIR_VERSION=1.10.4
- make ct-backing_queue \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-backing_queue \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-backing_queue-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-channel_interceptor:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-channel_interceptor
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 23.1
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=23.1
- export ELIXIR_VERSION=1.10.4
- make ct-channel_interceptor \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-channel_interceptor \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-channel_interceptor-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-channel_operation_timeout:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-channel_operation_timeout
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 23.1
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=23.1
- export ELIXIR_VERSION=1.10.4
- make ct-channel_operation_timeout \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-channel_operation_timeout \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-channel_operation_timeout-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-cluster:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-cluster
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 23.1
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=23.1
- export ELIXIR_VERSION=1.10.4
- make ct-cluster \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-cluster \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-cluster-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-cluster_rename:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-cluster_rename
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 23.1
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=23.1
- export ELIXIR_VERSION=1.10.4
- make ct-cluster_rename \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-cluster_rename \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-cluster_rename-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-clustering_management:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-clustering_management
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 23.1
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=23.1
- export ELIXIR_VERSION=1.10.4
- make ct-clustering_management \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-clustering_management \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-clustering_management-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-config_schema:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-config_schema
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 23.1
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=23.1
- export ELIXIR_VERSION=1.10.4
- make ct-config_schema \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-config_schema \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-config_schema-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-confirms_rejects:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-confirms_rejects
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 23.1
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=23.1
- export ELIXIR_VERSION=1.10.4
- make ct-confirms_rejects \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-confirms_rejects \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-confirms_rejects-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-consumer_timeout:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-consumer_timeout
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 23.1
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=23.1
- export ELIXIR_VERSION=1.10.4
- make ct-consumer_timeout \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-consumer_timeout \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-consumer_timeout-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-crashing_queues:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-crashing_queues
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 23.1
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=23.1
- export ELIXIR_VERSION=1.10.4
- make ct-crashing_queues \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-crashing_queues \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-crashing_queues-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-dead_lettering:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-dead_lettering
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 23.1
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=23.1
- export ELIXIR_VERSION=1.10.4
- make ct-dead_lettering \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-dead_lettering \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-dead_lettering-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-definition_import:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-definition_import
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 23.1
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=23.1
- export ELIXIR_VERSION=1.10.4
- make ct-definition_import \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-definition_import \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-definition_import-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-disconnect_detected_during_alarm:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-disconnect_detected_during_alarm
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 23.1
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=23.1
- export ELIXIR_VERSION=1.10.4
- make ct-disconnect_detected_during_alarm \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-disconnect_detected_during_alarm \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-disconnect_detected_during_alarm-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-dynamic_ha:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-dynamic_ha
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 23.1
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=23.1
- export ELIXIR_VERSION=1.10.4
- make ct-dynamic_ha \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-dynamic_ha \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-dynamic_ha-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-dynamic_qq:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-dynamic_qq
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 23.1
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=23.1
- export ELIXIR_VERSION=1.10.4
- make ct-dynamic_qq \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-dynamic_qq \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-dynamic_qq-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-eager_sync:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-eager_sync
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 23.1
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=23.1
- export ELIXIR_VERSION=1.10.4
- make ct-eager_sync \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-eager_sync \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-eager_sync-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-feature_flags:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-feature_flags
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 23.1
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=23.1
- export ELIXIR_VERSION=1.10.4
- make ct-feature_flags \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-feature_flags \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-feature_flags-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-lazy_queue:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-lazy_queue
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 23.1
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=23.1
- export ELIXIR_VERSION=1.10.4
- make ct-lazy_queue \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-lazy_queue \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-lazy_queue-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-list_consumers_sanity_check:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-list_consumers_sanity_check
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 23.1
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=23.1
- export ELIXIR_VERSION=1.10.4
- make ct-list_consumers_sanity_check \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-list_consumers_sanity_check \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-list_consumers_sanity_check-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-list_queues_online_and_offline:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-list_queues_online_and_offline
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 23.1
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=23.1
- export ELIXIR_VERSION=1.10.4
- make ct-list_queues_online_and_offline \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-list_queues_online_and_offline \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-list_queues_online_and_offline-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-maintenance_mode:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-maintenance_mode
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 23.1
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=23.1
- export ELIXIR_VERSION=1.10.4
- make ct-maintenance_mode \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-maintenance_mode \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-maintenance_mode-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-many_node_ha:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-many_node_ha
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 23.1
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=23.1
- export ELIXIR_VERSION=1.10.4
- make ct-many_node_ha \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-many_node_ha \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-many_node_ha-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-message_size_limit:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-message_size_limit
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 23.1
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=23.1
- export ELIXIR_VERSION=1.10.4
- make ct-message_size_limit \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-message_size_limit \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-message_size_limit-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-metrics:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-metrics
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 23.1
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=23.1
- export ELIXIR_VERSION=1.10.4
- make ct-metrics \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-metrics \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-metrics-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-mirrored_supervisor:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-mirrored_supervisor
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 23.1
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=23.1
- export ELIXIR_VERSION=1.10.4
- make ct-mirrored_supervisor \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-mirrored_supervisor \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-mirrored_supervisor-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-msg_store:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-msg_store
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 23.1
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=23.1
- export ELIXIR_VERSION=1.10.4
- make ct-msg_store \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-msg_store \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-msg_store-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-peer_discovery_classic_config:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-peer_discovery_classic_config
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 23.1
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=23.1
- export ELIXIR_VERSION=1.10.4
- make ct-peer_discovery_classic_config \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-peer_discovery_classic_config \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-peer_discovery_classic_config-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-peer_discovery_dns:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-peer_discovery_dns
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 23.1
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=23.1
- export ELIXIR_VERSION=1.10.4
- make ct-peer_discovery_dns \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-peer_discovery_dns \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-peer_discovery_dns-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-per_user_connection_channel_limit:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-per_user_connection_channel_limit
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 23.1
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=23.1
- export ELIXIR_VERSION=1.10.4
- make ct-per_user_connection_channel_limit \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-per_user_connection_channel_limit \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-per_user_connection_channel_limit-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-per_user_connection_channel_limit_partitions:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-per_user_connection_channel_limit_partitions
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 23.1
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=23.1
- export ELIXIR_VERSION=1.10.4
- make ct-per_user_connection_channel_limit_partitions \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-per_user_connection_channel_limit_partitions \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-per_user_connection_channel_limit_partitions-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-per_user_connection_channel_tracking:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-per_user_connection_channel_tracking
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 23.1
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=23.1
- export ELIXIR_VERSION=1.10.4
- make ct-per_user_connection_channel_tracking \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-per_user_connection_channel_tracking \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-per_user_connection_channel_tracking-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-per_user_connection_tracking:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-per_user_connection_tracking
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 23.1
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=23.1
- export ELIXIR_VERSION=1.10.4
- make ct-per_user_connection_tracking \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-per_user_connection_tracking \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-per_user_connection_tracking-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-per_vhost_connection_limit:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-per_vhost_connection_limit
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 23.1
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=23.1
- export ELIXIR_VERSION=1.10.4
- make ct-per_vhost_connection_limit \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-per_vhost_connection_limit \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-per_vhost_connection_limit-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-per_vhost_connection_limit_partitions:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-per_vhost_connection_limit_partitions
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 23.1
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=23.1
- export ELIXIR_VERSION=1.10.4
- make ct-per_vhost_connection_limit_partitions \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-per_vhost_connection_limit_partitions \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-per_vhost_connection_limit_partitions-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-per_vhost_msg_store:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-per_vhost_msg_store
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 23.1
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=23.1
- export ELIXIR_VERSION=1.10.4
- make ct-per_vhost_msg_store \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-per_vhost_msg_store \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-per_vhost_msg_store-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-per_vhost_queue_limit:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-per_vhost_queue_limit
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 23.1
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=23.1
- export ELIXIR_VERSION=1.10.4
- make ct-per_vhost_queue_limit \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-per_vhost_queue_limit \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-per_vhost_queue_limit-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-policy:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-policy
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 23.1
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=23.1
- export ELIXIR_VERSION=1.10.4
- make ct-policy \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-policy \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-policy-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-priority_queue:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-priority_queue
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 23.1
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=23.1
- export ELIXIR_VERSION=1.10.4
- make ct-priority_queue \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-priority_queue \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-priority_queue-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-priority_queue_recovery:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-priority_queue_recovery
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 23.1
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=23.1
- export ELIXIR_VERSION=1.10.4
- make ct-priority_queue_recovery \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-priority_queue_recovery \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-priority_queue_recovery-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-product_info:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-product_info
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 23.1
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=23.1
- export ELIXIR_VERSION=1.10.4
- make ct-product_info \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-product_info \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-product_info-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-proxy_protocol:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-proxy_protocol
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 23.1
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=23.1
- export ELIXIR_VERSION=1.10.4
- make ct-proxy_protocol \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-proxy_protocol \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-proxy_protocol-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-publisher_confirms_parallel:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-publisher_confirms_parallel
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 23.1
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=23.1
- export ELIXIR_VERSION=1.10.4
- make ct-publisher_confirms_parallel \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-publisher_confirms_parallel \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-publisher_confirms_parallel-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-queue_length_limits:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-queue_length_limits
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 23.1
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=23.1
- export ELIXIR_VERSION=1.10.4
- make ct-queue_length_limits \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-queue_length_limits \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-queue_length_limits-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-queue_master_location:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-queue_master_location
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 23.1
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=23.1
- export ELIXIR_VERSION=1.10.4
- make ct-queue_master_location \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-queue_master_location \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-queue_master_location-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-queue_parallel:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-queue_parallel
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 23.1
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=23.1
- export ELIXIR_VERSION=1.10.4
- make ct-queue_parallel \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-queue_parallel \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-queue_parallel-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-queue_type:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-queue_type
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 23.1
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=23.1
- export ELIXIR_VERSION=1.10.4
- make ct-queue_type \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-queue_type \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-queue_type-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-quorum_queue:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-quorum_queue
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 23.1
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=23.1
- export ELIXIR_VERSION=1.10.4
- make ct-quorum_queue \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-quorum_queue \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-quorum_queue-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-rabbit_confirms:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-rabbit_confirms
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 23.1
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=23.1
- export ELIXIR_VERSION=1.10.4
- make ct-rabbit_confirms \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-rabbit_confirms \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-rabbit_confirms-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-rabbit_core_metrics_gc:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-rabbit_core_metrics_gc
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 23.1
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=23.1
- export ELIXIR_VERSION=1.10.4
- make ct-rabbit_core_metrics_gc \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-rabbit_core_metrics_gc \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-rabbit_core_metrics_gc-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-rabbit_fifo:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-rabbit_fifo
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 23.1
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=23.1
- export ELIXIR_VERSION=1.10.4
- make ct-rabbit_fifo \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-rabbit_fifo \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-rabbit_fifo-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-rabbit_fifo_int:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-rabbit_fifo_int
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 23.1
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=23.1
- export ELIXIR_VERSION=1.10.4
- make ct-rabbit_fifo_int \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-rabbit_fifo_int \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-rabbit_fifo_int-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-rabbit_fifo_prop:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-rabbit_fifo_prop
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 23.1
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=23.1
- export ELIXIR_VERSION=1.10.4
- make ct-rabbit_fifo_prop \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-rabbit_fifo_prop \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-rabbit_fifo_prop-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-rabbit_fifo_v0:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-rabbit_fifo_v0
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 23.1
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=23.1
- export ELIXIR_VERSION=1.10.4
- make ct-rabbit_fifo_v0 \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-rabbit_fifo_v0 \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-rabbit_fifo_v0-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-rabbit_msg_record:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-rabbit_msg_record
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 23.1
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=23.1
- export ELIXIR_VERSION=1.10.4
- make ct-rabbit_msg_record \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-rabbit_msg_record \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-rabbit_msg_record-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-rabbit_stream_queue:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-rabbit_stream_queue
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 23.1
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=23.1
- export ELIXIR_VERSION=1.10.4
- make ct-rabbit_stream_queue \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-rabbit_stream_queue \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-rabbit_stream_queue-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-rabbitmq_queues_cli_integration:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-rabbitmq_queues_cli_integration
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 23.1
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=23.1
- export ELIXIR_VERSION=1.10.4
- make ct-rabbitmq_queues_cli_integration \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-rabbitmq_queues_cli_integration \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-rabbitmq_queues_cli_integration-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-rabbitmqctl_integration:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-rabbitmqctl_integration
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 23.1
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=23.1
- export ELIXIR_VERSION=1.10.4
- make ct-rabbitmqctl_integration \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-rabbitmqctl_integration \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-rabbitmqctl_integration-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-rabbitmqctl_shutdown:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-rabbitmqctl_shutdown
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 23.1
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=23.1
- export ELIXIR_VERSION=1.10.4
- make ct-rabbitmqctl_shutdown \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-rabbitmqctl_shutdown \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-rabbitmqctl_shutdown-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-signal_handling:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-signal_handling
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 23.1
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=23.1
- export ELIXIR_VERSION=1.10.4
- make ct-signal_handling \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-signal_handling \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-signal_handling-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-simple_ha:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-simple_ha
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 23.1
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=23.1
- export ELIXIR_VERSION=1.10.4
- make ct-simple_ha \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-simple_ha \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-simple_ha-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-single_active_consumer:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-single_active_consumer
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 23.1
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=23.1
- export ELIXIR_VERSION=1.10.4
- make ct-single_active_consumer \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-single_active_consumer \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-single_active_consumer-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-sync_detection:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-sync_detection
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 23.1
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=23.1
- export ELIXIR_VERSION=1.10.4
- make ct-sync_detection \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-sync_detection \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-sync_detection-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-term_to_binary_compat_prop:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-term_to_binary_compat_prop
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 23.1
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=23.1
- export ELIXIR_VERSION=1.10.4
- make ct-term_to_binary_compat_prop \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-term_to_binary_compat_prop \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-term_to_binary_compat_prop-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-topic_permission:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-topic_permission
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 23.1
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=23.1
- export ELIXIR_VERSION=1.10.4
- make ct-topic_permission \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-topic_permission \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-topic_permission-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-unit_access_control:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-unit_access_control
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 23.1
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=23.1
- export ELIXIR_VERSION=1.10.4
- make ct-unit_access_control \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-unit_access_control \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-unit_access_control-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-unit_access_control_authn_authz_context_propagation:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-unit_access_control_authn_authz_context_propagation
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 23.1
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=23.1
- export ELIXIR_VERSION=1.10.4
- make ct-unit_access_control_authn_authz_context_propagation \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-unit_access_control_authn_authz_context_propagation \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-unit_access_control_authn_authz_context_propagation-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-unit_access_control_credential_validation:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-unit_access_control_credential_validation
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 23.1
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=23.1
- export ELIXIR_VERSION=1.10.4
- make ct-unit_access_control_credential_validation \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-unit_access_control_credential_validation \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-unit_access_control_credential_validation-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-unit_amqp091_content_framing:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-unit_amqp091_content_framing
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 23.1
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=23.1
- export ELIXIR_VERSION=1.10.4
- make ct-unit_amqp091_content_framing \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-unit_amqp091_content_framing \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-unit_amqp091_content_framing-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-unit_amqp091_server_properties:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-unit_amqp091_server_properties
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 23.1
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=23.1
- export ELIXIR_VERSION=1.10.4
- make ct-unit_amqp091_server_properties \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-unit_amqp091_server_properties \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-unit_amqp091_server_properties-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-unit_app_management:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-unit_app_management
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 23.1
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=23.1
- export ELIXIR_VERSION=1.10.4
- make ct-unit_app_management \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-unit_app_management \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-unit_app_management-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-unit_cluster_formation_locking_mocks:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-unit_cluster_formation_locking_mocks
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 23.1
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=23.1
- export ELIXIR_VERSION=1.10.4
- make ct-unit_cluster_formation_locking_mocks \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-unit_cluster_formation_locking_mocks \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-unit_cluster_formation_locking_mocks-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-unit_collections:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-unit_collections
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 23.1
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=23.1
- export ELIXIR_VERSION=1.10.4
- make ct-unit_collections \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-unit_collections \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-unit_collections-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-unit_config_value_encryption:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-unit_config_value_encryption
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 23.1
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=23.1
- export ELIXIR_VERSION=1.10.4
- make ct-unit_config_value_encryption \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-unit_config_value_encryption \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-unit_config_value_encryption-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-unit_connection_tracking:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-unit_connection_tracking
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 23.1
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=23.1
- export ELIXIR_VERSION=1.10.4
- make ct-unit_connection_tracking \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-unit_connection_tracking \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-unit_connection_tracking-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-unit_credit_flow:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-unit_credit_flow
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 23.1
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=23.1
- export ELIXIR_VERSION=1.10.4
- make ct-unit_credit_flow \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-unit_credit_flow \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-unit_credit_flow-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-unit_disk_monitor:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-unit_disk_monitor
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 23.1
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=23.1
- export ELIXIR_VERSION=1.10.4
- make ct-unit_disk_monitor \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-unit_disk_monitor \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-unit_disk_monitor-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-unit_disk_monitor_mocks:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-unit_disk_monitor_mocks
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 23.1
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=23.1
- export ELIXIR_VERSION=1.10.4
- make ct-unit_disk_monitor_mocks \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-unit_disk_monitor_mocks \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-unit_disk_monitor_mocks-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-unit_file_handle_cache:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-unit_file_handle_cache
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 23.1
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=23.1
- export ELIXIR_VERSION=1.10.4
- make ct-unit_file_handle_cache \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-unit_file_handle_cache \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-unit_file_handle_cache-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-unit_gen_server2:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-unit_gen_server2
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 23.1
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=23.1
- export ELIXIR_VERSION=1.10.4
- make ct-unit_gen_server2 \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-unit_gen_server2 \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-unit_gen_server2-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-unit_gm:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-unit_gm
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 23.1
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=23.1
- export ELIXIR_VERSION=1.10.4
- make ct-unit_gm \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-unit_gm \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-unit_gm-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-unit_log_config:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-unit_log_config
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 23.1
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=23.1
- export ELIXIR_VERSION=1.10.4
- make ct-unit_log_config \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-unit_log_config \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-unit_log_config-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-unit_log_management:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-unit_log_management
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 23.1
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=23.1
- export ELIXIR_VERSION=1.10.4
- make ct-unit_log_management \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-unit_log_management \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-unit_log_management-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-unit_operator_policy:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-unit_operator_policy
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 23.1
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=23.1
- export ELIXIR_VERSION=1.10.4
- make ct-unit_operator_policy \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-unit_operator_policy \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-unit_operator_policy-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-unit_pg_local:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-unit_pg_local
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 23.1
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=23.1
- export ELIXIR_VERSION=1.10.4
- make ct-unit_pg_local \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-unit_pg_local \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-unit_pg_local-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-unit_plugin_directories:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-unit_plugin_directories
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 23.1
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=23.1
- export ELIXIR_VERSION=1.10.4
- make ct-unit_plugin_directories \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-unit_plugin_directories \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-unit_plugin_directories-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-unit_plugin_versioning:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-unit_plugin_versioning
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 23.1
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=23.1
- export ELIXIR_VERSION=1.10.4
- make ct-unit_plugin_versioning \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-unit_plugin_versioning \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-unit_plugin_versioning-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-unit_policy_validators:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-unit_policy_validators
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 23.1
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=23.1
- export ELIXIR_VERSION=1.10.4
- make ct-unit_policy_validators \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-unit_policy_validators \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-unit_policy_validators-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-unit_priority_queue:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-unit_priority_queue
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 23.1
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=23.1
- export ELIXIR_VERSION=1.10.4
- make ct-unit_priority_queue \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-unit_priority_queue \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-unit_priority_queue-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-unit_queue_consumers:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-unit_queue_consumers
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 23.1
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=23.1
- export ELIXIR_VERSION=1.10.4
- make ct-unit_queue_consumers \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-unit_queue_consumers \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-unit_queue_consumers-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-unit_stats_and_metrics:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-unit_stats_and_metrics
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 23.1
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=23.1
- export ELIXIR_VERSION=1.10.4
- make ct-unit_stats_and_metrics \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-unit_stats_and_metrics \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-unit_stats_and_metrics-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-unit_supervisor2:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-unit_supervisor2
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 23.1
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=23.1
- export ELIXIR_VERSION=1.10.4
- make ct-unit_supervisor2 \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-unit_supervisor2 \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-unit_supervisor2-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-unit_vm_memory_monitor:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-unit_vm_memory_monitor
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 23.1
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=23.1
- export ELIXIR_VERSION=1.10.4
- make ct-unit_vm_memory_monitor \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-unit_vm_memory_monitor \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-unit_vm_memory_monitor-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-upgrade_preparation:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-upgrade_preparation
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 23.1
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=23.1
- export ELIXIR_VERSION=1.10.4
- make ct-upgrade_preparation \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-upgrade_preparation \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-upgrade_preparation-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- ct-vhost:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-vhost
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 23.1
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=master
- export ERLANG_VERSION=23.1
- export ELIXIR_VERSION=1.10.4
- make ct-vhost \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-vhost \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-vhost-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
- # vim:sw=2:et:
- capture-tested-deps-versions:
- needs:
- - dialyzer
- - eunit
- - ct-amqqueue_backward_compatibility
- - ct-backing_queue
- - ct-channel_interceptor
- - ct-channel_operation_timeout
- - ct-cluster
- - ct-cluster_rename
- - ct-clustering_management
- - ct-config_schema
- - ct-confirms_rejects
- - ct-consumer_timeout
- - ct-crashing_queues
- - ct-dead_lettering
- - ct-definition_import
- - ct-disconnect_detected_during_alarm
- - ct-dynamic_ha
- - ct-dynamic_qq
- - ct-eager_sync
- - ct-feature_flags
- - ct-lazy_queue
- - ct-list_consumers_sanity_check
- - ct-list_queues_online_and_offline
- - ct-maintenance_mode
- - ct-many_node_ha
- - ct-message_size_limit
- - ct-metrics
- - ct-mirrored_supervisor
- - ct-msg_store
- - ct-peer_discovery_classic_config
- - ct-peer_discovery_dns
- - ct-per_user_connection_channel_limit
- - ct-per_user_connection_channel_limit_partitions
- - ct-per_user_connection_channel_tracking
- - ct-per_user_connection_tracking
- - ct-per_vhost_connection_limit
- - ct-per_vhost_connection_limit_partitions
- - ct-per_vhost_msg_store
- - ct-per_vhost_queue_limit
- - ct-policy
- - ct-priority_queue
- - ct-priority_queue_recovery
- - ct-product_info
- - ct-proxy_protocol
- - ct-publisher_confirms_parallel
- - ct-queue_length_limits
- - ct-queue_master_location
- - ct-queue_parallel
- - ct-queue_type
- - ct-quorum_queue
- - ct-rabbit_confirms
- - ct-rabbit_core_metrics_gc
- - ct-rabbit_fifo
- - ct-rabbit_fifo_int
- - ct-rabbit_fifo_prop
- - ct-rabbit_fifo_v0
- - ct-rabbit_msg_record
- - ct-rabbit_stream_queue
- - ct-rabbitmq_queues_cli_integration
- - ct-rabbitmqctl_integration
- - ct-rabbitmqctl_shutdown
- - ct-signal_handling
- - ct-simple_ha
- - ct-single_active_consumer
- - ct-sync_detection
- - ct-term_to_binary_compat_prop
- - ct-topic_permission
- - ct-unit_access_control
- - ct-unit_access_control_authn_authz_context_propagation
- - ct-unit_access_control_credential_validation
- - ct-unit_amqp091_content_framing
- - ct-unit_amqp091_server_properties
- - ct-unit_app_management
- - ct-unit_cluster_formation_locking_mocks
- - ct-unit_collections
- - ct-unit_config_value_encryption
- - ct-unit_connection_tracking
- - ct-unit_credit_flow
- - ct-unit_disk_monitor
- - ct-unit_disk_monitor_mocks
- - ct-unit_file_handle_cache
- - ct-unit_gen_server2
- - ct-unit_gm
- - ct-unit_log_config
- - ct-unit_log_management
- - ct-unit_operator_policy
- - ct-unit_pg_local
- - ct-unit_plugin_directories
- - ct-unit_plugin_versioning
- - ct-unit_policy_validators
- - ct-unit_priority_queue
- - ct-unit_queue_consumers
- - ct-unit_stats_and_metrics
- - ct-unit_supervisor2
- - ct-unit_vm_memory_monitor
- - ct-upgrade_preparation
- - ct-vhost
- runs-on: ubuntu-18.04
- steps:
- - if: github.ref == 'refs/heads/master'
- uses: actions/download-artifact@v2
- with:
- name: rabbit-rabbitmq-deps.mk
- - name: FORMAT GIT REF
- if: github.ref == 'refs/heads/master'
- # https://github.community/t5/GitHub-Actions/How-can-I-set-an-expression-as-an-environment-variable-at/m-p/41804/highlight/true#M4751
- id: ref
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- echo "::set-output name=branch_or_tag_name::$branch_or_tag_name"
- - name: UPLOAD TO S3
- if: github.ref == 'refs/heads/master'
- # https://github.com/marketplace/actions/s3-file-upload
- uses: zdurham/s3-upload-github-action@master
- env:
- AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
- AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
- AWS_REGION: ${{ secrets.AWS_REGION }}
- FILE: rabbit-rabbitmq-deps.mk
- S3_BUCKET: ${{ secrets.AWS_S3_BUCKET }}
- S3_KEY: rabbitmq-server/${{ steps.ref.outputs.branch_or_tag_name }}/${{ github.run_id }}/otp-23.1/rabbit-rabbitmq-deps.mk
diff --git a/deps/rabbit/.github/workflows/test-jobs/30-CT_SUITE.yaml b/deps/rabbit/.github/workflows/test-jobs/30-CT_SUITE.yaml
deleted file mode 100644
index 05d80a05d5..0000000000
--- a/deps/rabbit/.github/workflows/test-jobs/30-CT_SUITE.yaml
+++ /dev/null
@@ -1,95 +0,0 @@
- # vim:sw=2:et:
- ct-$(CT_SUITE):
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-$(CT_SUITE)
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: $(ERLANG_VERSION)
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: $(ELIXIR_VERSION)
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- export BASE_RMQ_REF=$(base_rmq_ref)
- export ERLANG_VERSION=$(ERLANG_VERSION)
- export ELIXIR_VERSION=$(ELIXIR_VERSION)
- make ct-$(CT_SUITE) \
- base_rmq_ref=$(base_rmq_ref) \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && '$(ERLANG_VERSION_IS)' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && '$(ERLANG_VERSION_IS)' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && '$(ERLANG_VERSION_IS)' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-$(CT_SUITE) \
- base_rmq_ref=$(base_rmq_ref) \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS= \
- CT_OPTS="-ct_hooks honeycomb_cth '[{directory,\"$PWD/honeycomb\"}]'"
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-$(CT_SUITE)-logs
- path: "*-ct-logs-*.tar.xz"
- - name: HONEYCOMB
- if: success() || failure()
- run: |
- echo "$(ls honeycomb | wc -l) events recorded"
- for f in honeycomb/*; do
- RC=$(curl --silent \
- -H 'X-Honeycomb-Team: ${{ secrets.HONEYCOMB_TEAM }}' \
- -d @${f} \
- -o /dev/null \
- -w "%{http_code}" \
- "https://api.honeycomb.io/1/events/rabbitmq-ci")
- if [ "$RC" != "200" ]; then
- echo "Honeycomb returned ${RC}"
- cat ${f}
- printf "\n\n"
- fi
- done
diff --git a/deps/rabbit_common/.github/workflows/test-jobs/00-header.yaml b/deps/rabbit_common/.github/workflows/test-jobs/00-header.yaml
deleted file mode 100644
index 05fe68183a..0000000000
--- a/deps/rabbit_common/.github/workflows/test-jobs/00-header.yaml
+++ /dev/null
@@ -1,9 +0,0 @@
-# vim:sw=2:et:
-# https://help.github.com/en/actions/configuring-and-managing-workflows/configuring-a-workflow
-name: "Test - Erlang $(ERLANG_VERSION)"
-on:
- push:
- repository_dispatch:
- types:
- - new-commit-to-dep-release-branch
-jobs:
diff --git a/deps/rabbit_common/.github/workflows/test-jobs/01-checks.yaml b/deps/rabbit_common/.github/workflows/test-jobs/01-checks.yaml
deleted file mode 100644
index ebfb555d0c..0000000000
--- a/deps/rabbit_common/.github/workflows/test-jobs/01-checks.yaml
+++ /dev/null
@@ -1,101 +0,0 @@
- # vim:sw=2:et:
- checks:
- name: checks
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: $(ERLANG_VERSION)
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: $(ELIXIR_VERSION)
- - name: CHECK RABBITMQ COMPONENTS
- # https://github.community/t5/GitHub-Actions/How-can-I-set-an-expression-as-an-environment-variable-at/m-p/41804/highlight/true#M4751
- id: ref
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- echo "::set-output name=branch_or_tag_name::$branch_or_tag_name"
- make check-rabbitmq-components.mk base_rmq_ref=$(base_rmq_ref) current_rmq_ref=$branch_or_tag_name
- - name: RESOLVE & COMPILE DEPS
- run: |
- make deps test-deps base_rmq_ref=$(base_rmq_ref) current_rmq_ref=${{ steps.ref.outputs.branch_or_tag_name }}
- echo "Capture versions of the RabbitMQ components used in this workflow..."
- make $(PROJECT)-rabbitmq-deps.mk
- echo "Remove directories not used in the subsequent jobs..."
- rm -fr deps/*/{.git,test}
- - name: UPLOAD DEPS VERSIONS
- uses: actions/upload-artifact@v2
- with:
- name: $(PROJECT)-rabbitmq-deps.mk
- path: $(PROJECT)-rabbitmq-deps.mk
- - name: CREATE DEPS ARCHIVE
- run: |
- tar cf - deps | xz > deps.tar.xz
- - name: UPLOAD DEPS ARCHIVE
- uses: actions/upload-artifact@v2
- with:
- name: deps.tar.xz
- path: deps.tar.xz
- - name: CHECK CROSS REFERENCES
- run: |
- make xref base_rmq_ref=$(base_rmq_ref) current_rmq_ref=${{ steps.ref.outputs.branch_or_tag_name }}
- - name: COMPILE FOR TEST
- run: |
- make test-build base_rmq_ref=$(base_rmq_ref) current_rmq_ref=${{ steps.ref.outputs.branch_or_tag_name }}
- - name: CACHE SECONDARY UMBRELLAS
- if: success() && '$(ERLANG_VERSION_IS)' == 'oldest'
- uses: actions/cache@v1
- with:
- path: umbrellas
- key: $(SECONDARY_UMBRELLAS_CACHE_KEY)
- - name: PREPARE SECONDARY UMBRELLA COPIES
- if: success() && '$(ERLANG_VERSION_IS)' == 'oldest'
- run: |
- set -ex
- for version in $(MIXED_VERSION_TESTING_WITH); do
- umbrella="umbrellas/$version"
- if ! test -d "$umbrella" ||
- ! make -C "$umbrella/deps/$(PROJECT)" test-dist; then
- rm -rf "$umbrella"
-
- # Fetch the master Umbrella; the final umbrellas are created from
- # the master copy.
- if ! test -d umbrellas/master; then
- git config --global advice.detachedHead false
- git clone \
- https://github.com/rabbitmq/rabbitmq-public-umbrella.git \
- umbrellas/master
- make -C umbrellas/master co # To get RabbitMQ components.
- fi
-
- # We copy the master Umbrella and checkout the appropriate tag.
- cp -a umbrellas/master "$umbrella"
- git -C "$umbrella" checkout "$(base_rmq_ref)"
- make -C "$umbrella" up BRANCH="$version"
- # To remove third-party deps which were checked out when the
- # projects were on the `master` branch. Thus, possibly not the
- # version pinning we expect. We update the Umbrella one last time
- # to fetch the correct third-party deps.
- make -C "$umbrella" clean-3rd-party-repos
- make -C "$umbrella" up
- make -C "$umbrella/deps/$(PROJECT)" test-dist
- rm -rf "$umbrella"/deps/rabbitmq_website
- rm -rf "$umbrella"/deps/rabbitmq_prometheus/docker
- rm -rf "$umbrella"/deps/*/{.git,test} "$umbrella"/.git
- fi
- done
- rm -fr umbrellas/master
- - name: CREATE SECONDARY UMBRELLAS ARCHIVE
- if: success() && '$(ERLANG_VERSION_IS)' == 'oldest'
- run: |
- set -ex
- tar cf - umbrellas | xz > secondary-umbrellas.tar.xz
- - name: UPLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && '$(ERLANG_VERSION_IS)' == 'oldest'
- uses: actions/upload-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- path: secondary-umbrellas.tar.xz
diff --git a/deps/rabbit_common/.github/workflows/test-jobs/10-dialyzer.yaml b/deps/rabbit_common/.github/workflows/test-jobs/10-dialyzer.yaml
deleted file mode 100644
index 13d3b7f5ca..0000000000
--- a/deps/rabbit_common/.github/workflows/test-jobs/10-dialyzer.yaml
+++ /dev/null
@@ -1,35 +0,0 @@
- # vim:sw=2:et:
- dialyzer:
- name: dialyzer
- needs: [checks]
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- if: success() && '$(ERLANG_VERSION_IS)' == 'latest'
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- if: success() && '$(ERLANG_VERSION_IS)' == 'latest'
- uses: actions/setup-elixir@v1
- with:
- otp-version: $(ERLANG_VERSION)
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: $(ELIXIR_VERSION)
- - name: DOWNLOAD DEPS ARCHIVE
- if: success() && '$(ERLANG_VERSION_IS)' == 'latest'
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- if: success() && '$(ERLANG_VERSION_IS)' == 'latest'
- run: |
- tar Jxf deps.tar.xz
- rm deps.tar.xz
- - name: RUN DIALYZER
- if: success() && '$(ERLANG_VERSION_IS)' == 'latest'
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- make dialyze \
- base_rmq_ref=$(base_rmq_ref) \
- current_rmq_ref=$branch_or_tag_name \
- FULL=
diff --git a/deps/rabbit_common/.github/workflows/test-jobs/20-eunit.yaml b/deps/rabbit_common/.github/workflows/test-jobs/20-eunit.yaml
deleted file mode 100644
index add90fd2f3..0000000000
--- a/deps/rabbit_common/.github/workflows/test-jobs/20-eunit.yaml
+++ /dev/null
@@ -1,34 +0,0 @@
- # vim:sw=2:et:
- eunit:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: eunit
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: $(ERLANG_VERSION)
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: $(ELIXIR_VERSION)
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- rm deps.tar.xz
- - name: RUN TESTS
- run: |
- ! test -d ebin || touch ebin/*
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- make eunit \
- base_rmq_ref=$(base_rmq_ref) \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1
diff --git a/deps/rabbit_common/.github/workflows/test-jobs/30-CT_SUITE.yaml b/deps/rabbit_common/.github/workflows/test-jobs/30-CT_SUITE.yaml
deleted file mode 100644
index 3144b06d39..0000000000
--- a/deps/rabbit_common/.github/workflows/test-jobs/30-CT_SUITE.yaml
+++ /dev/null
@@ -1,73 +0,0 @@
- # vim:sw=2:et:
- ct-$(CT_SUITE):
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-$(CT_SUITE)
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: $(ERLANG_VERSION)
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: $(ELIXIR_VERSION)
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- make ct-$(CT_SUITE) \
- base_rmq_ref=$(base_rmq_ref) \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && '$(ERLANG_VERSION_IS)' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && '$(ERLANG_VERSION_IS)' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && '$(ERLANG_VERSION_IS)' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-$(CT_SUITE) \
- base_rmq_ref=$(base_rmq_ref) \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS=
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-$(CT_SUITE)-logs
- path: "*-ct-logs-*.tar.xz"
diff --git a/deps/rabbit_common/.github/workflows/test-jobs/99-capture-tested-deps-versions.yaml b/deps/rabbit_common/.github/workflows/test-jobs/99-capture-tested-deps-versions.yaml
deleted file mode 100644
index e6b85040dd..0000000000
--- a/deps/rabbit_common/.github/workflows/test-jobs/99-capture-tested-deps-versions.yaml
+++ /dev/null
@@ -1,30 +0,0 @@
- # vim:sw=2:et:
- capture-tested-deps-versions:
- needs:
- - dialyzer
- - eunit
- - ct-$(CT_SUITES)
- runs-on: ubuntu-18.04
- steps:
- - if: github.ref == 'refs/heads/$(base_rmq_ref)'
- uses: actions/download-artifact@v2
- with:
- name: $(PROJECT)-rabbitmq-deps.mk
- - name: FORMAT GIT REF
- if: github.ref == 'refs/heads/$(base_rmq_ref)'
- # https://github.community/t5/GitHub-Actions/How-can-I-set-an-expression-as-an-environment-variable-at/m-p/41804/highlight/true#M4751
- id: ref
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- echo "::set-output name=branch_or_tag_name::$branch_or_tag_name"
- - name: UPLOAD TO S3
- if: github.ref == 'refs/heads/$(base_rmq_ref)'
- # https://github.com/marketplace/actions/s3-file-upload
- uses: zdurham/s3-upload-github-action@master
- env:
- AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
- AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
- AWS_REGION: ${{ secrets.AWS_REGION }}
- FILE: $(PROJECT)-rabbitmq-deps.mk
- S3_BUCKET: ${{ secrets.AWS_S3_BUCKET }}
- S3_KEY: $(RABBITMQ_COMPONENT_REPO_NAME)/${{ steps.ref.outputs.branch_or_tag_name }}/${{ github.run_id }}/otp-$(ERLANG_VERSION)/$(PROJECT)-rabbitmq-deps.mk
diff --git a/deps/rabbit_common/.github/workflows/webhooks.yml b/deps/rabbit_common/.github/workflows/webhooks.yml
deleted file mode 100644
index 17fb1a144d..0000000000
--- a/deps/rabbit_common/.github/workflows/webhooks.yml
+++ /dev/null
@@ -1,18 +0,0 @@
-# https://help.github.com/en/actions/reference/events-that-trigger-workflows#external-events-repository_dispatch
-# https://help.github.com/en/actions/configuring-and-managing-workflows/authenticating-with-the-github_token#example-calling-the-rest-api
-# https://developer.github.com/v3/repos/#create-a-repository-dispatch-event
-name: Webhook triggers
-on:
- push:
- branches:
- - master
-jobs:
- rabbitmq-server:
- runs-on: ubuntu-latest
- steps:
- - name: New commit to rabbitmq-common master branch
- run: |
- curl --silent --fail --url https://api.github.com/repos/rabbitmq/rabbitmq-server/dispatches \
- --header "Authorization: Bearer ${{ secrets.PERSONAL_ACCESS_TOKEN }}" \
- --header "Content-Type: application/json" \
- --data '{ "event_type": "new-commit-to-dep-release-branch", "client_payload": { "dep": "rabbitmq-common" } }'
diff --git a/deps/rabbitmq_auth_backend_cache/.github/ISSUE_TEMPLATE.md b/deps/rabbitmq_auth_backend_cache/.github/ISSUE_TEMPLATE.md
deleted file mode 100644
index bce561261a..0000000000
--- a/deps/rabbitmq_auth_backend_cache/.github/ISSUE_TEMPLATE.md
+++ /dev/null
@@ -1,21 +0,0 @@
-Thank you for using RabbitMQ.
-
-**STOP NOW AND READ THIS** BEFORE OPENING A NEW ISSUE ON GITHUB
-
-Unless you are CERTAIN you have found a reproducible problem in RabbitMQ or
-have a **specific, actionable** suggestion for our team, you must first ask
-your question or discuss your suspected issue on the mailing list:
-
-https://groups.google.com/forum/#!forum/rabbitmq-users
-
-Team RabbitMQ does not use GitHub issues for discussions, investigations, root
-cause analysis and so on.
-
-Please take the time to read the CONTRIBUTING.md document for instructions on
-how to effectively ask a question or report a suspected issue:
-
-https://github.com/rabbitmq/rabbitmq-server/blob/master/CONTRIBUTING.md#github-issues
-
-Following these rules **will save time** for both you and RabbitMQ's maintainers.
-
-Thank you.
diff --git a/deps/rabbitmq_auth_backend_cache/.github/PULL_REQUEST_TEMPLATE.md b/deps/rabbitmq_auth_backend_cache/.github/PULL_REQUEST_TEMPLATE.md
deleted file mode 100644
index 230febf8a2..0000000000
--- a/deps/rabbitmq_auth_backend_cache/.github/PULL_REQUEST_TEMPLATE.md
+++ /dev/null
@@ -1,43 +0,0 @@
-## Proposed Changes
-
-Please describe the big picture of your changes here to communicate to the
-RabbitMQ team why we should accept this pull request. If it fixes a bug or
-resolves a feature request, be sure to link to that issue.
-
-A pull request that doesn't explain **why** the change was made has a much
-lower chance of being accepted.
-
-If English isn't your first language, don't worry about it and try to
-communicate the problem you are trying to solve to the best of your abilities.
-As long as we can understand the intent, it's all good.
-
-## Types of Changes
-
-What types of changes does your code introduce to this project?
-_Put an `x` in the boxes that apply_
-
-- [ ] Bug fix (non-breaking change which fixes issue #NNNN)
-- [ ] New feature (non-breaking change which adds functionality)
-- [ ] Breaking change (fix or feature that would cause an observable behavior change in existing systems)
-- [ ] Documentation improvements (corrections, new content, etc)
-- [ ] Cosmetic change (whitespace, formatting, etc)
-
-## Checklist
-
-_Put an `x` in the boxes that apply. You can also fill these out after creating
-the PR. If you're unsure about any of them, don't hesitate to ask on the
-mailing list. We're here to help! This is simply a reminder of what we are
-going to look for before merging your code._
-
-- [ ] I have read the `CONTRIBUTING.md` document
-- [ ] I have signed the CA (see https://cla.pivotal.io/sign/rabbitmq)
-- [ ] All tests pass locally with my changes
-- [ ] I have added tests that prove my fix is effective or that my feature works
-- [ ] I have added necessary documentation (if appropriate)
-- [ ] Any dependent changes have been merged and published in related repositories
-
-## Further Comments
-
-If this is a relatively large or complex change, kick off the discussion by
-explaining why you chose the solution you did and what alternatives you
-considered, etc.
diff --git a/deps/rabbitmq_auth_backend_http/.github/ISSUE_TEMPLATE.md b/deps/rabbitmq_auth_backend_http/.github/ISSUE_TEMPLATE.md
deleted file mode 100644
index bce561261a..0000000000
--- a/deps/rabbitmq_auth_backend_http/.github/ISSUE_TEMPLATE.md
+++ /dev/null
@@ -1,21 +0,0 @@
-Thank you for using RabbitMQ.
-
-**STOP NOW AND READ THIS** BEFORE OPENING A NEW ISSUE ON GITHUB
-
-Unless you are CERTAIN you have found a reproducible problem in RabbitMQ or
-have a **specific, actionable** suggestion for our team, you must first ask
-your question or discuss your suspected issue on the mailing list:
-
-https://groups.google.com/forum/#!forum/rabbitmq-users
-
-Team RabbitMQ does not use GitHub issues for discussions, investigations, root
-cause analysis and so on.
-
-Please take the time to read the CONTRIBUTING.md document for instructions on
-how to effectively ask a question or report a suspected issue:
-
-https://github.com/rabbitmq/rabbitmq-server/blob/master/CONTRIBUTING.md#github-issues
-
-Following these rules **will save time** for both you and RabbitMQ's maintainers.
-
-Thank you.
diff --git a/deps/rabbitmq_auth_backend_http/.github/PULL_REQUEST_TEMPLATE.md b/deps/rabbitmq_auth_backend_http/.github/PULL_REQUEST_TEMPLATE.md
deleted file mode 100644
index 230febf8a2..0000000000
--- a/deps/rabbitmq_auth_backend_http/.github/PULL_REQUEST_TEMPLATE.md
+++ /dev/null
@@ -1,43 +0,0 @@
-## Proposed Changes
-
-Please describe the big picture of your changes here to communicate to the
-RabbitMQ team why we should accept this pull request. If it fixes a bug or
-resolves a feature request, be sure to link to that issue.
-
-A pull request that doesn't explain **why** the change was made has a much
-lower chance of being accepted.
-
-If English isn't your first language, don't worry about it and try to
-communicate the problem you are trying to solve to the best of your abilities.
-As long as we can understand the intent, it's all good.
-
-## Types of Changes
-
-What types of changes does your code introduce to this project?
-_Put an `x` in the boxes that apply_
-
-- [ ] Bug fix (non-breaking change which fixes issue #NNNN)
-- [ ] New feature (non-breaking change which adds functionality)
-- [ ] Breaking change (fix or feature that would cause an observable behavior change in existing systems)
-- [ ] Documentation improvements (corrections, new content, etc)
-- [ ] Cosmetic change (whitespace, formatting, etc)
-
-## Checklist
-
-_Put an `x` in the boxes that apply. You can also fill these out after creating
-the PR. If you're unsure about any of them, don't hesitate to ask on the
-mailing list. We're here to help! This is simply a reminder of what we are
-going to look for before merging your code._
-
-- [ ] I have read the `CONTRIBUTING.md` document
-- [ ] I have signed the CA (see https://cla.pivotal.io/sign/rabbitmq)
-- [ ] All tests pass locally with my changes
-- [ ] I have added tests that prove my fix is effective or that my feature works
-- [ ] I have added necessary documentation (if appropriate)
-- [ ] Any dependent changes have been merged and published in related repositories
-
-## Further Comments
-
-If this is a relatively large or complex change, kick off the discussion by
-explaining why you chose the solution you did and what alternatives you
-considered, etc.
diff --git a/deps/rabbitmq_auth_backend_ldap/.github/ISSUE_TEMPLATE.md b/deps/rabbitmq_auth_backend_ldap/.github/ISSUE_TEMPLATE.md
deleted file mode 100644
index bce561261a..0000000000
--- a/deps/rabbitmq_auth_backend_ldap/.github/ISSUE_TEMPLATE.md
+++ /dev/null
@@ -1,21 +0,0 @@
-Thank you for using RabbitMQ.
-
-**STOP NOW AND READ THIS** BEFORE OPENING A NEW ISSUE ON GITHUB
-
-Unless you are CERTAIN you have found a reproducible problem in RabbitMQ or
-have a **specific, actionable** suggestion for our team, you must first ask
-your question or discuss your suspected issue on the mailing list:
-
-https://groups.google.com/forum/#!forum/rabbitmq-users
-
-Team RabbitMQ does not use GitHub issues for discussions, investigations, root
-cause analysis and so on.
-
-Please take the time to read the CONTRIBUTING.md document for instructions on
-how to effectively ask a question or report a suspected issue:
-
-https://github.com/rabbitmq/rabbitmq-server/blob/master/CONTRIBUTING.md#github-issues
-
-Following these rules **will save time** for both you and RabbitMQ's maintainers.
-
-Thank you.
diff --git a/deps/rabbitmq_auth_backend_ldap/.github/PULL_REQUEST_TEMPLATE.md b/deps/rabbitmq_auth_backend_ldap/.github/PULL_REQUEST_TEMPLATE.md
deleted file mode 100644
index 230febf8a2..0000000000
--- a/deps/rabbitmq_auth_backend_ldap/.github/PULL_REQUEST_TEMPLATE.md
+++ /dev/null
@@ -1,43 +0,0 @@
-## Proposed Changes
-
-Please describe the big picture of your changes here to communicate to the
-RabbitMQ team why we should accept this pull request. If it fixes a bug or
-resolves a feature request, be sure to link to that issue.
-
-A pull request that doesn't explain **why** the change was made has a much
-lower chance of being accepted.
-
-If English isn't your first language, don't worry about it and try to
-communicate the problem you are trying to solve to the best of your abilities.
-As long as we can understand the intent, it's all good.
-
-## Types of Changes
-
-What types of changes does your code introduce to this project?
-_Put an `x` in the boxes that apply_
-
-- [ ] Bug fix (non-breaking change which fixes issue #NNNN)
-- [ ] New feature (non-breaking change which adds functionality)
-- [ ] Breaking change (fix or feature that would cause an observable behavior change in existing systems)
-- [ ] Documentation improvements (corrections, new content, etc)
-- [ ] Cosmetic change (whitespace, formatting, etc)
-
-## Checklist
-
-_Put an `x` in the boxes that apply. You can also fill these out after creating
-the PR. If you're unsure about any of them, don't hesitate to ask on the
-mailing list. We're here to help! This is simply a reminder of what we are
-going to look for before merging your code._
-
-- [ ] I have read the `CONTRIBUTING.md` document
-- [ ] I have signed the CA (see https://cla.pivotal.io/sign/rabbitmq)
-- [ ] All tests pass locally with my changes
-- [ ] I have added tests that prove my fix is effective or that my feature works
-- [ ] I have added necessary documentation (if appropriate)
-- [ ] Any dependent changes have been merged and published in related repositories
-
-## Further Comments
-
-If this is a relatively large or complex change, kick off the discussion by
-explaining why you chose the solution you did and what alternatives you
-considered, etc.
diff --git a/deps/rabbitmq_auth_backend_oauth2/.github/ISSUE_TEMPLATE.md b/deps/rabbitmq_auth_backend_oauth2/.github/ISSUE_TEMPLATE.md
deleted file mode 100644
index bce561261a..0000000000
--- a/deps/rabbitmq_auth_backend_oauth2/.github/ISSUE_TEMPLATE.md
+++ /dev/null
@@ -1,21 +0,0 @@
-Thank you for using RabbitMQ.
-
-**STOP NOW AND READ THIS** BEFORE OPENING A NEW ISSUE ON GITHUB
-
-Unless you are CERTAIN you have found a reproducible problem in RabbitMQ or
-have a **specific, actionable** suggestion for our team, you must first ask
-your question or discuss your suspected issue on the mailing list:
-
-https://groups.google.com/forum/#!forum/rabbitmq-users
-
-Team RabbitMQ does not use GitHub issues for discussions, investigations, root
-cause analysis and so on.
-
-Please take the time to read the CONTRIBUTING.md document for instructions on
-how to effectively ask a question or report a suspected issue:
-
-https://github.com/rabbitmq/rabbitmq-server/blob/master/CONTRIBUTING.md#github-issues
-
-Following these rules **will save time** for both you and RabbitMQ's maintainers.
-
-Thank you.
diff --git a/deps/rabbitmq_auth_backend_oauth2/.github/PULL_REQUEST_TEMPLATE.md b/deps/rabbitmq_auth_backend_oauth2/.github/PULL_REQUEST_TEMPLATE.md
deleted file mode 100644
index 230febf8a2..0000000000
--- a/deps/rabbitmq_auth_backend_oauth2/.github/PULL_REQUEST_TEMPLATE.md
+++ /dev/null
@@ -1,43 +0,0 @@
-## Proposed Changes
-
-Please describe the big picture of your changes here to communicate to the
-RabbitMQ team why we should accept this pull request. If it fixes a bug or
-resolves a feature request, be sure to link to that issue.
-
-A pull request that doesn't explain **why** the change was made has a much
-lower chance of being accepted.
-
-If English isn't your first language, don't worry about it and try to
-communicate the problem you are trying to solve to the best of your abilities.
-As long as we can understand the intent, it's all good.
-
-## Types of Changes
-
-What types of changes does your code introduce to this project?
-_Put an `x` in the boxes that apply_
-
-- [ ] Bug fix (non-breaking change which fixes issue #NNNN)
-- [ ] New feature (non-breaking change which adds functionality)
-- [ ] Breaking change (fix or feature that would cause an observable behavior change in existing systems)
-- [ ] Documentation improvements (corrections, new content, etc)
-- [ ] Cosmetic change (whitespace, formatting, etc)
-
-## Checklist
-
-_Put an `x` in the boxes that apply. You can also fill these out after creating
-the PR. If you're unsure about any of them, don't hesitate to ask on the
-mailing list. We're here to help! This is simply a reminder of what we are
-going to look for before merging your code._
-
-- [ ] I have read the `CONTRIBUTING.md` document
-- [ ] I have signed the CA (see https://cla.pivotal.io/sign/rabbitmq)
-- [ ] All tests pass locally with my changes
-- [ ] I have added tests that prove my fix is effective or that my feature works
-- [ ] I have added necessary documentation (if appropriate)
-- [ ] Any dependent changes have been merged and published in related repositories
-
-## Further Comments
-
-If this is a relatively large or complex change, kick off the discussion by
-explaining why you chose the solution you did and what alternatives you
-considered, etc.
diff --git a/deps/rabbitmq_auth_mechanism_ssl/.github/ISSUE_TEMPLATE.md b/deps/rabbitmq_auth_mechanism_ssl/.github/ISSUE_TEMPLATE.md
deleted file mode 100644
index bce561261a..0000000000
--- a/deps/rabbitmq_auth_mechanism_ssl/.github/ISSUE_TEMPLATE.md
+++ /dev/null
@@ -1,21 +0,0 @@
-Thank you for using RabbitMQ.
-
-**STOP NOW AND READ THIS** BEFORE OPENING A NEW ISSUE ON GITHUB
-
-Unless you are CERTAIN you have found a reproducible problem in RabbitMQ or
-have a **specific, actionable** suggestion for our team, you must first ask
-your question or discuss your suspected issue on the mailing list:
-
-https://groups.google.com/forum/#!forum/rabbitmq-users
-
-Team RabbitMQ does not use GitHub issues for discussions, investigations, root
-cause analysis and so on.
-
-Please take the time to read the CONTRIBUTING.md document for instructions on
-how to effectively ask a question or report a suspected issue:
-
-https://github.com/rabbitmq/rabbitmq-server/blob/master/CONTRIBUTING.md#github-issues
-
-Following these rules **will save time** for both you and RabbitMQ's maintainers.
-
-Thank you.
diff --git a/deps/rabbitmq_auth_mechanism_ssl/.github/PULL_REQUEST_TEMPLATE.md b/deps/rabbitmq_auth_mechanism_ssl/.github/PULL_REQUEST_TEMPLATE.md
deleted file mode 100644
index 230febf8a2..0000000000
--- a/deps/rabbitmq_auth_mechanism_ssl/.github/PULL_REQUEST_TEMPLATE.md
+++ /dev/null
@@ -1,43 +0,0 @@
-## Proposed Changes
-
-Please describe the big picture of your changes here to communicate to the
-RabbitMQ team why we should accept this pull request. If it fixes a bug or
-resolves a feature request, be sure to link to that issue.
-
-A pull request that doesn't explain **why** the change was made has a much
-lower chance of being accepted.
-
-If English isn't your first language, don't worry about it and try to
-communicate the problem you are trying to solve to the best of your abilities.
-As long as we can understand the intent, it's all good.
-
-## Types of Changes
-
-What types of changes does your code introduce to this project?
-_Put an `x` in the boxes that apply_
-
-- [ ] Bug fix (non-breaking change which fixes issue #NNNN)
-- [ ] New feature (non-breaking change which adds functionality)
-- [ ] Breaking change (fix or feature that would cause an observable behavior change in existing systems)
-- [ ] Documentation improvements (corrections, new content, etc)
-- [ ] Cosmetic change (whitespace, formatting, etc)
-
-## Checklist
-
-_Put an `x` in the boxes that apply. You can also fill these out after creating
-the PR. If you're unsure about any of them, don't hesitate to ask on the
-mailing list. We're here to help! This is simply a reminder of what we are
-going to look for before merging your code._
-
-- [ ] I have read the `CONTRIBUTING.md` document
-- [ ] I have signed the CA (see https://cla.pivotal.io/sign/rabbitmq)
-- [ ] All tests pass locally with my changes
-- [ ] I have added tests that prove my fix is effective or that my feature works
-- [ ] I have added necessary documentation (if appropriate)
-- [ ] Any dependent changes have been merged and published in related repositories
-
-## Further Comments
-
-If this is a relatively large or complex change, kick off the discussion by
-explaining why you chose the solution you did and what alternatives you
-considered, etc.
diff --git a/deps/rabbitmq_cli/.github/ISSUE_TEMPLATE.md b/deps/rabbitmq_cli/.github/ISSUE_TEMPLATE.md
deleted file mode 100644
index bce561261a..0000000000
--- a/deps/rabbitmq_cli/.github/ISSUE_TEMPLATE.md
+++ /dev/null
@@ -1,21 +0,0 @@
-Thank you for using RabbitMQ.
-
-**STOP NOW AND READ THIS** BEFORE OPENING A NEW ISSUE ON GITHUB
-
-Unless you are CERTAIN you have found a reproducible problem in RabbitMQ or
-have a **specific, actionable** suggestion for our team, you must first ask
-your question or discuss your suspected issue on the mailing list:
-
-https://groups.google.com/forum/#!forum/rabbitmq-users
-
-Team RabbitMQ does not use GitHub issues for discussions, investigations, root
-cause analysis and so on.
-
-Please take the time to read the CONTRIBUTING.md document for instructions on
-how to effectively ask a question or report a suspected issue:
-
-https://github.com/rabbitmq/rabbitmq-server/blob/master/CONTRIBUTING.md#github-issues
-
-Following these rules **will save time** for both you and RabbitMQ's maintainers.
-
-Thank you.
diff --git a/deps/rabbitmq_cli/.github/PULL_REQUEST_TEMPLATE.md b/deps/rabbitmq_cli/.github/PULL_REQUEST_TEMPLATE.md
deleted file mode 100644
index 230febf8a2..0000000000
--- a/deps/rabbitmq_cli/.github/PULL_REQUEST_TEMPLATE.md
+++ /dev/null
@@ -1,43 +0,0 @@
-## Proposed Changes
-
-Please describe the big picture of your changes here to communicate to the
-RabbitMQ team why we should accept this pull request. If it fixes a bug or
-resolves a feature request, be sure to link to that issue.
-
-A pull request that doesn't explain **why** the change was made has a much
-lower chance of being accepted.
-
-If English isn't your first language, don't worry about it and try to
-communicate the problem you are trying to solve to the best of your abilities.
-As long as we can understand the intent, it's all good.
-
-## Types of Changes
-
-What types of changes does your code introduce to this project?
-_Put an `x` in the boxes that apply_
-
-- [ ] Bug fix (non-breaking change which fixes issue #NNNN)
-- [ ] New feature (non-breaking change which adds functionality)
-- [ ] Breaking change (fix or feature that would cause an observable behavior change in existing systems)
-- [ ] Documentation improvements (corrections, new content, etc)
-- [ ] Cosmetic change (whitespace, formatting, etc)
-
-## Checklist
-
-_Put an `x` in the boxes that apply. You can also fill these out after creating
-the PR. If you're unsure about any of them, don't hesitate to ask on the
-mailing list. We're here to help! This is simply a reminder of what we are
-going to look for before merging your code._
-
-- [ ] I have read the `CONTRIBUTING.md` document
-- [ ] I have signed the CA (see https://cla.pivotal.io/sign/rabbitmq)
-- [ ] All tests pass locally with my changes
-- [ ] I have added tests that prove my fix is effective or that my feature works
-- [ ] I have added necessary documentation (if appropriate)
-- [ ] Any dependent changes have been merged and published in related repositories
-
-## Further Comments
-
-If this is a relatively large or complex change, kick off the discussion by
-explaining why you chose the solution you did and what alternatives you
-considered, etc.
diff --git a/deps/rabbitmq_cli/.github/workflows/webhooks.yml b/deps/rabbitmq_cli/.github/workflows/webhooks.yml
deleted file mode 100644
index 7d7e0c7076..0000000000
--- a/deps/rabbitmq_cli/.github/workflows/webhooks.yml
+++ /dev/null
@@ -1,18 +0,0 @@
-# https://help.github.com/en/actions/reference/events-that-trigger-workflows#external-events-repository_dispatch
-# https://help.github.com/en/actions/configuring-and-managing-workflows/authenticating-with-the-github_token#example-calling-the-rest-api
-# https://developer.github.com/v3/repos/#create-a-repository-dispatch-event
-name: Webhook triggers
-on:
- push:
- branches:
- - master
-jobs:
- rabbitmq-server:
- runs-on: ubuntu-latest
- steps:
- - name: New commit to rabbitmq-cli master branch
- run: |
- curl --silent --fail --url https://api.github.com/repos/rabbitmq/rabbitmq-server/dispatches \
- --header "Authorization: Bearer ${{ secrets.PERSONAL_ACCESS_TOKEN }}" \
- --header "Content-Type: application/json" \
- --data '{ "event_type": "new-commit-to-dep-release-branch", "client_payload": { "dep": "rabbitmq-cli" } }'
diff --git a/deps/rabbitmq_consistent_hash_exchange/.github/ISSUE_TEMPLATE.md b/deps/rabbitmq_consistent_hash_exchange/.github/ISSUE_TEMPLATE.md
deleted file mode 100644
index 70b54cd818..0000000000
--- a/deps/rabbitmq_consistent_hash_exchange/.github/ISSUE_TEMPLATE.md
+++ /dev/null
@@ -1,43 +0,0 @@
-Thank you for using RabbitMQ and for taking the time to report an
-issue.
-
-## Does This Belong to GitHub or RabbitMQ Mailing List?
-
-*Important:* please first read the `CONTRIBUTING.md` document in the
-root of this repository. It will help you determine whether your
-feedback should be directed to the RabbitMQ mailing list [1] instead.
-
-## Please Help Maintainers and Contributors Help You
-
-In order for the RabbitMQ team to investigate your issue, please provide
-**as much as possible** of the following details:
-
-* RabbitMQ version
-* Erlang version
-* RabbitMQ server and client application log files
-* A runnable code sample, terminal transcript or detailed set of
- instructions that can be used to reproduce the issue
-* RabbitMQ plugin information via `rabbitmq-plugins list`
-* Client library version (for all libraries used)
-* Operating system, version, and patch level
-
-Running the `rabbitmq-collect-env` [2] script can provide most of the
-information needed. Please make the archive available via a third-party
-service and note that **the script does not attempt to scrub any
-sensitive data**.
-
-If your issue involves RabbitMQ management UI or HTTP API, please also provide
-the following:
-
- * Browser and its version
- * What management UI page was used (if applicable)
- * How the HTTP API requests performed can be reproduced with `curl`
- * Operating system on which you are running your browser, and its version
- * Errors reported in the JavaScript console (if any)
-
-This information **greatly speeds up issue investigation** (or makes it
-possible to investigate it at all). Please help project maintainers and
-contributors to help you by providing it!
-
-1. https://groups.google.com/forum/#!forum/rabbitmq-users
-2. https://github.com/rabbitmq/support-tools/blob/master/scripts/rabbitmq-collect-env
diff --git a/deps/rabbitmq_consistent_hash_exchange/.github/PULL_REQUEST_TEMPLATE.md b/deps/rabbitmq_consistent_hash_exchange/.github/PULL_REQUEST_TEMPLATE.md
deleted file mode 100644
index 32a0c1b945..0000000000
--- a/deps/rabbitmq_consistent_hash_exchange/.github/PULL_REQUEST_TEMPLATE.md
+++ /dev/null
@@ -1,43 +0,0 @@
-## Proposed Changes
-
-Please describe the big picture of your changes here to communicate to the
-RabbitMQ team why we should accept this pull request. If it fixes a bug or
-resolves a feature request, be sure to link to that issue.
-
-A pull request that doesn't explain **why** the change was made has a much
-lower chance of being accepted.
-
-If English isn't your first language, don't worry about it and try to
-communicate the problem you are trying to solve to the best of your abilities.
-As long as we can understand the intent, it's all good.
-
-## Types of Changes
-
-What types of changes does your code introduce to this project?
-_Put an `x` in the boxes that apply_
-
-- [ ] Bug fix (non-breaking change which fixes issue #NNNN)
-- [ ] New feature (non-breaking change which adds functionality)
-- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
-- [ ] Documentation (correction or otherwise)
-- [ ] Cosmetics (whitespace, appearance)
-
-## Checklist
-
-_Put an `x` in the boxes that apply. You can also fill these out after creating
-the PR. If you're unsure about any of them, don't hesitate to ask on the
-mailing list. We're here to help! This is simply a reminder of what we are
-going to look for before merging your code._
-
-- [ ] I have read the `CONTRIBUTING.md` document
-- [ ] I have signed the CA (see https://cla.pivotal.io/sign/rabbitmq)
-- [ ] All tests pass locally with my changes
-- [ ] I have added tests that prove my fix is effective or that my feature works
-- [ ] I have added necessary documentation (if appropriate)
-- [ ] Any dependent changes have been merged and published in related repositories
-
-## Further Comments
-
-If this is a relatively large or complex change, kick off the discussion by
-explaining why you chose the solution you did and what alternatives you
-considered, etc.
diff --git a/deps/rabbitmq_event_exchange/.github/ISSUE_TEMPLATE.md b/deps/rabbitmq_event_exchange/.github/ISSUE_TEMPLATE.md
deleted file mode 100644
index bce561261a..0000000000
--- a/deps/rabbitmq_event_exchange/.github/ISSUE_TEMPLATE.md
+++ /dev/null
@@ -1,21 +0,0 @@
-Thank you for using RabbitMQ.
-
-**STOP NOW AND READ THIS** BEFORE OPENING A NEW ISSUE ON GITHUB
-
-Unless you are CERTAIN you have found a reproducible problem in RabbitMQ or
-have a **specific, actionable** suggestion for our team, you must first ask
-your question or discuss your suspected issue on the mailing list:
-
-https://groups.google.com/forum/#!forum/rabbitmq-users
-
-Team RabbitMQ does not use GitHub issues for discussions, investigations, root
-cause analysis and so on.
-
-Please take the time to read the CONTRIBUTING.md document for instructions on
-how to effectively ask a question or report a suspected issue:
-
-https://github.com/rabbitmq/rabbitmq-server/blob/master/CONTRIBUTING.md#github-issues
-
-Following these rules **will save time** for both you and RabbitMQ's maintainers.
-
-Thank you.
diff --git a/deps/rabbitmq_event_exchange/.github/PULL_REQUEST_TEMPLATE.md b/deps/rabbitmq_event_exchange/.github/PULL_REQUEST_TEMPLATE.md
deleted file mode 100644
index 230febf8a2..0000000000
--- a/deps/rabbitmq_event_exchange/.github/PULL_REQUEST_TEMPLATE.md
+++ /dev/null
@@ -1,43 +0,0 @@
-## Proposed Changes
-
-Please describe the big picture of your changes here to communicate to the
-RabbitMQ team why we should accept this pull request. If it fixes a bug or
-resolves a feature request, be sure to link to that issue.
-
-A pull request that doesn't explain **why** the change was made has a much
-lower chance of being accepted.
-
-If English isn't your first language, don't worry about it and try to
-communicate the problem you are trying to solve to the best of your abilities.
-As long as we can understand the intent, it's all good.
-
-## Types of Changes
-
-What types of changes does your code introduce to this project?
-_Put an `x` in the boxes that apply_
-
-- [ ] Bug fix (non-breaking change which fixes issue #NNNN)
-- [ ] New feature (non-breaking change which adds functionality)
-- [ ] Breaking change (fix or feature that would cause an observable behavior change in existing systems)
-- [ ] Documentation improvements (corrections, new content, etc)
-- [ ] Cosmetic change (whitespace, formatting, etc)
-
-## Checklist
-
-_Put an `x` in the boxes that apply. You can also fill these out after creating
-the PR. If you're unsure about any of them, don't hesitate to ask on the
-mailing list. We're here to help! This is simply a reminder of what we are
-going to look for before merging your code._
-
-- [ ] I have read the `CONTRIBUTING.md` document
-- [ ] I have signed the CA (see https://cla.pivotal.io/sign/rabbitmq)
-- [ ] All tests pass locally with my changes
-- [ ] I have added tests that prove my fix is effective or that my feature works
-- [ ] I have added necessary documentation (if appropriate)
-- [ ] Any dependent changes have been merged and published in related repositories
-
-## Further Comments
-
-If this is a relatively large or complex change, kick off the discussion by
-explaining why you chose the solution you did and what alternatives you
-considered, etc.
diff --git a/deps/rabbitmq_federation/.github/ISSUE_TEMPLATE.md b/deps/rabbitmq_federation/.github/ISSUE_TEMPLATE.md
deleted file mode 100644
index 70b54cd818..0000000000
--- a/deps/rabbitmq_federation/.github/ISSUE_TEMPLATE.md
+++ /dev/null
@@ -1,43 +0,0 @@
-Thank you for using RabbitMQ and for taking the time to report an
-issue.
-
-## Does This Belong to GitHub or RabbitMQ Mailing List?
-
-*Important:* please first read the `CONTRIBUTING.md` document in the
-root of this repository. It will help you determine whether your
-feedback should be directed to the RabbitMQ mailing list [1] instead.
-
-## Please Help Maintainers and Contributors Help You
-
-In order for the RabbitMQ team to investigate your issue, please provide
-**as much as possible** of the following details:
-
-* RabbitMQ version
-* Erlang version
-* RabbitMQ server and client application log files
-* A runnable code sample, terminal transcript or detailed set of
- instructions that can be used to reproduce the issue
-* RabbitMQ plugin information via `rabbitmq-plugins list`
-* Client library version (for all libraries used)
-* Operating system, version, and patch level
-
-Running the `rabbitmq-collect-env` [2] script can provide most of the
-information needed. Please make the archive available via a third-party
-service and note that **the script does not attempt to scrub any
-sensitive data**.
-
-If your issue involves RabbitMQ management UI or HTTP API, please also provide
-the following:
-
- * Browser and its version
- * What management UI page was used (if applicable)
- * How the HTTP API requests performed can be reproduced with `curl`
- * Operating system on which you are running your browser, and its version
- * Errors reported in the JavaScript console (if any)
-
-This information **greatly speeds up issue investigation** (or makes it
-possible to investigate it at all). Please help project maintainers and
-contributors to help you by providing it!
-
-1. https://groups.google.com/forum/#!forum/rabbitmq-users
-2. https://github.com/rabbitmq/support-tools/blob/master/scripts/rabbitmq-collect-env
diff --git a/deps/rabbitmq_federation/.github/PULL_REQUEST_TEMPLATE.md b/deps/rabbitmq_federation/.github/PULL_REQUEST_TEMPLATE.md
deleted file mode 100644
index 4bd618567b..0000000000
--- a/deps/rabbitmq_federation/.github/PULL_REQUEST_TEMPLATE.md
+++ /dev/null
@@ -1,43 +0,0 @@
-## Proposed Changes
-
-Please describe the big picture of your changes here to communicate to the
-RabbitMQ team why we should accept this pull request. If it fixes a bug or
-resolves a feature request, be sure to link to that issue.
-
-A pull request that doesn't explain **why** the change was made has a much
-lower chance of being accepted.
-
-If English isn't your first language, don't worry about it and try to
-communicate the problem you are trying to solve to the best of your abilities.
-As long as we can understand the intent, it's all good.
-
-## Types of Changes
-
-What types of changes does your code introduce to this project?
-_Put an `x` in the boxes that apply_
-
-- [ ] Bugfix (non-breaking change which fixes issue #NNNN)
-- [ ] New feature (non-breaking change which adds functionality)
-- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
-- [ ] Documentation (correction or otherwise)
-- [ ] Cosmetics (whitespace, appearance)
-
-## Checklist
-
-_Put an `x` in the boxes that apply. You can also fill these out after creating
-the PR. If you're unsure about any of them, don't hesitate to ask on the
-mailing list. We're here to help! This is simply a reminder of what we are
-going to look for before merging your code._
-
-- [ ] I have read the `CONTRIBUTING.md` document
-- [ ] I have signed the CA (see https://cla.pivotal.io/sign/rabbitmq)
-- [ ] All tests pass locally with my changes
-- [ ] I have added tests that prove my fix is effective or that my feature works
-- [ ] I have added necessary documentation (if appropriate)
-- [ ] Any dependent changes have been merged and published in related repositories
-
-## Further Comments
-
-If this is a relatively large or complex change, kick off the discussion by
-explaining why you chose the solution you did and what alternatives you
-considered, etc.
diff --git a/deps/rabbitmq_federation_management/.github/ISSUE_TEMPLATE.md b/deps/rabbitmq_federation_management/.github/ISSUE_TEMPLATE.md
deleted file mode 100644
index 70b54cd818..0000000000
--- a/deps/rabbitmq_federation_management/.github/ISSUE_TEMPLATE.md
+++ /dev/null
@@ -1,43 +0,0 @@
-Thank you for using RabbitMQ and for taking the time to report an
-issue.
-
-## Does This Belong to GitHub or RabbitMQ Mailing List?
-
-*Important:* please first read the `CONTRIBUTING.md` document in the
-root of this repository. It will help you determine whether your
-feedback should be directed to the RabbitMQ mailing list [1] instead.
-
-## Please Help Maintainers and Contributors Help You
-
-In order for the RabbitMQ team to investigate your issue, please provide
-**as much as possible** of the following details:
-
-* RabbitMQ version
-* Erlang version
-* RabbitMQ server and client application log files
-* A runnable code sample, terminal transcript or detailed set of
- instructions that can be used to reproduce the issue
-* RabbitMQ plugin information via `rabbitmq-plugins list`
-* Client library version (for all libraries used)
-* Operating system, version, and patch level
-
-Running the `rabbitmq-collect-env` [2] script can provide most of the
-information needed. Please make the archive available via a third-party
-service and note that **the script does not attempt to scrub any
-sensitive data**.
-
-If your issue involves RabbitMQ management UI or HTTP API, please also provide
-the following:
-
- * Browser and its version
- * What management UI page was used (if applicable)
- * How the HTTP API requests performed can be reproduced with `curl`
- * Operating system on which you are running your browser, and its version
- * Errors reported in the JavaScript console (if any)
-
-This information **greatly speeds up issue investigation** (or makes it
-possible to investigate it at all). Please help project maintainers and
-contributors to help you by providing it!
-
-1. https://groups.google.com/forum/#!forum/rabbitmq-users
-2. https://github.com/rabbitmq/support-tools/blob/master/scripts/rabbitmq-collect-env
diff --git a/deps/rabbitmq_federation_management/.github/PULL_REQUEST_TEMPLATE.md b/deps/rabbitmq_federation_management/.github/PULL_REQUEST_TEMPLATE.md
deleted file mode 100644
index 4bd618567b..0000000000
--- a/deps/rabbitmq_federation_management/.github/PULL_REQUEST_TEMPLATE.md
+++ /dev/null
@@ -1,43 +0,0 @@
-## Proposed Changes
-
-Please describe the big picture of your changes here to communicate to the
-RabbitMQ team why we should accept this pull request. If it fixes a bug or
-resolves a feature request, be sure to link to that issue.
-
-A pull request that doesn't explain **why** the change was made has a much
-lower chance of being accepted.
-
-If English isn't your first language, don't worry about it and try to
-communicate the problem you are trying to solve to the best of your abilities.
-As long as we can understand the intent, it's all good.
-
-## Types of Changes
-
-What types of changes does your code introduce to this project?
-_Put an `x` in the boxes that apply_
-
-- [ ] Bugfix (non-breaking change which fixes issue #NNNN)
-- [ ] New feature (non-breaking change which adds functionality)
-- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
-- [ ] Documentation (correction or otherwise)
-- [ ] Cosmetics (whitespace, appearance)
-
-## Checklist
-
-_Put an `x` in the boxes that apply. You can also fill these out after creating
-the PR. If you're unsure about any of them, don't hesitate to ask on the
-mailing list. We're here to help! This is simply a reminder of what we are
-going to look for before merging your code._
-
-- [ ] I have read the `CONTRIBUTING.md` document
-- [ ] I have signed the CA (see https://cla.pivotal.io/sign/rabbitmq)
-- [ ] All tests pass locally with my changes
-- [ ] I have added tests that prove my fix is effective or that my feature works
-- [ ] I have added necessary documentation (if appropriate)
-- [ ] Any dependent changes have been merged and published in related repositories
-
-## Further Comments
-
-If this is a relatively large or complex change, kick off the discussion by
-explaining why you chose the solution you did and what alternatives you
-considered, etc.
diff --git a/deps/rabbitmq_management/.github/ISSUE_TEMPLATE.md b/deps/rabbitmq_management/.github/ISSUE_TEMPLATE.md
deleted file mode 100644
index eb7a9f8451..0000000000
--- a/deps/rabbitmq_management/.github/ISSUE_TEMPLATE.md
+++ /dev/null
@@ -1,43 +0,0 @@
-Thank you for using RabbitMQ and for taking the time to report an
-issue.
-
-## Does This Belong to GitHub or RabbitMQ Mailing List?
-
-*Important:* please first read the `CONTRIBUTING.md` document in the
-root of this repository. It will help you determine whether your
-feedback should be directed to the RabbitMQ mailing list [1] instead.
-
-## Please Help Maintainers and Contributors Help You
-
-In order for the RabbitMQ team to investigate your issue, please provide
-**as much as possible** of the following details:
-
-* RabbitMQ version
-* Erlang version
-* RabbitMQ server and client application log files
-* A runnable code sample, terminal transcript or detailed set of
- instructions that can be used to reproduce the issue
-* RabbitMQ plugin information via `rabbitmq-plugins list`
-* Client library version (for all libraries used)
-* Operating system, version, and patch level
-
-Running the `rabbitmq-collect-env` [2] script can provide most of the
-information needed. Please make the archive available via a third-party
-service and note that **the script does not attempt to scrub any
-sensitive data**.
-
-If your issue involves RabbitMQ management UI or HTTP API, please also provide
-the following:
-
- * Browser and its version
- * What management UI page was used (if applicable)
- * How the HTTP API requests performed can be reproduced with `curl`
- * Operating system on which you are running your browser, and its version
- * Errors reported in the JavaScript console (if any)
-
-This information **greatly speeds up issue investigation** (or makes it
-possible to investigate it at all). Please help project maintainers and
-contributors to help you by providing it!
-
-1. https://groups.google.com/forum/#!forum/rabbitmq-users
-2. https://github.com/rabbitmq/support-tools/blob/master/scripts/rabbitmq-collect-env
diff --git a/deps/rabbitmq_management/.github/PULL_REQUEST_TEMPLATE.md b/deps/rabbitmq_management/.github/PULL_REQUEST_TEMPLATE.md
deleted file mode 100644
index a0f8ddad8f..0000000000
--- a/deps/rabbitmq_management/.github/PULL_REQUEST_TEMPLATE.md
+++ /dev/null
@@ -1,43 +0,0 @@
-## Proposed Changes
-
-Please describe the big picture of your changes here to communicate to the RabbitMQ team
-why we should accept this pull request. If it fixes a bug or resolves a feature request,
-be sure to link to that issue.
-
-A pull request that doesn't explain **why** the change was made has a much lower chance of
-being accepted.
-
-If English isn't your first language, don't worry about it and try to communicate the problem
-you are trying to solve to the best of your abilities.
-As long as we can understand the intent, it's all good.
-
-## Types of Changes
-
-What types of changes does your code introduce to this project?
-_Put an `x` in the boxes that apply_
-
-- [ ] Bugfix (non-breaking change which fixes issue #NNNN)
-- [ ] New feature (non-breaking change which adds functionality)
-- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
-- [ ] Documentation (correction or otherwise)
-- [ ] Cosmetics (whitespace, appearance)
-
-## Checklist
-
-_Put an `x` in the boxes that apply. You can also fill these out after
-creating the PR. If you're unsure about any of them, don't hesitate to
-ask on the mailing list. We're here to help! This is simply a reminder
-of what we are going to look for before merging your code._
-
-- [ ] I have read the `CONTRIBUTING.md` document
-- [ ] I have signed the CA (see https://cla.pivotal.io/sign/rabbitmq)
-- [ ] All tests pass locally with my changes
-- [ ] I have added tests that prove my fix is effective or that my feature works
-- [ ] I have added necessary documentation (if appropriate)
-- [ ] Any dependent changes have been merged and published in related repositories
-
-## Further Comments
-
-If this is a relatively large or complex change, kick off the
-discussion by explaining why you chose the solution you did and what
-alternatives you considered, etc.
diff --git a/deps/rabbitmq_management/.github/workflows/test-erlang-otp-22.3.yaml b/deps/rabbitmq_management/.github/workflows/test-erlang-otp-22.3.yaml
deleted file mode 100644
index fc5cc04c9b..0000000000
--- a/deps/rabbitmq_management/.github/workflows/test-erlang-otp-22.3.yaml
+++ /dev/null
@@ -1,1060 +0,0 @@
-# vim:sw=2:et:
-# https://help.github.com/en/actions/configuring-and-managing-workflows/configuring-a-workflow
-name: "Test - Erlang 22.3"
-on:
- push:
- repository_dispatch:
- types:
- - new-commit-to-dep-release-branch
-jobs:
- # vim:sw=2:et:
- checks:
- name: checks
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 22.3
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: CHECK RABBITMQ COMPONENTS
- # https://github.community/t5/GitHub-Actions/How-can-I-set-an-expression-as-an-environment-variable-at/m-p/41804/highlight/true#M4751
- id: ref
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- echo "::set-output name=branch_or_tag_name::$branch_or_tag_name"
- make check-rabbitmq-components.mk base_rmq_ref=master current_rmq_ref=$branch_or_tag_name
- - name: RESOLVE & COMPILE DEPS
- run: |
- make deps test-deps base_rmq_ref=master current_rmq_ref=${{ steps.ref.outputs.branch_or_tag_name }}
- echo "Capture versions of the RabbitMQ components used in this workflow..."
- make rabbitmq_management-rabbitmq-deps.mk
- echo "Remove directories not used in the subsequent jobs..."
- rm -fr deps/*/{.git,test}
- - name: UPLOAD DEPS VERSIONS
- uses: actions/upload-artifact@v2
- with:
- name: rabbitmq_management-rabbitmq-deps.mk
- path: rabbitmq_management-rabbitmq-deps.mk
- - name: CREATE DEPS ARCHIVE
- run: |
- tar cf - deps | xz > deps.tar.xz
- - name: UPLOAD DEPS ARCHIVE
- uses: actions/upload-artifact@v2
- with:
- name: deps.tar.xz
- path: deps.tar.xz
- - name: CHECK CROSS REFERENCES
- run: |
- make xref base_rmq_ref=master current_rmq_ref=${{ steps.ref.outputs.branch_or_tag_name }}
- - name: COMPILE FOR TEST
- run: |
- make test-build base_rmq_ref=master current_rmq_ref=${{ steps.ref.outputs.branch_or_tag_name }}
- - name: CACHE SECONDARY UMBRELLAS
- if: success() && 'oldest' == 'oldest'
- uses: actions/cache@v1
- with:
- path: umbrellas
- key: secondary-umbrellas-v3.7.28-v3.8.9-erlang-22.3-rev4
- - name: PREPARE SECONDARY UMBRELLA COPIES
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- for version in v3.7.28 v3.8.9; do
- umbrella="umbrellas/$version"
- if ! test -d "$umbrella" ||
- ! make -C "$umbrella/deps/rabbitmq_management" test-dist; then
- rm -rf "$umbrella"
-
- # Fetch the master Umbrella; the final umbrellas are created from
- # the master copy.
- if ! test -d umbrellas/master; then
- git config --global advice.detachedHead false
- git clone \
- https://github.com/rabbitmq/rabbitmq-public-umbrella.git \
- umbrellas/master
- make -C umbrellas/master co # To get RabbitMQ components.
- fi
-
- # We copy the master Umbrella and checkout the appropriate tag.
- cp -a umbrellas/master "$umbrella"
- git -C "$umbrella" checkout "master"
- make -C "$umbrella" up BRANCH="$version"
- # To remove third-party deps which were checked out when the
- # projects were on the `master` branch. Thus, possibly not the
- # version pinning we expect. We update the Umbrella one last time
- # to fetch the correct third-party deps.
- make -C "$umbrella" clean-3rd-party-repos
- make -C "$umbrella" up
- make -C "$umbrella/deps/rabbitmq_management" test-dist
- rm -rf "$umbrella"/deps/rabbitmq_website
- rm -rf "$umbrella"/deps/rabbitmq_prometheus/docker
- rm -rf "$umbrella"/deps/*/{.git,test} "$umbrella"/.git
- fi
- done
- rm -fr umbrellas/master
- - name: CREATE SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- tar cf - umbrellas | xz > secondary-umbrellas.tar.xz
- - name: UPLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- uses: actions/upload-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- path: secondary-umbrellas.tar.xz
- # vim:sw=2:et:
- eunit:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: eunit
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 22.3
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- rm deps.tar.xz
- - name: RUN TESTS
- run: |
- ! test -d ebin || touch ebin/*
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- make eunit \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1
- # vim:sw=2:et:
- ct-cache:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-cache
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 22.3
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- make ct-cache \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-cache \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS=
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-cache-logs
- path: "*-ct-logs-*.tar.xz"
- # vim:sw=2:et:
- ct-clustering:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-clustering
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 22.3
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- make ct-clustering \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-clustering \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS=
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-clustering-logs
- path: "*-ct-logs-*.tar.xz"
- # vim:sw=2:et:
- ct-clustering_prop:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-clustering_prop
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 22.3
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- make ct-clustering_prop \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-clustering_prop \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS=
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-clustering_prop-logs
- path: "*-ct-logs-*.tar.xz"
- # vim:sw=2:et:
- ct-config_schema:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-config_schema
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 22.3
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- make ct-config_schema \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-config_schema \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS=
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-config_schema-logs
- path: "*-ct-logs-*.tar.xz"
- # vim:sw=2:et:
- ct-listener_config:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-listener_config
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 22.3
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- make ct-listener_config \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-listener_config \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS=
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-listener_config-logs
- path: "*-ct-logs-*.tar.xz"
- # vim:sw=2:et:
- ct-rabbit_mgmt_http:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-rabbit_mgmt_http
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 22.3
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- make ct-rabbit_mgmt_http \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-rabbit_mgmt_http \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS=
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-rabbit_mgmt_http-logs
- path: "*-ct-logs-*.tar.xz"
- # vim:sw=2:et:
- ct-rabbit_mgmt_only_http:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-rabbit_mgmt_only_http
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 22.3
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- make ct-rabbit_mgmt_only_http \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-rabbit_mgmt_only_http \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS=
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-rabbit_mgmt_only_http-logs
- path: "*-ct-logs-*.tar.xz"
- # vim:sw=2:et:
- ct-rabbit_mgmt_rabbitmqadmin:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-rabbit_mgmt_rabbitmqadmin
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 22.3
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- make ct-rabbit_mgmt_rabbitmqadmin \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-rabbit_mgmt_rabbitmqadmin \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS=
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-rabbit_mgmt_rabbitmqadmin-logs
- path: "*-ct-logs-*.tar.xz"
- # vim:sw=2:et:
- ct-rabbit_mgmt_stats:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-rabbit_mgmt_stats
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 22.3
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- make ct-rabbit_mgmt_stats \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-rabbit_mgmt_stats \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS=
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-rabbit_mgmt_stats-logs
- path: "*-ct-logs-*.tar.xz"
- # vim:sw=2:et:
- ct-rabbit_mgmt_test_db:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-rabbit_mgmt_test_db
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 22.3
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- make ct-rabbit_mgmt_test_db \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-rabbit_mgmt_test_db \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS=
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-rabbit_mgmt_test_db-logs
- path: "*-ct-logs-*.tar.xz"
- # vim:sw=2:et:
- ct-rabbit_mgmt_test_unit:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-rabbit_mgmt_test_unit
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 22.3
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- make ct-rabbit_mgmt_test_unit \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-rabbit_mgmt_test_unit \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS=
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-rabbit_mgmt_test_unit-logs
- path: "*-ct-logs-*.tar.xz"
- # vim:sw=2:et:
- ct-stats:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-stats
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 22.3
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- make ct-stats \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'oldest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-stats \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS=
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-stats-logs
- path: "*-ct-logs-*.tar.xz"
- # vim:sw=2:et:
- capture-tested-deps-versions:
- needs:
- - eunit
- - ct-cache
- - ct-clustering
- - ct-clustering_prop
- - ct-config_schema
- - ct-listener_config
- - ct-rabbit_mgmt_http
- - ct-rabbit_mgmt_only_http
- - ct-rabbit_mgmt_rabbitmqadmin
- - ct-rabbit_mgmt_stats
- - ct-rabbit_mgmt_test_db
- - ct-rabbit_mgmt_test_unit
- - ct-stats
- runs-on: ubuntu-18.04
- steps:
- - if: github.ref == 'refs/heads/master'
- uses: actions/download-artifact@v2
- with:
- name: rabbitmq_management-rabbitmq-deps.mk
- - name: FORMAT GIT REF
- if: github.ref == 'refs/heads/master'
- # https://github.community/t5/GitHub-Actions/How-can-I-set-an-expression-as-an-environment-variable-at/m-p/41804/highlight/true#M4751
- id: ref
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- echo "::set-output name=branch_or_tag_name::$branch_or_tag_name"
- - name: UPLOAD TO S3
- if: github.ref == 'refs/heads/master'
- # https://github.com/marketplace/actions/s3-file-upload
- uses: zdurham/s3-upload-github-action@master
- env:
- AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
- AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
- AWS_REGION: ${{ secrets.AWS_REGION }}
- FILE: rabbitmq_management-rabbitmq-deps.mk
- S3_BUCKET: ${{ secrets.AWS_S3_BUCKET }}
- S3_KEY: rabbitmq-management/${{ steps.ref.outputs.branch_or_tag_name }}/${{ github.run_id }}/otp-22.3/rabbitmq_management-rabbitmq-deps.mk
diff --git a/deps/rabbitmq_management/.github/workflows/test-erlang-otp-23.0.yaml b/deps/rabbitmq_management/.github/workflows/test-erlang-otp-23.0.yaml
deleted file mode 100644
index 5c652891ee..0000000000
--- a/deps/rabbitmq_management/.github/workflows/test-erlang-otp-23.0.yaml
+++ /dev/null
@@ -1,1060 +0,0 @@
-# vim:sw=2:et:
-# https://help.github.com/en/actions/configuring-and-managing-workflows/configuring-a-workflow
-name: "Test - Erlang 23.0"
-on:
- push:
- repository_dispatch:
- types:
- - new-commit-to-dep-release-branch
-jobs:
- # vim:sw=2:et:
- checks:
- name: checks
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 23.0
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: CHECK RABBITMQ COMPONENTS
- # https://github.community/t5/GitHub-Actions/How-can-I-set-an-expression-as-an-environment-variable-at/m-p/41804/highlight/true#M4751
- id: ref
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- echo "::set-output name=branch_or_tag_name::$branch_or_tag_name"
- make check-rabbitmq-components.mk base_rmq_ref=master current_rmq_ref=$branch_or_tag_name
- - name: RESOLVE & COMPILE DEPS
- run: |
- make deps test-deps base_rmq_ref=master current_rmq_ref=${{ steps.ref.outputs.branch_or_tag_name }}
- echo "Capture versions of the RabbitMQ components used in this workflow..."
- make rabbitmq_management-rabbitmq-deps.mk
- echo "Remove directories not used in the subsequent jobs..."
- rm -fr deps/*/{.git,test}
- - name: UPLOAD DEPS VERSIONS
- uses: actions/upload-artifact@v2
- with:
- name: rabbitmq_management-rabbitmq-deps.mk
- path: rabbitmq_management-rabbitmq-deps.mk
- - name: CREATE DEPS ARCHIVE
- run: |
- tar cf - deps | xz > deps.tar.xz
- - name: UPLOAD DEPS ARCHIVE
- uses: actions/upload-artifact@v2
- with:
- name: deps.tar.xz
- path: deps.tar.xz
- - name: CHECK CROSS REFERENCES
- run: |
- make xref base_rmq_ref=master current_rmq_ref=${{ steps.ref.outputs.branch_or_tag_name }}
- - name: COMPILE FOR TEST
- run: |
- make test-build base_rmq_ref=master current_rmq_ref=${{ steps.ref.outputs.branch_or_tag_name }}
- - name: CACHE SECONDARY UMBRELLAS
- if: success() && 'latest' == 'oldest'
- uses: actions/cache@v1
- with:
- path: umbrellas
- key: secondary-umbrellas-v3.7.28-v3.8.9-erlang-23.0-rev4
- - name: PREPARE SECONDARY UMBRELLA COPIES
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- for version in v3.7.28 v3.8.9; do
- umbrella="umbrellas/$version"
- if ! test -d "$umbrella" ||
- ! make -C "$umbrella/deps/rabbitmq_management" test-dist; then
- rm -rf "$umbrella"
-
- # Fetch the master Umbrella; the final umbrellas are created from
- # the master copy.
- if ! test -d umbrellas/master; then
- git config --global advice.detachedHead false
- git clone \
- https://github.com/rabbitmq/rabbitmq-public-umbrella.git \
- umbrellas/master
- make -C umbrellas/master co # To get RabbitMQ components.
- fi
-
- # We copy the master Umbrella and checkout the appropriate tag.
- cp -a umbrellas/master "$umbrella"
- git -C "$umbrella" checkout "master"
- make -C "$umbrella" up BRANCH="$version"
- # To remove third-party deps which were checked out when the
- # projects were on the `master` branch. Thus, possibly not the
- # version pinning we expect. We update the Umbrella one last time
- # to fetch the correct third-party deps.
- make -C "$umbrella" clean-3rd-party-repos
- make -C "$umbrella" up
- make -C "$umbrella/deps/rabbitmq_management" test-dist
- rm -rf "$umbrella"/deps/rabbitmq_website
- rm -rf "$umbrella"/deps/rabbitmq_prometheus/docker
- rm -rf "$umbrella"/deps/*/{.git,test} "$umbrella"/.git
- fi
- done
- rm -fr umbrellas/master
- - name: CREATE SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- tar cf - umbrellas | xz > secondary-umbrellas.tar.xz
- - name: UPLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- uses: actions/upload-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- path: secondary-umbrellas.tar.xz
- # vim:sw=2:et:
- eunit:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: eunit
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 23.0
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- rm deps.tar.xz
- - name: RUN TESTS
- run: |
- ! test -d ebin || touch ebin/*
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- make eunit \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1
- # vim:sw=2:et:
- ct-cache:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-cache
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 23.0
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- make ct-cache \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-cache \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS=
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-cache-logs
- path: "*-ct-logs-*.tar.xz"
- # vim:sw=2:et:
- ct-clustering:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-clustering
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 23.0
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- make ct-clustering \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-clustering \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS=
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-clustering-logs
- path: "*-ct-logs-*.tar.xz"
- # vim:sw=2:et:
- ct-clustering_prop:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-clustering_prop
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 23.0
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- make ct-clustering_prop \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-clustering_prop \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS=
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-clustering_prop-logs
- path: "*-ct-logs-*.tar.xz"
- # vim:sw=2:et:
- ct-config_schema:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-config_schema
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 23.0
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- make ct-config_schema \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-config_schema \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS=
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-config_schema-logs
- path: "*-ct-logs-*.tar.xz"
- # vim:sw=2:et:
- ct-listener_config:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-listener_config
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 23.0
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- make ct-listener_config \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-listener_config \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS=
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-listener_config-logs
- path: "*-ct-logs-*.tar.xz"
- # vim:sw=2:et:
- ct-rabbit_mgmt_http:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-rabbit_mgmt_http
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 23.0
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- make ct-rabbit_mgmt_http \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-rabbit_mgmt_http \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS=
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-rabbit_mgmt_http-logs
- path: "*-ct-logs-*.tar.xz"
- # vim:sw=2:et:
- ct-rabbit_mgmt_only_http:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-rabbit_mgmt_only_http
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 23.0
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- make ct-rabbit_mgmt_only_http \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-rabbit_mgmt_only_http \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS=
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-rabbit_mgmt_only_http-logs
- path: "*-ct-logs-*.tar.xz"
- # vim:sw=2:et:
- ct-rabbit_mgmt_rabbitmqadmin:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-rabbit_mgmt_rabbitmqadmin
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 23.0
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- make ct-rabbit_mgmt_rabbitmqadmin \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-rabbit_mgmt_rabbitmqadmin \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS=
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-rabbit_mgmt_rabbitmqadmin-logs
- path: "*-ct-logs-*.tar.xz"
- # vim:sw=2:et:
- ct-rabbit_mgmt_stats:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-rabbit_mgmt_stats
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 23.0
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- make ct-rabbit_mgmt_stats \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-rabbit_mgmt_stats \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS=
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-rabbit_mgmt_stats-logs
- path: "*-ct-logs-*.tar.xz"
- # vim:sw=2:et:
- ct-rabbit_mgmt_test_db:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-rabbit_mgmt_test_db
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 23.0
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- make ct-rabbit_mgmt_test_db \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-rabbit_mgmt_test_db \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS=
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-rabbit_mgmt_test_db-logs
- path: "*-ct-logs-*.tar.xz"
- # vim:sw=2:et:
- ct-rabbit_mgmt_test_unit:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-rabbit_mgmt_test_unit
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 23.0
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- make ct-rabbit_mgmt_test_unit \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-rabbit_mgmt_test_unit \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS=
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-rabbit_mgmt_test_unit-logs
- path: "*-ct-logs-*.tar.xz"
- # vim:sw=2:et:
- ct-stats:
- needs: [checks]
- # https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#contexts
- name: ct-stats
- runs-on: ubuntu-18.04
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: 23.0
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: 1.10.4
- - name: DOWNLOAD DEPS ARCHIVE
- uses: actions/download-artifact@v2
- with:
- name: deps.tar.xz
- - name: UNPACK DEPS ARCHIVE
- run: |
- tar Jxf deps.tar.xz
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- ! test -d ebin || touch ebin/*
- make ct-stats \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1
- - name: DOWNLOAD SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- uses: actions/download-artifact@v2
- with:
- name: secondary-umbrellas.tar.xz
- - name: UNPACK SECONDARY UMBRELLAS ARCHIVE
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- tar Jxf secondary-umbrellas.tar.xz
- rm secondary-umbrellas.tar.xz
- - name: RUN TESTS [mixed-versions]
- if: success() && 'latest' == 'oldest'
- run: |
- set -ex
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- for umbrella in umbrellas/*; do
- test -d "$umbrella"
- printf '\n\033[1;32mMixing clusters with RabbitMQ %s\033[0m' \
- $(basename "$umbrella")
- make distclean-ct ct-stats \
- base_rmq_ref=master \
- current_rmq_ref=$branch_or_tag_name \
- FULL= \
- FAIL_FAST=1 \
- SKIP_AS_ERROR=1 \
- SECONDARY_UMBRELLA=$PWD/$umbrella \
- RABBITMQ_FEATURE_FLAGS=
- done
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-stats-logs
- path: "*-ct-logs-*.tar.xz"
- # vim:sw=2:et:
- capture-tested-deps-versions:
- needs:
- - eunit
- - ct-cache
- - ct-clustering
- - ct-clustering_prop
- - ct-config_schema
- - ct-listener_config
- - ct-rabbit_mgmt_http
- - ct-rabbit_mgmt_only_http
- - ct-rabbit_mgmt_rabbitmqadmin
- - ct-rabbit_mgmt_stats
- - ct-rabbit_mgmt_test_db
- - ct-rabbit_mgmt_test_unit
- - ct-stats
- runs-on: ubuntu-18.04
- steps:
- - if: github.ref == 'refs/heads/master'
- uses: actions/download-artifact@v2
- with:
- name: rabbitmq_management-rabbitmq-deps.mk
- - name: FORMAT GIT REF
- if: github.ref == 'refs/heads/master'
- # https://github.community/t5/GitHub-Actions/How-can-I-set-an-expression-as-an-environment-variable-at/m-p/41804/highlight/true#M4751
- id: ref
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- echo "::set-output name=branch_or_tag_name::$branch_or_tag_name"
- - name: UPLOAD TO S3
- if: github.ref == 'refs/heads/master'
- # https://github.com/marketplace/actions/s3-file-upload
- uses: zdurham/s3-upload-github-action@master
- env:
- AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
- AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
- AWS_REGION: ${{ secrets.AWS_REGION }}
- FILE: rabbitmq_management-rabbitmq-deps.mk
- S3_BUCKET: ${{ secrets.AWS_S3_BUCKET }}
- S3_KEY: rabbitmq-management/${{ steps.ref.outputs.branch_or_tag_name }}/${{ github.run_id }}/otp-23.0/rabbitmq_management-rabbitmq-deps.mk
diff --git a/deps/rabbitmq_management/.github/workflows/test-jobs/10-dialyzer.yaml b/deps/rabbitmq_management/.github/workflows/test-jobs/10-dialyzer.yaml
deleted file mode 100644
index edffbbbd61..0000000000
--- a/deps/rabbitmq_management/.github/workflows/test-jobs/10-dialyzer.yaml
+++ /dev/null
@@ -1,7 +0,0 @@
-dialyzer:
- name: No-op Dialyzer
- runs-on: ubuntu-latest
- steps:
- - name: no-op
- run: |
- true
diff --git a/deps/rabbitmq_mqtt/.github/ISSUE_TEMPLATE.md b/deps/rabbitmq_mqtt/.github/ISSUE_TEMPLATE.md
deleted file mode 100644
index 70b54cd818..0000000000
--- a/deps/rabbitmq_mqtt/.github/ISSUE_TEMPLATE.md
+++ /dev/null
@@ -1,43 +0,0 @@
-Thank you for using RabbitMQ and for taking the time to report an
-issue.
-
-## Does This Belong to GitHub or RabbitMQ Mailing List?
-
-*Important:* please first read the `CONTRIBUTING.md` document in the
-root of this repository. It will help you determine whether your
-feedback should be directed to the RabbitMQ mailing list [1] instead.
-
-## Please Help Maintainers and Contributors Help You
-
-In order for the RabbitMQ team to investigate your issue, please provide
-**as much as possible** of the following details:
-
-* RabbitMQ version
-* Erlang version
-* RabbitMQ server and client application log files
-* A runnable code sample, terminal transcript or detailed set of
- instructions that can be used to reproduce the issue
-* RabbitMQ plugin information via `rabbitmq-plugins list`
-* Client library version (for all libraries used)
-* Operating system, version, and patch level
-
-Running the `rabbitmq-collect-env` [2] script can provide most of the
-information needed. Please make the archive available via a third-party
-service and note that **the script does not attempt to scrub any
-sensitive data**.
-
-If your issue involves RabbitMQ management UI or HTTP API, please also provide
-the following:
-
- * Browser and its version
- * What management UI page was used (if applicable)
- * How the HTTP API requests performed can be reproduced with `curl`
- * Operating system on which you are running your browser, and its version
- * Errors reported in the JavaScript console (if any)
-
-This information **greatly speeds up issue investigation** (or makes it
-possible to investigate it at all). Please help project maintainers and
-contributors to help you by providing it!
-
-1. https://groups.google.com/forum/#!forum/rabbitmq-users
-2. https://github.com/rabbitmq/support-tools/blob/master/scripts/rabbitmq-collect-env
diff --git a/deps/rabbitmq_mqtt/.github/PULL_REQUEST_TEMPLATE.md b/deps/rabbitmq_mqtt/.github/PULL_REQUEST_TEMPLATE.md
deleted file mode 100644
index 4bd618567b..0000000000
--- a/deps/rabbitmq_mqtt/.github/PULL_REQUEST_TEMPLATE.md
+++ /dev/null
@@ -1,43 +0,0 @@
-## Proposed Changes
-
-Please describe the big picture of your changes here to communicate to the
-RabbitMQ team why we should accept this pull request. If it fixes a bug or
-resolves a feature request, be sure to link to that issue.
-
-A pull request that doesn't explain **why** the change was made has a much
-lower chance of being accepted.
-
-If English isn't your first language, don't worry about it and try to
-communicate the problem you are trying to solve to the best of your abilities.
-As long as we can understand the intent, it's all good.
-
-## Types of Changes
-
-What types of changes does your code introduce to this project?
-_Put an `x` in the boxes that apply_
-
-- [ ] Bugfix (non-breaking change which fixes issue #NNNN)
-- [ ] New feature (non-breaking change which adds functionality)
-- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
-- [ ] Documentation (correction or otherwise)
-- [ ] Cosmetics (whitespace, appearance)
-
-## Checklist
-
-_Put an `x` in the boxes that apply. You can also fill these out after creating
-the PR. If you're unsure about any of them, don't hesitate to ask on the
-mailing list. We're here to help! This is simply a reminder of what we are
-going to look for before merging your code._
-
-- [ ] I have read the `CONTRIBUTING.md` document
-- [ ] I have signed the CA (see https://cla.pivotal.io/sign/rabbitmq)
-- [ ] All tests pass locally with my changes
-- [ ] I have added tests that prove my fix is effective or that my feature works
-- [ ] I have added necessary documentation (if appropriate)
-- [ ] Any dependent changes have been merged and published in related repositories
-
-## Further Comments
-
-If this is a relatively large or complex change, kick off the discussion by
-explaining why you chose the solution you did and what alternatives you
-considered, etc.
diff --git a/deps/rabbitmq_peer_discovery_aws/.github/ISSUE_TEMPLATE.md b/deps/rabbitmq_peer_discovery_aws/.github/ISSUE_TEMPLATE.md
deleted file mode 100644
index bce561261a..0000000000
--- a/deps/rabbitmq_peer_discovery_aws/.github/ISSUE_TEMPLATE.md
+++ /dev/null
@@ -1,21 +0,0 @@
-Thank you for using RabbitMQ.
-
-**STOP NOW AND READ THIS** BEFORE OPENING A NEW ISSUE ON GITHUB
-
-Unless you are CERTAIN you have found a reproducible problem in RabbitMQ or
-have a **specific, actionable** suggestion for our team, you must first ask
-your question or discuss your suspected issue on the mailing list:
-
-https://groups.google.com/forum/#!forum/rabbitmq-users
-
-Team RabbitMQ does not use GitHub issues for discussions, investigations, root
-cause analysis and so on.
-
-Please take the time to read the CONTRIBUTING.md document for instructions on
-how to effectively ask a question or report a suspected issue:
-
-https://github.com/rabbitmq/rabbitmq-server/blob/master/CONTRIBUTING.md#github-issues
-
-Following these rules **will save time** for both you and RabbitMQ's maintainers.
-
-Thank you.
diff --git a/deps/rabbitmq_peer_discovery_aws/.github/PULL_REQUEST_TEMPLATE.md b/deps/rabbitmq_peer_discovery_aws/.github/PULL_REQUEST_TEMPLATE.md
deleted file mode 100644
index 230febf8a2..0000000000
--- a/deps/rabbitmq_peer_discovery_aws/.github/PULL_REQUEST_TEMPLATE.md
+++ /dev/null
@@ -1,43 +0,0 @@
-## Proposed Changes
-
-Please describe the big picture of your changes here to communicate to the
-RabbitMQ team why we should accept this pull request. If it fixes a bug or
-resolves a feature request, be sure to link to that issue.
-
-A pull request that doesn't explain **why** the change was made has a much
-lower chance of being accepted.
-
-If English isn't your first language, don't worry about it and try to
-communicate the problem you are trying to solve to the best of your abilities.
-As long as we can understand the intent, it's all good.
-
-## Types of Changes
-
-What types of changes does your code introduce to this project?
-_Put an `x` in the boxes that apply_
-
-- [ ] Bug fix (non-breaking change which fixes issue #NNNN)
-- [ ] New feature (non-breaking change which adds functionality)
-- [ ] Breaking change (fix or feature that would cause an observable behavior change in existing systems)
-- [ ] Documentation improvements (corrections, new content, etc)
-- [ ] Cosmetic change (whitespace, formatting, etc)
-
-## Checklist
-
-_Put an `x` in the boxes that apply. You can also fill these out after creating
-the PR. If you're unsure about any of them, don't hesitate to ask on the
-mailing list. We're here to help! This is simply a reminder of what we are
-going to look for before merging your code._
-
-- [ ] I have read the `CONTRIBUTING.md` document
-- [ ] I have signed the CA (see https://cla.pivotal.io/sign/rabbitmq)
-- [ ] All tests pass locally with my changes
-- [ ] I have added tests that prove my fix is effective or that my feature works
-- [ ] I have added necessary documentation (if appropriate)
-- [ ] Any dependent changes have been merged and published in related repositories
-
-## Further Comments
-
-If this is a relatively large or complex change, kick off the discussion by
-explaining why you chose the solution you did and what alternatives you
-considered, etc.
diff --git a/deps/rabbitmq_peer_discovery_common/.github/ISSUE_TEMPLATE.md b/deps/rabbitmq_peer_discovery_common/.github/ISSUE_TEMPLATE.md
deleted file mode 100644
index bce561261a..0000000000
--- a/deps/rabbitmq_peer_discovery_common/.github/ISSUE_TEMPLATE.md
+++ /dev/null
@@ -1,21 +0,0 @@
-Thank you for using RabbitMQ.
-
-**STOP NOW AND READ THIS** BEFORE OPENING A NEW ISSUE ON GITHUB
-
-Unless you are CERTAIN you have found a reproducible problem in RabbitMQ or
-have a **specific, actionable** suggestion for our team, you must first ask
-your question or discuss your suspected issue on the mailing list:
-
-https://groups.google.com/forum/#!forum/rabbitmq-users
-
-Team RabbitMQ does not use GitHub issues for discussions, investigations, root
-cause analysis and so on.
-
-Please take the time to read the CONTRIBUTING.md document for instructions on
-how to effectively ask a question or report a suspected issue:
-
-https://github.com/rabbitmq/rabbitmq-server/blob/master/CONTRIBUTING.md#github-issues
-
-Following these rules **will save time** for both you and RabbitMQ's maintainers.
-
-Thank you.
diff --git a/deps/rabbitmq_peer_discovery_common/.github/PULL_REQUEST_TEMPLATE.md b/deps/rabbitmq_peer_discovery_common/.github/PULL_REQUEST_TEMPLATE.md
deleted file mode 100644
index 230febf8a2..0000000000
--- a/deps/rabbitmq_peer_discovery_common/.github/PULL_REQUEST_TEMPLATE.md
+++ /dev/null
@@ -1,43 +0,0 @@
-## Proposed Changes
-
-Please describe the big picture of your changes here to communicate to the
-RabbitMQ team why we should accept this pull request. If it fixes a bug or
-resolves a feature request, be sure to link to that issue.
-
-A pull request that doesn't explain **why** the change was made has a much
-lower chance of being accepted.
-
-If English isn't your first language, don't worry about it and try to
-communicate the problem you are trying to solve to the best of your abilities.
-As long as we can understand the intent, it's all good.
-
-## Types of Changes
-
-What types of changes does your code introduce to this project?
-_Put an `x` in the boxes that apply_
-
-- [ ] Bug fix (non-breaking change which fixes issue #NNNN)
-- [ ] New feature (non-breaking change which adds functionality)
-- [ ] Breaking change (fix or feature that would cause an observable behavior change in existing systems)
-- [ ] Documentation improvements (corrections, new content, etc)
-- [ ] Cosmetic change (whitespace, formatting, etc)
-
-## Checklist
-
-_Put an `x` in the boxes that apply. You can also fill these out after creating
-the PR. If you're unsure about any of them, don't hesitate to ask on the
-mailing list. We're here to help! This is simply a reminder of what we are
-going to look for before merging your code._
-
-- [ ] I have read the `CONTRIBUTING.md` document
-- [ ] I have signed the CA (see https://cla.pivotal.io/sign/rabbitmq)
-- [ ] All tests pass locally with my changes
-- [ ] I have added tests that prove my fix is effective or that my feature works
-- [ ] I have added necessary documentation (if appropriate)
-- [ ] Any dependent changes have been merged and published in related repositories
-
-## Further Comments
-
-If this is a relatively large or complex change, kick off the discussion by
-explaining why you chose the solution you did and what alternatives you
-considered, etc.
diff --git a/deps/rabbitmq_peer_discovery_consul/.github/ISSUE_TEMPLATE.md b/deps/rabbitmq_peer_discovery_consul/.github/ISSUE_TEMPLATE.md
deleted file mode 100644
index bce561261a..0000000000
--- a/deps/rabbitmq_peer_discovery_consul/.github/ISSUE_TEMPLATE.md
+++ /dev/null
@@ -1,21 +0,0 @@
-Thank you for using RabbitMQ.
-
-**STOP NOW AND READ THIS** BEFORE OPENING A NEW ISSUE ON GITHUB
-
-Unless you are CERTAIN you have found a reproducible problem in RabbitMQ or
-have a **specific, actionable** suggestion for our team, you must first ask
-your question or discuss your suspected issue on the mailing list:
-
-https://groups.google.com/forum/#!forum/rabbitmq-users
-
-Team RabbitMQ does not use GitHub issues for discussions, investigations, root
-cause analysis and so on.
-
-Please take the time to read the CONTRIBUTING.md document for instructions on
-how to effectively ask a question or report a suspected issue:
-
-https://github.com/rabbitmq/rabbitmq-server/blob/master/CONTRIBUTING.md#github-issues
-
-Following these rules **will save time** for both you and RabbitMQ's maintainers.
-
-Thank you.
diff --git a/deps/rabbitmq_peer_discovery_consul/.github/PULL_REQUEST_TEMPLATE.md b/deps/rabbitmq_peer_discovery_consul/.github/PULL_REQUEST_TEMPLATE.md
deleted file mode 100644
index 230febf8a2..0000000000
--- a/deps/rabbitmq_peer_discovery_consul/.github/PULL_REQUEST_TEMPLATE.md
+++ /dev/null
@@ -1,43 +0,0 @@
-## Proposed Changes
-
-Please describe the big picture of your changes here to communicate to the
-RabbitMQ team why we should accept this pull request. If it fixes a bug or
-resolves a feature request, be sure to link to that issue.
-
-A pull request that doesn't explain **why** the change was made has a much
-lower chance of being accepted.
-
-If English isn't your first language, don't worry about it and try to
-communicate the problem you are trying to solve to the best of your abilities.
-As long as we can understand the intent, it's all good.
-
-## Types of Changes
-
-What types of changes does your code introduce to this project?
-_Put an `x` in the boxes that apply_
-
-- [ ] Bug fix (non-breaking change which fixes issue #NNNN)
-- [ ] New feature (non-breaking change which adds functionality)
-- [ ] Breaking change (fix or feature that would cause an observable behavior change in existing systems)
-- [ ] Documentation improvements (corrections, new content, etc)
-- [ ] Cosmetic change (whitespace, formatting, etc)
-
-## Checklist
-
-_Put an `x` in the boxes that apply. You can also fill these out after creating
-the PR. If you're unsure about any of them, don't hesitate to ask on the
-mailing list. We're here to help! This is simply a reminder of what we are
-going to look for before merging your code._
-
-- [ ] I have read the `CONTRIBUTING.md` document
-- [ ] I have signed the CA (see https://cla.pivotal.io/sign/rabbitmq)
-- [ ] All tests pass locally with my changes
-- [ ] I have added tests that prove my fix is effective or that my feature works
-- [ ] I have added necessary documentation (if appropriate)
-- [ ] Any dependent changes have been merged and published in related repositories
-
-## Further Comments
-
-If this is a relatively large or complex change, kick off the discussion by
-explaining why you chose the solution you did and what alternatives you
-considered, etc.
diff --git a/deps/rabbitmq_peer_discovery_etcd/.github/ISSUE_TEMPLATE.md b/deps/rabbitmq_peer_discovery_etcd/.github/ISSUE_TEMPLATE.md
deleted file mode 100644
index bce561261a..0000000000
--- a/deps/rabbitmq_peer_discovery_etcd/.github/ISSUE_TEMPLATE.md
+++ /dev/null
@@ -1,21 +0,0 @@
-Thank you for using RabbitMQ.
-
-**STOP NOW AND READ THIS** BEFORE OPENING A NEW ISSUE ON GITHUB
-
-Unless you are CERTAIN you have found a reproducible problem in RabbitMQ or
-have a **specific, actionable** suggestion for our team, you must first ask
-your question or discuss your suspected issue on the mailing list:
-
-https://groups.google.com/forum/#!forum/rabbitmq-users
-
-Team RabbitMQ does not use GitHub issues for discussions, investigations, root
-cause analysis and so on.
-
-Please take the time to read the CONTRIBUTING.md document for instructions on
-how to effectively ask a question or report a suspected issue:
-
-https://github.com/rabbitmq/rabbitmq-server/blob/master/CONTRIBUTING.md#github-issues
-
-Following these rules **will save time** for both you and RabbitMQ's maintainers.
-
-Thank you.
diff --git a/deps/rabbitmq_peer_discovery_etcd/.github/PULL_REQUEST_TEMPLATE.md b/deps/rabbitmq_peer_discovery_etcd/.github/PULL_REQUEST_TEMPLATE.md
deleted file mode 100644
index 230febf8a2..0000000000
--- a/deps/rabbitmq_peer_discovery_etcd/.github/PULL_REQUEST_TEMPLATE.md
+++ /dev/null
@@ -1,43 +0,0 @@
-## Proposed Changes
-
-Please describe the big picture of your changes here to communicate to the
-RabbitMQ team why we should accept this pull request. If it fixes a bug or
-resolves a feature request, be sure to link to that issue.
-
-A pull request that doesn't explain **why** the change was made has a much
-lower chance of being accepted.
-
-If English isn't your first language, don't worry about it and try to
-communicate the problem you are trying to solve to the best of your abilities.
-As long as we can understand the intent, it's all good.
-
-## Types of Changes
-
-What types of changes does your code introduce to this project?
-_Put an `x` in the boxes that apply_
-
-- [ ] Bug fix (non-breaking change which fixes issue #NNNN)
-- [ ] New feature (non-breaking change which adds functionality)
-- [ ] Breaking change (fix or feature that would cause an observable behavior change in existing systems)
-- [ ] Documentation improvements (corrections, new content, etc)
-- [ ] Cosmetic change (whitespace, formatting, etc)
-
-## Checklist
-
-_Put an `x` in the boxes that apply. You can also fill these out after creating
-the PR. If you're unsure about any of them, don't hesitate to ask on the
-mailing list. We're here to help! This is simply a reminder of what we are
-going to look for before merging your code._
-
-- [ ] I have read the `CONTRIBUTING.md` document
-- [ ] I have signed the CA (see https://cla.pivotal.io/sign/rabbitmq)
-- [ ] All tests pass locally with my changes
-- [ ] I have added tests that prove my fix is effective or that my feature works
-- [ ] I have added necessary documentation (if appropriate)
-- [ ] Any dependent changes have been merged and published in related repositories
-
-## Further Comments
-
-If this is a relatively large or complex change, kick off the discussion by
-explaining why you chose the solution you did and what alternatives you
-considered, etc.
diff --git a/deps/rabbitmq_peer_discovery_k8s/.github/ISSUE_TEMPLATE.md b/deps/rabbitmq_peer_discovery_k8s/.github/ISSUE_TEMPLATE.md
deleted file mode 100644
index bce561261a..0000000000
--- a/deps/rabbitmq_peer_discovery_k8s/.github/ISSUE_TEMPLATE.md
+++ /dev/null
@@ -1,21 +0,0 @@
-Thank you for using RabbitMQ.
-
-**STOP NOW AND READ THIS** BEFORE OPENING A NEW ISSUE ON GITHUB
-
-Unless you are CERTAIN you have found a reproducible problem in RabbitMQ or
-have a **specific, actionable** suggestion for our team, you must first ask
-your question or discuss your suspected issue on the mailing list:
-
-https://groups.google.com/forum/#!forum/rabbitmq-users
-
-Team RabbitMQ does not use GitHub issues for discussions, investigations, root
-cause analysis and so on.
-
-Please take the time to read the CONTRIBUTING.md document for instructions on
-how to effectively ask a question or report a suspected issue:
-
-https://github.com/rabbitmq/rabbitmq-server/blob/master/CONTRIBUTING.md#github-issues
-
-Following these rules **will save time** for both you and RabbitMQ's maintainers.
-
-Thank you.
diff --git a/deps/rabbitmq_peer_discovery_k8s/.github/PULL_REQUEST_TEMPLATE.md b/deps/rabbitmq_peer_discovery_k8s/.github/PULL_REQUEST_TEMPLATE.md
deleted file mode 100644
index 230febf8a2..0000000000
--- a/deps/rabbitmq_peer_discovery_k8s/.github/PULL_REQUEST_TEMPLATE.md
+++ /dev/null
@@ -1,43 +0,0 @@
-## Proposed Changes
-
-Please describe the big picture of your changes here to communicate to the
-RabbitMQ team why we should accept this pull request. If it fixes a bug or
-resolves a feature request, be sure to link to that issue.
-
-A pull request that doesn't explain **why** the change was made has a much
-lower chance of being accepted.
-
-If English isn't your first language, don't worry about it and try to
-communicate the problem you are trying to solve to the best of your abilities.
-As long as we can understand the intent, it's all good.
-
-## Types of Changes
-
-What types of changes does your code introduce to this project?
-_Put an `x` in the boxes that apply_
-
-- [ ] Bug fix (non-breaking change which fixes issue #NNNN)
-- [ ] New feature (non-breaking change which adds functionality)
-- [ ] Breaking change (fix or feature that would cause an observable behavior change in existing systems)
-- [ ] Documentation improvements (corrections, new content, etc)
-- [ ] Cosmetic change (whitespace, formatting, etc)
-
-## Checklist
-
-_Put an `x` in the boxes that apply. You can also fill these out after creating
-the PR. If you're unsure about any of them, don't hesitate to ask on the
-mailing list. We're here to help! This is simply a reminder of what we are
-going to look for before merging your code._
-
-- [ ] I have read the `CONTRIBUTING.md` document
-- [ ] I have signed the CA (see https://cla.pivotal.io/sign/rabbitmq)
-- [ ] All tests pass locally with my changes
-- [ ] I have added tests that prove my fix is effective or that my feature works
-- [ ] I have added necessary documentation (if appropriate)
-- [ ] Any dependent changes have been merged and published in related repositories
-
-## Further Comments
-
-If this is a relatively large or complex change, kick off the discussion by
-explaining why you chose the solution you did and what alternatives you
-considered, etc.
diff --git a/deps/rabbitmq_prometheus/.github/CODEOWNERS b/deps/rabbitmq_prometheus/.github/CODEOWNERS
deleted file mode 100644
index d922f92fda..0000000000
--- a/deps/rabbitmq_prometheus/.github/CODEOWNERS
+++ /dev/null
@@ -1,9 +0,0 @@
-.github/workflows @gerhard @dumbbell
-docker/ @gerhard
-priv/schema @michaelklishin
-src/ @dcorbacho @gerhard
-test/ @dcorbacho @gerhard
-Dockerfile @gerhard
-Makefile @gerhard @dumbbell
-rabbitmq-components.mk @dumbbell @gerhard
-rabbitmq-disable-metrics-collector.conf @gerhard
diff --git a/deps/rabbitmq_prometheus/.github/ISSUE_TEMPLATE.md b/deps/rabbitmq_prometheus/.github/ISSUE_TEMPLATE.md
deleted file mode 100644
index bce561261a..0000000000
--- a/deps/rabbitmq_prometheus/.github/ISSUE_TEMPLATE.md
+++ /dev/null
@@ -1,21 +0,0 @@
-Thank you for using RabbitMQ.
-
-**STOP NOW AND READ THIS** BEFORE OPENING A NEW ISSUE ON GITHUB
-
-Unless you are CERTAIN you have found a reproducible problem in RabbitMQ or
-have a **specific, actionable** suggestion for our team, you must first ask
-your question or discuss your suspected issue on the mailing list:
-
-https://groups.google.com/forum/#!forum/rabbitmq-users
-
-Team RabbitMQ does not use GitHub issues for discussions, investigations, root
-cause analysis and so on.
-
-Please take the time to read the CONTRIBUTING.md document for instructions on
-how to effectively ask a question or report a suspected issue:
-
-https://github.com/rabbitmq/rabbitmq-server/blob/master/CONTRIBUTING.md#github-issues
-
-Following these rules **will save time** for both you and RabbitMQ's maintainers.
-
-Thank you.
diff --git a/deps/rabbitmq_prometheus/.github/PULL_REQUEST_TEMPLATE.md b/deps/rabbitmq_prometheus/.github/PULL_REQUEST_TEMPLATE.md
deleted file mode 100644
index 230febf8a2..0000000000
--- a/deps/rabbitmq_prometheus/.github/PULL_REQUEST_TEMPLATE.md
+++ /dev/null
@@ -1,43 +0,0 @@
-## Proposed Changes
-
-Please describe the big picture of your changes here to communicate to the
-RabbitMQ team why we should accept this pull request. If it fixes a bug or
-resolves a feature request, be sure to link to that issue.
-
-A pull request that doesn't explain **why** the change was made has a much
-lower chance of being accepted.
-
-If English isn't your first language, don't worry about it and try to
-communicate the problem you are trying to solve to the best of your abilities.
-As long as we can understand the intent, it's all good.
-
-## Types of Changes
-
-What types of changes does your code introduce to this project?
-_Put an `x` in the boxes that apply_
-
-- [ ] Bug fix (non-breaking change which fixes issue #NNNN)
-- [ ] New feature (non-breaking change which adds functionality)
-- [ ] Breaking change (fix or feature that would cause an observable behavior change in existing systems)
-- [ ] Documentation improvements (corrections, new content, etc)
-- [ ] Cosmetic change (whitespace, formatting, etc)
-
-## Checklist
-
-_Put an `x` in the boxes that apply. You can also fill these out after creating
-the PR. If you're unsure about any of them, don't hesitate to ask on the
-mailing list. We're here to help! This is simply a reminder of what we are
-going to look for before merging your code._
-
-- [ ] I have read the `CONTRIBUTING.md` document
-- [ ] I have signed the CA (see https://cla.pivotal.io/sign/rabbitmq)
-- [ ] All tests pass locally with my changes
-- [ ] I have added tests that prove my fix is effective or that my feature works
-- [ ] I have added necessary documentation (if appropriate)
-- [ ] Any dependent changes have been merged and published in related repositories
-
-## Further Comments
-
-If this is a relatively large or complex change, kick off the discussion by
-explaining why you chose the solution you did and what alternatives you
-considered, etc.
diff --git a/deps/rabbitmq_prometheus/.github/workflows/test.yml b/deps/rabbitmq_prometheus/.github/workflows/test.yml
deleted file mode 100644
index 435b5b094a..0000000000
--- a/deps/rabbitmq_prometheus/.github/workflows/test.yml
+++ /dev/null
@@ -1,36 +0,0 @@
-# https://help.github.com/en/actions/configuring-and-managing-workflows/configuring-a-workflow
-name: Test
-on: push
-jobs:
- test:
- name: OTP v${{ matrix.otp }} & Elixir v${{ matrix.elixir }}
- runs-on: ubuntu-latest
- strategy:
- matrix:
- otp: ["21.3", "22.3"]
- elixir: ["1.8.2"]
- steps:
- - name: CHECKOUT REPOSITORY
- uses: actions/checkout@v2
- # https://github.com/marketplace/actions/setup-elixir
- - name: CONFIGURE OTP & ELIXIR
- uses: actions/setup-elixir@v1
- with:
- otp-version: ${{ matrix.otp }}
- # https://github.com/elixir-lang/elixir/releases
- elixir-version: ${{ matrix.elixir }}
- - name: RUN TESTS
- run: |
- branch_or_tag_name=${GITHUB_REF#refs/*/}
- make ct base_rmq_ref=master current_rmq_ref=$branch_or_tag_name
- - name: ON FAILURE ARCHIVE TESTS LOGS
- if: failure()
- run: |
- make ct-logs-archive
- - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
- # https://github.com/marketplace/actions/upload-artifact
- uses: actions/upload-artifact@v2-preview
- if: failure()
- with:
- name: ct-logs-otp-${{ matrix.otp }}-elixir-${{ matrix.elixir }}
- path: "*-ct-logs-*.tar.xz"
diff --git a/deps/rabbitmq_shovel/.github/ISSUE_TEMPLATE.md b/deps/rabbitmq_shovel/.github/ISSUE_TEMPLATE.md
deleted file mode 100644
index 70b54cd818..0000000000
--- a/deps/rabbitmq_shovel/.github/ISSUE_TEMPLATE.md
+++ /dev/null
@@ -1,43 +0,0 @@
-Thank you for using RabbitMQ and for taking the time to report an
-issue.
-
-## Does This Belong to GitHub or RabbitMQ Mailing List?
-
-*Important:* please first read the `CONTRIBUTING.md` document in the
-root of this repository. It will help you determine whether your
-feedback should be directed to the RabbitMQ mailing list [1] instead.
-
-## Please Help Maintainers and Contributors Help You
-
-In order for the RabbitMQ team to investigate your issue, please provide
-**as much as possible** of the following details:
-
-* RabbitMQ version
-* Erlang version
-* RabbitMQ server and client application log files
-* A runnable code sample, terminal transcript or detailed set of
- instructions that can be used to reproduce the issue
-* RabbitMQ plugin information via `rabbitmq-plugins list`
-* Client library version (for all libraries used)
-* Operating system, version, and patch level
-
-Running the `rabbitmq-collect-env` [2] script can provide most of the
-information needed. Please make the archive available via a third-party
-service and note that **the script does not attempt to scrub any
-sensitive data**.
-
-If your issue involves RabbitMQ management UI or HTTP API, please also provide
-the following:
-
- * Browser and its version
- * What management UI page was used (if applicable)
- * How the HTTP API requests performed can be reproduced with `curl`
- * Operating system on which you are running your browser, and its version
- * Errors reported in the JavaScript console (if any)
-
-This information **greatly speeds up issue investigation** (or makes it
-possible to investigate it at all). Please help project maintainers and
-contributors to help you by providing it!
-
-1. https://groups.google.com/forum/#!forum/rabbitmq-users
-2. https://github.com/rabbitmq/support-tools/blob/master/scripts/rabbitmq-collect-env
diff --git a/deps/rabbitmq_shovel/.github/PULL_REQUEST_TEMPLATE.md b/deps/rabbitmq_shovel/.github/PULL_REQUEST_TEMPLATE.md
deleted file mode 100644
index 4bd618567b..0000000000
--- a/deps/rabbitmq_shovel/.github/PULL_REQUEST_TEMPLATE.md
+++ /dev/null
@@ -1,43 +0,0 @@
-## Proposed Changes
-
-Please describe the big picture of your changes here to communicate to the
-RabbitMQ team why we should accept this pull request. If it fixes a bug or
-resolves a feature request, be sure to link to that issue.
-
-A pull request that doesn't explain **why** the change was made has a much
-lower chance of being accepted.
-
-If English isn't your first language, don't worry about it and try to
-communicate the problem you are trying to solve to the best of your abilities.
-As long as we can understand the intent, it's all good.
-
-## Types of Changes
-
-What types of changes does your code introduce to this project?
-_Put an `x` in the boxes that apply_
-
-- [ ] Bugfix (non-breaking change which fixes issue #NNNN)
-- [ ] New feature (non-breaking change which adds functionality)
-- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
-- [ ] Documentation (correction or otherwise)
-- [ ] Cosmetics (whitespace, appearance)
-
-## Checklist
-
-_Put an `x` in the boxes that apply. You can also fill these out after creating
-the PR. If you're unsure about any of them, don't hesitate to ask on the
-mailing list. We're here to help! This is simply a reminder of what we are
-going to look for before merging your code._
-
-- [ ] I have read the `CONTRIBUTING.md` document
-- [ ] I have signed the CA (see https://cla.pivotal.io/sign/rabbitmq)
-- [ ] All tests pass locally with my changes
-- [ ] I have added tests that prove my fix is effective or that my feature works
-- [ ] I have added necessary documentation (if appropriate)
-- [ ] Any dependent changes have been merged and published in related repositories
-
-## Further Comments
-
-If this is a relatively large or complex change, kick off the discussion by
-explaining why you chose the solution you did and what alternatives you
-considered, etc.
diff --git a/deps/rabbitmq_shovel_management/.github/ISSUE_TEMPLATE.md b/deps/rabbitmq_shovel_management/.github/ISSUE_TEMPLATE.md
deleted file mode 100644
index 70b54cd818..0000000000
--- a/deps/rabbitmq_shovel_management/.github/ISSUE_TEMPLATE.md
+++ /dev/null
@@ -1,43 +0,0 @@
-Thank you for using RabbitMQ and for taking the time to report an
-issue.
-
-## Does This Belong to GitHub or RabbitMQ Mailing List?
-
-*Important:* please first read the `CONTRIBUTING.md` document in the
-root of this repository. It will help you determine whether your
-feedback should be directed to the RabbitMQ mailing list [1] instead.
-
-## Please Help Maintainers and Contributors Help You
-
-In order for the RabbitMQ team to investigate your issue, please provide
-**as much as possible** of the following details:
-
-* RabbitMQ version
-* Erlang version
-* RabbitMQ server and client application log files
-* A runnable code sample, terminal transcript or detailed set of
- instructions that can be used to reproduce the issue
-* RabbitMQ plugin information via `rabbitmq-plugins list`
-* Client library version (for all libraries used)
-* Operating system, version, and patch level
-
-Running the `rabbitmq-collect-env` [2] script can provide most of the
-information needed. Please make the archive available via a third-party
-service and note that **the script does not attempt to scrub any
-sensitive data**.
-
-If your issue involves RabbitMQ management UI or HTTP API, please also provide
-the following:
-
- * Browser and its version
- * What management UI page was used (if applicable)
- * How the HTTP API requests performed can be reproduced with `curl`
- * Operating system on which you are running your browser, and its version
- * Errors reported in the JavaScript console (if any)
-
-This information **greatly speeds up issue investigation** (or makes it
-possible to investigate it at all). Please help project maintainers and
-contributors to help you by providing it!
-
-1. https://groups.google.com/forum/#!forum/rabbitmq-users
-2. https://github.com/rabbitmq/support-tools/blob/master/scripts/rabbitmq-collect-env
diff --git a/deps/rabbitmq_shovel_management/.github/PULL_REQUEST_TEMPLATE.md b/deps/rabbitmq_shovel_management/.github/PULL_REQUEST_TEMPLATE.md
deleted file mode 100644
index 4bd618567b..0000000000
--- a/deps/rabbitmq_shovel_management/.github/PULL_REQUEST_TEMPLATE.md
+++ /dev/null
@@ -1,43 +0,0 @@
-## Proposed Changes
-
-Please describe the big picture of your changes here to communicate to the
-RabbitMQ team why we should accept this pull request. If it fixes a bug or
-resolves a feature request, be sure to link to that issue.
-
-A pull request that doesn't explain **why** the change was made has a much
-lower chance of being accepted.
-
-If English isn't your first language, don't worry about it and try to
-communicate the problem you are trying to solve to the best of your abilities.
-As long as we can understand the intent, it's all good.
-
-## Types of Changes
-
-What types of changes does your code introduce to this project?
-_Put an `x` in the boxes that apply_
-
-- [ ] Bugfix (non-breaking change which fixes issue #NNNN)
-- [ ] New feature (non-breaking change which adds functionality)
-- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
-- [ ] Documentation (correction or otherwise)
-- [ ] Cosmetics (whitespace, appearance)
-
-## Checklist
-
-_Put an `x` in the boxes that apply. You can also fill these out after creating
-the PR. If you're unsure about any of them, don't hesitate to ask on the
-mailing list. We're here to help! This is simply a reminder of what we are
-going to look for before merging your code._
-
-- [ ] I have read the `CONTRIBUTING.md` document
-- [ ] I have signed the CA (see https://cla.pivotal.io/sign/rabbitmq)
-- [ ] All tests pass locally with my changes
-- [ ] I have added tests that prove my fix is effective or that my feature works
-- [ ] I have added necessary documentation (if appropriate)
-- [ ] Any dependent changes have been merged and published in related repositories
-
-## Further Comments
-
-If this is a relatively large or complex change, kick off the discussion by
-explaining why you chose the solution you did and what alternatives you
-considered, etc.
diff --git a/deps/rabbitmq_stomp/.github/ISSUE_TEMPLATE.md b/deps/rabbitmq_stomp/.github/ISSUE_TEMPLATE.md
deleted file mode 100644
index 70b54cd818..0000000000
--- a/deps/rabbitmq_stomp/.github/ISSUE_TEMPLATE.md
+++ /dev/null
@@ -1,43 +0,0 @@
-Thank you for using RabbitMQ and for taking the time to report an
-issue.
-
-## Does This Belong to GitHub or RabbitMQ Mailing List?
-
-*Important:* please first read the `CONTRIBUTING.md` document in the
-root of this repository. It will help you determine whether your
-feedback should be directed to the RabbitMQ mailing list [1] instead.
-
-## Please Help Maintainers and Contributors Help You
-
-In order for the RabbitMQ team to investigate your issue, please provide
-**as much as possible** of the following details:
-
-* RabbitMQ version
-* Erlang version
-* RabbitMQ server and client application log files
-* A runnable code sample, terminal transcript or detailed set of
- instructions that can be used to reproduce the issue
-* RabbitMQ plugin information via `rabbitmq-plugins list`
-* Client library version (for all libraries used)
-* Operating system, version, and patch level
-
-Running the `rabbitmq-collect-env` [2] script can provide most of the
-information needed. Please make the archive available via a third-party
-service and note that **the script does not attempt to scrub any
-sensitive data**.
-
-If your issue involves RabbitMQ management UI or HTTP API, please also provide
-the following:
-
- * Browser and its version
- * What management UI page was used (if applicable)
- * How the HTTP API requests performed can be reproduced with `curl`
- * Operating system on which you are running your browser, and its version
- * Errors reported in the JavaScript console (if any)
-
-This information **greatly speeds up issue investigation** (or makes it
-possible to investigate it at all). Please help project maintainers and
-contributors to help you by providing it!
-
-1. https://groups.google.com/forum/#!forum/rabbitmq-users
-2. https://github.com/rabbitmq/support-tools/blob/master/scripts/rabbitmq-collect-env
diff --git a/deps/rabbitmq_stomp/.github/PULL_REQUEST_TEMPLATE.md b/deps/rabbitmq_stomp/.github/PULL_REQUEST_TEMPLATE.md
deleted file mode 100644
index 4bd618567b..0000000000
--- a/deps/rabbitmq_stomp/.github/PULL_REQUEST_TEMPLATE.md
+++ /dev/null
@@ -1,43 +0,0 @@
-## Proposed Changes
-
-Please describe the big picture of your changes here to communicate to the
-RabbitMQ team why we should accept this pull request. If it fixes a bug or
-resolves a feature request, be sure to link to that issue.
-
-A pull request that doesn't explain **why** the change was made has a much
-lower chance of being accepted.
-
-If English isn't your first language, don't worry about it and try to
-communicate the problem you are trying to solve to the best of your abilities.
-As long as we can understand the intent, it's all good.
-
-## Types of Changes
-
-What types of changes does your code introduce to this project?
-_Put an `x` in the boxes that apply_
-
-- [ ] Bugfix (non-breaking change which fixes issue #NNNN)
-- [ ] New feature (non-breaking change which adds functionality)
-- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
-- [ ] Documentation (correction or otherwise)
-- [ ] Cosmetics (whitespace, appearance)
-
-## Checklist
-
-_Put an `x` in the boxes that apply. You can also fill these out after creating
-the PR. If you're unsure about any of them, don't hesitate to ask on the
-mailing list. We're here to help! This is simply a reminder of what we are
-going to look for before merging your code._
-
-- [ ] I have read the `CONTRIBUTING.md` document
-- [ ] I have signed the CA (see https://cla.pivotal.io/sign/rabbitmq)
-- [ ] All tests pass locally with my changes
-- [ ] I have added tests that prove my fix is effective or that my feature works
-- [ ] I have added necessary documentation (if appropriate)
-- [ ] Any dependent changes have been merged and published in related repositories
-
-## Further Comments
-
-If this is a relatively large or complex change, kick off the discussion by
-explaining why you chose the solution you did and what alternatives you
-considered, etc.
diff --git a/deps/rabbitmq_tracing/.github/ISSUE_TEMPLATE.md b/deps/rabbitmq_tracing/.github/ISSUE_TEMPLATE.md
deleted file mode 100644
index bce561261a..0000000000
--- a/deps/rabbitmq_tracing/.github/ISSUE_TEMPLATE.md
+++ /dev/null
@@ -1,21 +0,0 @@
-Thank you for using RabbitMQ.
-
-**STOP NOW AND READ THIS** BEFORE OPENING A NEW ISSUE ON GITHUB
-
-Unless you are CERTAIN you have found a reproducible problem in RabbitMQ or
-have a **specific, actionable** suggestion for our team, you must first ask
-your question or discuss your suspected issue on the mailing list:
-
-https://groups.google.com/forum/#!forum/rabbitmq-users
-
-Team RabbitMQ does not use GitHub issues for discussions, investigations, root
-cause analysis and so on.
-
-Please take the time to read the CONTRIBUTING.md document for instructions on
-how to effectively ask a question or report a suspected issue:
-
-https://github.com/rabbitmq/rabbitmq-server/blob/master/CONTRIBUTING.md#github-issues
-
-Following these rules **will save time** for both you and RabbitMQ's maintainers.
-
-Thank you.
diff --git a/deps/rabbitmq_tracing/.github/PULL_REQUEST_TEMPLATE.md b/deps/rabbitmq_tracing/.github/PULL_REQUEST_TEMPLATE.md
deleted file mode 100644
index 230febf8a2..0000000000
--- a/deps/rabbitmq_tracing/.github/PULL_REQUEST_TEMPLATE.md
+++ /dev/null
@@ -1,43 +0,0 @@
-## Proposed Changes
-
-Please describe the big picture of your changes here to communicate to the
-RabbitMQ team why we should accept this pull request. If it fixes a bug or
-resolves a feature request, be sure to link to that issue.
-
-A pull request that doesn't explain **why** the change was made has a much
-lower chance of being accepted.
-
-If English isn't your first language, don't worry about it and try to
-communicate the problem you are trying to solve to the best of your abilities.
-As long as we can understand the intent, it's all good.
-
-## Types of Changes
-
-What types of changes does your code introduce to this project?
-_Put an `x` in the boxes that apply_
-
-- [ ] Bug fix (non-breaking change which fixes issue #NNNN)
-- [ ] New feature (non-breaking change which adds functionality)
-- [ ] Breaking change (fix or feature that would cause an observable behavior change in existing systems)
-- [ ] Documentation improvements (corrections, new content, etc)
-- [ ] Cosmetic change (whitespace, formatting, etc)
-
-## Checklist
-
-_Put an `x` in the boxes that apply. You can also fill these out after creating
-the PR. If you're unsure about any of them, don't hesitate to ask on the
-mailing list. We're here to help! This is simply a reminder of what we are
-going to look for before merging your code._
-
-- [ ] I have read the `CONTRIBUTING.md` document
-- [ ] I have signed the CA (see https://cla.pivotal.io/sign/rabbitmq)
-- [ ] All tests pass locally with my changes
-- [ ] I have added tests that prove my fix is effective or that my feature works
-- [ ] I have added necessary documentation (if appropriate)
-- [ ] Any dependent changes have been merged and published in related repositories
-
-## Further Comments
-
-If this is a relatively large or complex change, kick off the discussion by
-explaining why you chose the solution you did and what alternatives you
-considered, etc.
diff --git a/deps/rabbitmq_web_mqtt/.github/ISSUE_TEMPLATE.md b/deps/rabbitmq_web_mqtt/.github/ISSUE_TEMPLATE.md
deleted file mode 100644
index 70b54cd818..0000000000
--- a/deps/rabbitmq_web_mqtt/.github/ISSUE_TEMPLATE.md
+++ /dev/null
@@ -1,43 +0,0 @@
-Thank you for using RabbitMQ and for taking the time to report an
-issue.
-
-## Does This Belong to GitHub or RabbitMQ Mailing List?
-
-*Important:* please first read the `CONTRIBUTING.md` document in the
-root of this repository. It will help you determine whether your
-feedback should be directed to the RabbitMQ mailing list [1] instead.
-
-## Please Help Maintainers and Contributors Help You
-
-In order for the RabbitMQ team to investigate your issue, please provide
-**as much as possible** of the following details:
-
-* RabbitMQ version
-* Erlang version
-* RabbitMQ server and client application log files
-* A runnable code sample, terminal transcript or detailed set of
- instructions that can be used to reproduce the issue
-* RabbitMQ plugin information via `rabbitmq-plugins list`
-* Client library version (for all libraries used)
-* Operating system, version, and patch level
-
-Running the `rabbitmq-collect-env` [2] script can provide most of the
-information needed. Please make the archive available via a third-party
-service and note that **the script does not attempt to scrub any
-sensitive data**.
-
-If your issue involves RabbitMQ management UI or HTTP API, please also provide
-the following:
-
- * Browser and its version
- * What management UI page was used (if applicable)
- * How the HTTP API requests performed can be reproduced with `curl`
- * Operating system on which you are running your browser, and its version
- * Errors reported in the JavaScript console (if any)
-
-This information **greatly speeds up issue investigation** (or makes it
-possible to investigate it at all). Please help project maintainers and
-contributors to help you by providing it!
-
-1. https://groups.google.com/forum/#!forum/rabbitmq-users
-2. https://github.com/rabbitmq/support-tools/blob/master/scripts/rabbitmq-collect-env
diff --git a/deps/rabbitmq_web_mqtt/.github/PULL_REQUEST_TEMPLATE.md b/deps/rabbitmq_web_mqtt/.github/PULL_REQUEST_TEMPLATE.md
deleted file mode 100644
index 4bd618567b..0000000000
--- a/deps/rabbitmq_web_mqtt/.github/PULL_REQUEST_TEMPLATE.md
+++ /dev/null
@@ -1,43 +0,0 @@
-## Proposed Changes
-
-Please describe the big picture of your changes here to communicate to the
-RabbitMQ team why we should accept this pull request. If it fixes a bug or
-resolves a feature request, be sure to link to that issue.
-
-A pull request that doesn't explain **why** the change was made has a much
-lower chance of being accepted.
-
-If English isn't your first language, don't worry about it and try to
-communicate the problem you are trying to solve to the best of your abilities.
-As long as we can understand the intent, it's all good.
-
-## Types of Changes
-
-What types of changes does your code introduce to this project?
-_Put an `x` in the boxes that apply_
-
-- [ ] Bugfix (non-breaking change which fixes issue #NNNN)
-- [ ] New feature (non-breaking change which adds functionality)
-- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
-- [ ] Documentation (correction or otherwise)
-- [ ] Cosmetics (whitespace, appearance)
-
-## Checklist
-
-_Put an `x` in the boxes that apply. You can also fill these out after creating
-the PR. If you're unsure about any of them, don't hesitate to ask on the
-mailing list. We're here to help! This is simply a reminder of what we are
-going to look for before merging your code._
-
-- [ ] I have read the `CONTRIBUTING.md` document
-- [ ] I have signed the CA (see https://cla.pivotal.io/sign/rabbitmq)
-- [ ] All tests pass locally with my changes
-- [ ] I have added tests that prove my fix is effective or that my feature works
-- [ ] I have added necessary documentation (if appropriate)
-- [ ] Any dependent changes have been merged and published in related repositories
-
-## Further Comments
-
-If this is a relatively large or complex change, kick off the discussion by
-explaining why you chose the solution you did and what alternatives you
-considered, etc.
diff --git a/deps/rabbitmq_web_stomp_examples/.github/ISSUE_TEMPLATE.md b/deps/rabbitmq_web_stomp_examples/.github/ISSUE_TEMPLATE.md
deleted file mode 100644
index bce561261a..0000000000
--- a/deps/rabbitmq_web_stomp_examples/.github/ISSUE_TEMPLATE.md
+++ /dev/null
@@ -1,21 +0,0 @@
-Thank you for using RabbitMQ.
-
-**STOP NOW AND READ THIS** BEFORE OPENING A NEW ISSUE ON GITHUB
-
-Unless you are CERTAIN you have found a reproducible problem in RabbitMQ or
-have a **specific, actionable** suggestion for our team, you must first ask
-your question or discuss your suspected issue on the mailing list:
-
-https://groups.google.com/forum/#!forum/rabbitmq-users
-
-Team RabbitMQ does not use GitHub issues for discussions, investigations, root
-cause analysis and so on.
-
-Please take the time to read the CONTRIBUTING.md document for instructions on
-how to effectively ask a question or report a suspected issue:
-
-https://github.com/rabbitmq/rabbitmq-server/blob/master/CONTRIBUTING.md#github-issues
-
-Following these rules **will save time** for both you and RabbitMQ's maintainers.
-
-Thank you.
diff --git a/deps/rabbitmq_web_stomp_examples/.github/PULL_REQUEST_TEMPLATE.md b/deps/rabbitmq_web_stomp_examples/.github/PULL_REQUEST_TEMPLATE.md
deleted file mode 100644
index 230febf8a2..0000000000
--- a/deps/rabbitmq_web_stomp_examples/.github/PULL_REQUEST_TEMPLATE.md
+++ /dev/null
@@ -1,43 +0,0 @@
-## Proposed Changes
-
-Please describe the big picture of your changes here to communicate to the
-RabbitMQ team why we should accept this pull request. If it fixes a bug or
-resolves a feature request, be sure to link to that issue.
-
-A pull request that doesn't explain **why** the change was made has a much
-lower chance of being accepted.
-
-If English isn't your first language, don't worry about it and try to
-communicate the problem you are trying to solve to the best of your abilities.
-As long as we can understand the intent, it's all good.
-
-## Types of Changes
-
-What types of changes does your code introduce to this project?
-_Put an `x` in the boxes that apply_
-
-- [ ] Bug fix (non-breaking change which fixes issue #NNNN)
-- [ ] New feature (non-breaking change which adds functionality)
-- [ ] Breaking change (fix or feature that would cause an observable behavior change in existing systems)
-- [ ] Documentation improvements (corrections, new content, etc)
-- [ ] Cosmetic change (whitespace, formatting, etc)
-
-## Checklist
-
-_Put an `x` in the boxes that apply. You can also fill these out after creating
-the PR. If you're unsure about any of them, don't hesitate to ask on the
-mailing list. We're here to help! This is simply a reminder of what we are
-going to look for before merging your code._
-
-- [ ] I have read the `CONTRIBUTING.md` document
-- [ ] I have signed the CA (see https://cla.pivotal.io/sign/rabbitmq)
-- [ ] All tests pass locally with my changes
-- [ ] I have added tests that prove my fix is effective or that my feature works
-- [ ] I have added necessary documentation (if appropriate)
-- [ ] Any dependent changes have been merged and published in related repositories
-
-## Further Comments
-
-If this is a relatively large or complex change, kick off the discussion by
-explaining why you chose the solution you did and what alternatives you
-considered, etc.