summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Kuryloski <kuryloskip@vmware.com>2021-03-10 17:53:31 +0100
committerPhilip Kuryloski <kuryloskip@vmware.com>2021-03-10 17:53:31 +0100
commit024202da477b9639323175a78020514b17a325c3 (patch)
tree2c96b7b99ab12fece15824e255f511576cbf9fc4
parentcfa08a861dd34f3b017fdcfec2ea8fc51b4452f0 (diff)
downloadrabbitmq-server-git-024202da477b9639323175a78020514b17a325c3.tar.gz
WIP: GitHub Actions without docker images 29
-rw-r--r--.github/workflows/test-erlang-otp-23.1.yaml5
-rw-r--r--.github/workflows/test-erlang-otp-git.yaml5
-rw-r--r--workflow_sources/deps.yml1
-rw-r--r--workflow_sources/test/rabbitmq_cli.lib.yml6
4 files changed, 14 insertions, 3 deletions
diff --git a/.github/workflows/test-erlang-otp-23.1.yaml b/.github/workflows/test-erlang-otp-23.1.yaml
index f1797fb02d..8ea00b1579 100644
--- a/.github/workflows/test-erlang-otp-23.1.yaml
+++ b/.github/workflows/test-erlang-otp-23.1.yaml
@@ -11341,7 +11341,10 @@ jobs:
- name: RUN TESTS
if: steps.cache.outputs.cache-hit != 'true'
run: |
- make -C deps/rabbitmq_cli tests
+ function run_tests() {
+ make -C deps/rabbitmq_cli tests
+ }
+ run_tests || run_tests || run_tests
- name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
uses: actions/upload-artifact@v2-preview
if: failure()
diff --git a/.github/workflows/test-erlang-otp-git.yaml b/.github/workflows/test-erlang-otp-git.yaml
index e19ec98c6c..2a59d0c847 100644
--- a/.github/workflows/test-erlang-otp-git.yaml
+++ b/.github/workflows/test-erlang-otp-git.yaml
@@ -5484,7 +5484,10 @@ jobs:
- name: RUN TESTS
if: steps.cache.outputs.cache-hit != 'true'
run: |
- make -C deps/rabbitmq_cli tests
+ function run_tests() {
+ make -C deps/rabbitmq_cli tests
+ }
+ run_tests || run_tests || run_tests
- name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
uses: actions/upload-artifact@v2-preview
if: failure()
diff --git a/workflow_sources/deps.yml b/workflow_sources/deps.yml
index 97ec24831d..4f589f7adf 100644
--- a/workflow_sources/deps.yml
+++ b/workflow_sources/deps.yml
@@ -174,6 +174,7 @@ deps:
- name: rabbitmq_cli
skip_dialyzer: true
+ attempts: 3
suites: []
- name: rabbitmq_codegen
diff --git a/workflow_sources/test/rabbitmq_cli.lib.yml b/workflow_sources/test/rabbitmq_cli.lib.yml
index 755e68a14f..9308cbb277 100644
--- a/workflow_sources/test/rabbitmq_cli.lib.yml
+++ b/workflow_sources/test/rabbitmq_cli.lib.yml
@@ -41,8 +41,12 @@ steps:
make -C deps/(@= dep.name @) tests MIX_TEST_OPTS="--exclude test"
- name: RUN TESTS
if: steps.cache.outputs.cache-hit != 'true'
+ #@ tests_cmd = " || ".join(["run_tests"] * getattr(dep, 'attempts', 1))
run: |
- make -C deps/(@= dep.name @) tests
+ function run_tests() {
+ make -C deps/(@= dep.name @) tests
+ }
+ (@= tests_cmd @)
- name: ON FAILURE UPLOAD TESTS LOGS ARTIFACT
#! https://github.com/marketplace/actions/upload-artifact
uses: actions/upload-artifact@v2-preview