diff options
author | Arnaud Cogoluègnes <acogoluegnes@gmail.com> | 2021-01-27 16:55:46 +0100 |
---|---|---|
committer | Arnaud Cogoluègnes <acogoluegnes@gmail.com> | 2021-01-27 16:55:46 +0100 |
commit | fe230cdbbc4681fe8531adad04aa4705647d6c67 (patch) | |
tree | a5cf80ec47ac61a588657fa1d74b2355f0f3b0c0 /.github | |
parent | 994f0755b374b4f9dab4c5f3820193bc1017dcfb (diff) | |
download | rabbitmq-server-git-fe230cdbbc4681fe8531adad04aa4705647d6c67.tar.gz |
Add stream prometheus plugin to GH actions
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/test-erlang-otp-22.3.yaml | 48 | ||||
-rw-r--r-- | .github/workflows/test-erlang-otp-23.1.yaml | 48 | ||||
-rw-r--r-- | .github/workflows/test-erlang-otp-git.yaml | 48 |
3 files changed, 144 insertions, 0 deletions
diff --git a/.github/workflows/test-erlang-otp-22.3.yaml b/.github/workflows/test-erlang-otp-22.3.yaml index 6dc157d7ad..45b63c9f81 100644 --- a/.github/workflows/test-erlang-otp-22.3.yaml +++ b/.github/workflows/test-erlang-otp-22.3.yaml @@ -440,6 +440,16 @@ jobs: --workdir /workspace/rabbitmq \ eu.gcr.io/cf-rabbitmq-core/ci-base:22.3 \ ci/scripts/xref.sh + - name: RUN XREF rabbitmq_stream_prometheus + run: | + docker run \ + --env project=rabbitmq_stream_prometheus \ + --env GITHUB_RUN_ID=${{ github.run_id }} \ + --env BUILDEVENT_APIKEY=${{ secrets.HONEYCOMB_API_KEY }} \ + --volume ${PWD}:/workspace/rabbitmq \ + --workdir /workspace/rabbitmq \ + eu.gcr.io/cf-rabbitmq-core/ci-base:22.3 \ + ci/scripts/xref.sh - name: RUN XREF rabbitmq_top run: | docker run \ @@ -1834,6 +1844,43 @@ jobs: with: name: rabbitmq_stream_management-ct-logs path: ct-logs/*-ct-logs-*.tar.xz + rabbitmq_stream_prometheus: + name: rabbitmq_stream_prometheus + needs: + - prepare + runs-on: ubuntu-18.04 + if: '!contains(github.event.head_commit.message, ''[ci skip]'')' + steps: + - name: RECORD STEP START + id: buildevents + run: | + echo "::set-output name=step_start::$(date +%s)" + - uses: actions/cache@v2 + with: + key: erlang-22.3-rabbitmq-${{ github.sha }} + path: ci.tar + - name: LOAD CI DOCKER IMAGE FROM CACHE + run: | + docker load --input ci.tar + - name: RUN TESTS + run: | + mkdir ct-logs && chmod 777 ct-logs + docker run \ + --env project=rabbitmq_stream_prometheus \ + --env GITHUB_RUN_ID=${{ github.run_id }} \ + --env BUILDEVENT_APIKEY=${{ secrets.HONEYCOMB_API_KEY }} \ + --env STEP_START=${{ steps.buildevents.outputs.step_start }} \ + \ + --volume ${PWD}/ct-logs:/workspace/ct-logs \ + --oom-kill-disable \ + eu.gcr.io/cf-rabbitmq-core/ci:erlang-22.3-rabbitmq-${{ github.sha }} \ + ci/scripts/tests.sh + - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT + uses: actions/upload-artifact@v2-preview + if: failure() + with: + name: rabbitmq_stream_prometheus-ct-logs + path: ct-logs/*-ct-logs-*.tar.xz rabbitmq_top: name: rabbitmq_top needs: @@ -2170,6 +2217,7 @@ jobs: - rabbitmq_stomp - rabbitmq_stream - rabbitmq_stream_management + - rabbitmq_stream_prometheus - rabbitmq_top - rabbitmq_tracing - rabbitmq_trust_store diff --git a/.github/workflows/test-erlang-otp-23.1.yaml b/.github/workflows/test-erlang-otp-23.1.yaml index 396b59b4ef..c773ebce47 100644 --- a/.github/workflows/test-erlang-otp-23.1.yaml +++ b/.github/workflows/test-erlang-otp-23.1.yaml @@ -440,6 +440,16 @@ jobs: --workdir /workspace/rabbitmq \ eu.gcr.io/cf-rabbitmq-core/ci-base:23.1 \ ci/scripts/xref.sh + - name: RUN XREF rabbitmq_stream_prometheus + run: | + docker run \ + --env project=rabbitmq_stream_prometheus \ + --env GITHUB_RUN_ID=${{ github.run_id }} \ + --env BUILDEVENT_APIKEY=${{ secrets.HONEYCOMB_API_KEY }} \ + --volume ${PWD}:/workspace/rabbitmq \ + --workdir /workspace/rabbitmq \ + eu.gcr.io/cf-rabbitmq-core/ci-base:23.1 \ + ci/scripts/xref.sh - name: RUN XREF rabbitmq_top run: | docker run \ @@ -2006,6 +2016,43 @@ jobs: with: name: rabbitmq_stream_management-ct-logs path: ct-logs/*-ct-logs-*.tar.xz + rabbitmq_stream_prometheus: + name: rabbitmq_stream_prometheus + needs: + - prepare + runs-on: ubuntu-18.04 + if: '!contains(github.event.head_commit.message, ''[ci skip]'')' + steps: + - name: RECORD STEP START + id: buildevents + run: | + echo "::set-output name=step_start::$(date +%s)" + - uses: actions/cache@v2 + with: + key: erlang-23.1-rabbitmq-${{ github.sha }} + path: ci.tar + - name: LOAD CI DOCKER IMAGE FROM CACHE + run: | + docker load --input ci.tar + - name: RUN TESTS + run: | + mkdir ct-logs && chmod 777 ct-logs + docker run \ + --env project=rabbitmq_stream_prometheus \ + --env GITHUB_RUN_ID=${{ github.run_id }} \ + --env BUILDEVENT_APIKEY=${{ secrets.HONEYCOMB_API_KEY }} \ + --env STEP_START=${{ steps.buildevents.outputs.step_start }} \ + \ + --volume ${PWD}/ct-logs:/workspace/ct-logs \ + --oom-kill-disable \ + eu.gcr.io/cf-rabbitmq-core/ci:erlang-23.1-rabbitmq-${{ github.sha }} \ + ci/scripts/tests.sh + - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT + uses: actions/upload-artifact@v2-preview + if: failure() + with: + name: rabbitmq_stream_prometheus-ct-logs + path: ct-logs/*-ct-logs-*.tar.xz rabbitmq_top: name: rabbitmq_top needs: @@ -2343,6 +2390,7 @@ jobs: - rabbitmq_stomp - rabbitmq_stream - rabbitmq_stream_management + - rabbitmq_stream_prometheus - rabbitmq_top - rabbitmq_tracing - rabbitmq_trust_store diff --git a/.github/workflows/test-erlang-otp-git.yaml b/.github/workflows/test-erlang-otp-git.yaml index bcdca78b7a..f29c7925a3 100644 --- a/.github/workflows/test-erlang-otp-git.yaml +++ b/.github/workflows/test-erlang-otp-git.yaml @@ -480,6 +480,16 @@ jobs: --workdir /workspace/rabbitmq \ eu.gcr.io/cf-rabbitmq-core/ci-base:git \ ci/scripts/xref.sh + - name: RUN XREF rabbitmq_stream_prometheus + run: | + docker run \ + --env project=rabbitmq_stream_prometheus \ + --env GITHUB_RUN_ID=${{ github.run_id }} \ + --env BUILDEVENT_APIKEY=${{ secrets.HONEYCOMB_API_KEY }} \ + --volume ${PWD}:/workspace/rabbitmq \ + --workdir /workspace/rabbitmq \ + eu.gcr.io/cf-rabbitmq-core/ci-base:git \ + ci/scripts/xref.sh - name: RUN XREF rabbitmq_top run: | docker run \ @@ -1874,6 +1884,43 @@ jobs: with: name: rabbitmq_stream_management-ct-logs path: ct-logs/*-ct-logs-*.tar.xz + rabbitmq_stream_prometheus: + name: rabbitmq_stream_prometheus + needs: + - prepare + runs-on: ubuntu-18.04 + if: '!contains(github.event.head_commit.message, ''[ci skip]'')' + steps: + - name: RECORD STEP START + id: buildevents + run: | + echo "::set-output name=step_start::$(date +%s)" + - uses: actions/cache@v2 + with: + key: erlang-git-rabbitmq-${{ github.sha }} + path: ci.tar + - name: LOAD CI DOCKER IMAGE FROM CACHE + run: | + docker load --input ci.tar + - name: RUN TESTS + run: | + mkdir ct-logs && chmod 777 ct-logs + docker run \ + --env project=rabbitmq_stream_prometheus \ + --env GITHUB_RUN_ID=${{ github.run_id }} \ + --env BUILDEVENT_APIKEY=${{ secrets.HONEYCOMB_API_KEY }} \ + --env STEP_START=${{ steps.buildevents.outputs.step_start }} \ + \ + --volume ${PWD}/ct-logs:/workspace/ct-logs \ + --oom-kill-disable \ + eu.gcr.io/cf-rabbitmq-core/ci:erlang-git-rabbitmq-${{ github.sha }} \ + ci/scripts/tests.sh + - name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT + uses: actions/upload-artifact@v2-preview + if: failure() + with: + name: rabbitmq_stream_prometheus-ct-logs + path: ct-logs/*-ct-logs-*.tar.xz rabbitmq_top: name: rabbitmq_top needs: @@ -2210,6 +2257,7 @@ jobs: - rabbitmq_stomp - rabbitmq_stream - rabbitmq_stream_management + - rabbitmq_stream_prometheus - rabbitmq_top - rabbitmq_tracing - rabbitmq_trust_store |