summaryrefslogtreecommitdiff
path: root/deps/rabbit_common/.github
diff options
context:
space:
mode:
Diffstat (limited to 'deps/rabbit_common/.github')
-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
7 files changed, 0 insertions, 300 deletions
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" } }'