Skip to content

Commit c53639a

Browse files
michaelklishinmergify[bot]
authored andcommitted
Actions: try disabling AppArmor
(cherry picked from commit ba8d7a8) # Conflicts: # .github/workflows/test-make-target.yaml
1 parent 4bbe25e commit c53639a

File tree

3 files changed

+82
-4
lines changed

3 files changed

+82
-4
lines changed
Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
name: Test target (make)
2+
on:
3+
workflow_call:
4+
inputs:
5+
erlang_version:
6+
required: true
7+
type: string
8+
elixir_version:
9+
required: true
10+
type: string
11+
metadata_store:
12+
required: true
13+
type: string
14+
make_target:
15+
required: true
16+
type: string
17+
plugin:
18+
required: true
19+
type: string
20+
jobs:
21+
test:
22+
name: ${{ inputs.plugin }} (${{ inputs.make_target }})
23+
runs-on: ubuntu-latest
24+
timeout-minutes: 30
25+
steps:
26+
- name: CHECKOUT REPOSITORY
27+
uses: actions/checkout@v4
28+
29+
- name: FETCH TAGS
30+
run: git fetch --tags
31+
32+
- name: SETUP OTP & ELIXIR
33+
uses: erlef/[email protected]
34+
with:
35+
otp-version: ${{ inputs.erlang_version }}
36+
elixir-version: ${{ inputs.elixir_version }}
37+
hexpm-mirrors: |
38+
https://builds.hex.pm
39+
https://cdn.jsdelivr.net/hex
40+
# This currently only applies to Elixir; and can be safely
41+
# restricted to the build jobs to avoid duplication in output.
42+
disable_problem_matchers: true
43+
44+
- name: SETUP DOTNET (rabbit)
45+
uses: actions/setup-dotnet@v4
46+
if: inputs.plugin == 'rabbit'
47+
with:
48+
dotnet-version: '3.1.x'
49+
50+
- name: SETUP SLAPD (rabbitmq_auth_backend_ldap)
51+
if: inputs.plugin == 'rabbitmq_auth_backend_ldap'
52+
run: |
53+
sudo apt-get update && \
54+
sudo apt-get install -y \
55+
ldap-utils \
56+
slapd
57+
58+
sudo service apparmor stop
59+
60+
- name: RUN TESTS
61+
if: inputs.plugin != 'rabbitmq_cli'
62+
run: |
63+
make -C deps/${{ inputs.plugin }} ${{ inputs.make_target }} RABBITMQ_METADATA_STORE=${{ inputs.metadata_store }}
64+
65+
# rabbitmq_cli needs a correct broker version for two of its tests.
66+
# But setting PROJECT_VERSION makes other plugins fail.
67+
- name: RUN TESTS (rabbitmq_cli)
68+
if: inputs.plugin == 'rabbitmq_cli'
69+
run: |
70+
make -C deps/${{ inputs.plugin }} ${{ inputs.make_target }} RABBITMQ_METADATA_STORE=${{ inputs.metadata_store }} PROJECT_VERSION="4.1.0"
71+
72+
- name: UPLOAD TEST LOGS
73+
if: always()
74+
uses: actions/upload-artifact@v4
75+
with:
76+
name: CT logs (${{ inputs.plugin }} ${{ inputs.make_target }} OTP-${{ inputs.erlang_version }} ${{ inputs.metadata_store }})
77+
path: |
78+
logs/
79+
!logs/**/log_private
80+
if-no-files-found: ignore

.github/workflows/test-plugin-mixed.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,11 +98,10 @@ jobs:
9898
run: |
9999
sudo apt-get update && \
100100
sudo apt-get install -y \
101-
apparmor-utils \
102101
ldap-utils \
103102
slapd
104103
105-
sudo aa-complain `which slapd`
104+
sudo service apparmor stop
106105
107106
cat << EOF >> user.bazelrc
108107
build --strategy=TestRunner=local

.github/workflows/test-plugin.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,11 +95,10 @@ jobs:
9595
run: |
9696
sudo apt-get update && \
9797
sudo apt-get install -y \
98-
apparmor-utils \
9998
ldap-utils \
10099
slapd
101100
102-
sudo aa-complain `which slapd`
101+
sudo service apparmor stop
103102
104103
cat << EOF >> user.bazelrc
105104
build --strategy=TestRunner=local

0 commit comments

Comments
 (0)