summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Kuryloski <kuryloskip@vmware.com>2021-03-10 09:36:44 +0100
committerPhilip Kuryloski <kuryloskip@vmware.com>2021-03-10 09:36:44 +0100
commitbc611e8e274782499954210d90aab2dd11ab2fea (patch)
tree3fc9677520f947c92b52b953309ad8a709c442d1
parent467c3f05c1307db03d7797327e891702991f4c22 (diff)
downloadrabbitmq-server-git-bc611e8e274782499954210d90aab2dd11ab2fea.tar.gz
WIP: GitHub Actions without docker images 14
-rw-r--r--.github/workflows/test-erlang-otp-23.1.yaml23
-rw-r--r--.github/workflows/test-erlang-otp-git.yaml23
-rw-r--r--workflow_sources/deps.yml2
-rw-r--r--workflow_sources/test/finish.lib.yml8
-rw-r--r--workflow_sources/test/tests.lib.yml19
5 files changed, 66 insertions, 9 deletions
diff --git a/.github/workflows/test-erlang-otp-23.1.yaml b/.github/workflows/test-erlang-otp-23.1.yaml
index ccc24aa09f..07b3d4ac37 100644
--- a/.github/workflows/test-erlang-otp-23.1.yaml
+++ b/.github/workflows/test-erlang-otp-23.1.yaml
@@ -8737,6 +8737,17 @@ jobs:
with:
otp-version: "23.1"
elixir-version: 1.10.4
+ - name: INSTALL slapd
+ run: |
+ echo 'slapd slapd/internal/generated_adminpw password rabbitmq' | debconf-set-selections && \
+ echo 'slapd slapd/internal/adminpw password rabbitmq' | debconf-set-selections && \
+ echo 'slapd slapd/password2 password rabbitmq' | debconf-set-selections && \
+ echo 'slapd slapd/password1 password rabbitmq' | debconf-set-selections && \
+ echo 'slapd slapd/backend select HDB' | debconf-set-selections
+
+ apt-get install -y -V --fix-missing --no-install-recommends \
+ ldap-utils \
+ slapd
- name: RUN TESTS
run: |
make -C deps/rabbitmq_auth_backend_ldap tests \
@@ -9289,6 +9300,10 @@ jobs:
with:
otp-version: "23.1"
elixir-version: 1.10.4
+ - name: INSTALL etcd
+ run: |
+ apt-get install -y -V --fix-missing --no-install-recommends \
+ daemonize
- name: RUN TESTS
run: |
make -C deps/rabbitmq_peer_discovery_etcd tests \
@@ -10032,9 +10047,11 @@ jobs:
if: '!contains(github.event.head_commit.message, ''[ci skip]'') && (success() || failure())'
steps:
- uses: technote-space/workflow-conclusion-action@v1
+ - uses: google-github-actions/setup-gcloud@master
+ with:
+ service_account_key: ${{ secrets.GCR_JSON_KEY }}
+ export_default_credentials: true
- name: RECORD BUILD FINISH
run: |
echo -n "${{ env.WORKFLOW_CONCLUSION }}" > conclusion
-
- gsutil cp conclusion \
- 'gs://monorepo_github_actions_conclusions/${{ github.sha }}/${{ github.workflow }}'
+ gsutil cp conclusion 'gs://monorepo_github_actions_conclusions/${{ github.sha }}/${{ github.workflow }}'
diff --git a/.github/workflows/test-erlang-otp-git.yaml b/.github/workflows/test-erlang-otp-git.yaml
index 8769216422..a3dba5bb51 100644
--- a/.github/workflows/test-erlang-otp-git.yaml
+++ b/.github/workflows/test-erlang-otp-git.yaml
@@ -3766,6 +3766,17 @@ jobs:
with:
otp-version: git
elixir-version: 1.10.4
+ - name: INSTALL slapd
+ run: |
+ echo 'slapd slapd/internal/generated_adminpw password rabbitmq' | debconf-set-selections && \
+ echo 'slapd slapd/internal/adminpw password rabbitmq' | debconf-set-selections && \
+ echo 'slapd slapd/password2 password rabbitmq' | debconf-set-selections && \
+ echo 'slapd slapd/password1 password rabbitmq' | debconf-set-selections && \
+ echo 'slapd slapd/backend select HDB' | debconf-set-selections
+
+ apt-get install -y -V --fix-missing --no-install-recommends \
+ ldap-utils \
+ slapd
- name: RUN TESTS
run: |
make -C deps/rabbitmq_auth_backend_ldap tests \
@@ -4318,6 +4329,10 @@ jobs:
with:
otp-version: git
elixir-version: 1.10.4
+ - name: INSTALL etcd
+ run: |
+ apt-get install -y -V --fix-missing --no-install-recommends \
+ daemonize
- name: RUN TESTS
run: |
make -C deps/rabbitmq_peer_discovery_etcd tests \
@@ -5060,9 +5075,11 @@ jobs:
if: '!contains(github.event.head_commit.message, ''[ci skip]'') && (success() || failure())'
steps:
- uses: technote-space/workflow-conclusion-action@v1
+ - uses: google-github-actions/setup-gcloud@master
+ with:
+ service_account_key: ${{ secrets.GCR_JSON_KEY }}
+ export_default_credentials: true
- name: RECORD BUILD FINISH
run: |
echo -n "${{ env.WORKFLOW_CONCLUSION }}" > conclusion
-
- gsutil cp conclusion \
- 'gs://monorepo_github_actions_conclusions/${{ github.sha }}/${{ github.workflow }}'
+ gsutil cp conclusion 'gs://monorepo_github_actions_conclusions/${{ github.sha }}/${{ github.workflow }}'
diff --git a/workflow_sources/deps.yml b/workflow_sources/deps.yml
index bcd5e65628..c96ef3ab4c 100644
--- a/workflow_sources/deps.yml
+++ b/workflow_sources/deps.yml
@@ -150,6 +150,7 @@ deps:
- name: rabbitmq_auth_backend_ldap
skip_dialyzer: true
+ use_slapd: true
suites:
- name: config_schema
- name: system
@@ -280,6 +281,7 @@ deps:
- name: rabbitmq_peer_discovery_etcd
skip_dialyzer: true
+ use_etcd: true
suites:
- name: config_schema
- name: system
diff --git a/workflow_sources/test/finish.lib.yml b/workflow_sources/test/finish.lib.yml
index 390047e99b..66dfb08f42 100644
--- a/workflow_sources/test/finish.lib.yml
+++ b/workflow_sources/test/finish.lib.yml
@@ -32,10 +32,12 @@ finish:
#@yaml/text-templated-strings
steps:
- uses: technote-space/workflow-conclusion-action@v1
+ - uses: google-github-actions/setup-gcloud@master
+ with:
+ service_account_key: ${{ secrets.GCR_JSON_KEY }}
+ export_default_credentials: true
- name: RECORD BUILD FINISH
run: |
echo -n "${{ env.WORKFLOW_CONCLUSION }}" > conclusion
-
- gsutil cp conclusion \
- 'gs://(@= gcs_path() @)'
+ gsutil cp conclusion 'gs://(@= gcs_path() @)'
#@ end \ No newline at end of file
diff --git a/workflow_sources/test/tests.lib.yml b/workflow_sources/test/tests.lib.yml
index fbe71a1d09..eed996a193 100644
--- a/workflow_sources/test/tests.lib.yml
+++ b/workflow_sources/test/tests.lib.yml
@@ -16,6 +16,25 @@ steps:
with:
otp-version: #@ erlang_version
elixir-version: #@ data.values.elixir_version
+ #@ if getattr(dep, 'use_slapd', False):
+ - name: INSTALL slapd
+ run: |
+ echo 'slapd slapd/internal/generated_adminpw password rabbitmq' | debconf-set-selections && \
+ echo 'slapd slapd/internal/adminpw password rabbitmq' | debconf-set-selections && \
+ echo 'slapd slapd/password2 password rabbitmq' | debconf-set-selections && \
+ echo 'slapd slapd/password1 password rabbitmq' | debconf-set-selections && \
+ echo 'slapd slapd/backend select HDB' | debconf-set-selections
+
+ apt-get install -y -V --fix-missing --no-install-recommends \
+ ldap-utils \
+ slapd
+ #@ end
+ #@ if getattr(dep, 'use_etcd', False):
+ - name: INSTALL etcd
+ run: |
+ apt-get install -y -V --fix-missing --no-install-recommends \
+ daemonize
+ #@ end
#@ if getattr(dep, 'use_terraform', False):
- name: PREPARE TERRAFORM SECRETS
run: |