36
36
uses : actions/cache@v4
37
37
with :
38
38
path : ${{ github.workspace }}
39
- key : ${{ runner.os }}-make-cache-${{ needs.prepare .outputs.hash }}
39
+ key : ${{ runner.os }}-make-cache-${{ needs.xref .outputs.hash }}
40
40
fail-on-cache-miss : true
41
41
- name : RESTORE TEST RESULT CACHE
42
42
uses : actions/cache/restore@v3
43
43
with :
44
44
path : /home/runner/test-result-cache/
45
- key : ${{ runner.os }}-test-result-cache-${{ needs.prepare .outputs.hash }}-${{ github.run_number }}-${{ github.run_attempt }}
45
+ key : ${{ runner.os }}-test-result-cache-${{ needs.xref .outputs.hash }}-${{ github.run_number }}-${{ github.run_attempt }}
46
46
restore-keys : |
47
- ${{ runner.os }}-test-result-cache-${{ needs.prepare .outputs.hash }}-${{ github.run_number }}-${{ needs.prepare .outputs.previous_run_attempt }}
48
- ${{ runner.os }}-test-result-cache-${{ needs.prepare .outputs.hash }}-${{ github.run_number }}-
49
- ${{ runner.os }}-test-result-cache-${{ needs.prepare .outputs.hash }}-
47
+ ${{ runner.os }}-test-result-cache-${{ needs.xref .outputs.hash }}-${{ github.run_number }}-${{ needs.xref .outputs.previous_run_attempt }}
48
+ ${{ runner.os }}-test-result-cache-${{ needs.xref .outputs.hash }}-${{ github.run_number }}-
49
+ ${{ runner.os }}-test-result-cache-${{ needs.xref .outputs.hash }}-
50
50
- name : PRINT CACHED RESULTS
51
51
run : |
52
52
set -x
59
59
- name : PREPARE
60
60
run : |
61
61
mkdir -p ${{ env.SUCCESS_PATH }}
62
- - name : XREF
63
- run : |
64
- if [[ -f ${{ env.SUCCESS_PATH }}/xref ]]; then
65
- echo "xref already passed for this key ${{ needs.prepare.outputs.hash }}"
66
- else
67
- make -C deps/(@= name @) \
68
- xref \
69
- RABBITMQ_METADATA_STORE=${{ matrix.metadata_store }}
70
- touch ${{ env.SUCCESS_PATH }}/xref
71
- fi
72
62
- name : DIALYZE
73
63
run : |
74
64
if [[ -f ${{ env.SUCCESS_PATH }}/dialyze ]]; then
75
- echo "dialyze already passed for this key ${{ needs.prepare .outputs.hash }}"
65
+ echo "dialyze already passed for this key ${{ needs.xref .outputs.hash }}"
76
66
else
77
67
make -C deps/(@= name @) \
78
68
dialyze \
83
73
- name : EUNIT
84
74
run : |
85
75
if [[ -f ${{ env.SUCCESS_PATH }}/eunit ]]; then
86
- echo "eunit already passed for this key ${{ needs.prepare .outputs.hash }}"
76
+ echo "eunit already passed for this key ${{ needs.xref .outputs.hash }}"
87
77
else
88
78
make -C deps/(@= name @) \
89
79
eunit \
94
84
- name : CT (@= suite @)
95
85
run : |
96
86
if [[ -f ${{ env.SUCCESS_PATH }}/ct-(@= suite @) ]]; then
97
- echo "ct-(@= suite @) already passed for this key ${{ needs.prepare .outputs.hash }}"
87
+ echo "ct-(@= suite @) already passed for this key ${{ needs.xref .outputs.hash }}"
98
88
else
99
89
make -C deps/(@= name @) \
100
90
ct-(@= suite @) \
138
128
uses : actions/cache@v4
139
129
with :
140
130
path : ${{ github.workspace }}
141
- key : ${{ runner.os }}-make-cache-${{ needs.prepare .outputs.hash }}
131
+ key : ${{ runner.os }}-make-cache-${{ needs.xref .outputs.hash }}
142
132
fail-on-cache-miss : true
143
133
- name : RESTORE TEST RESULT CACHE
144
134
uses : actions/cache/restore@v3
145
135
with :
146
136
path : /home/runner/test-result-cache/
147
- key : ${{ runner.os }}-test-result-cache-${{ needs.prepare .outputs.hash }}-${{ github.run_number }}-${{ github.run_attempt }}
137
+ key : ${{ runner.os }}-test-result-cache-${{ needs.xref .outputs.hash }}-${{ github.run_number }}-${{ github.run_attempt }}
148
138
restore-keys : |
149
- ${{ runner.os }}-test-result-cache-${{ needs.prepare .outputs.hash }}-${{ github.run_number }}-${{ needs.prepare .outputs.previous_run_attempt }}
150
- ${{ runner.os }}-test-result-cache-${{ needs.prepare .outputs.hash }}-${{ github.run_number }}-
151
- ${{ runner.os }}-test-result-cache-${{ needs.prepare .outputs.hash }}-
139
+ ${{ runner.os }}-test-result-cache-${{ needs.xref .outputs.hash }}-${{ github.run_number }}-${{ needs.xref .outputs.previous_run_attempt }}
140
+ ${{ runner.os }}-test-result-cache-${{ needs.xref .outputs.hash }}-${{ github.run_number }}-
141
+ ${{ runner.os }}-test-result-cache-${{ needs.xref .outputs.hash }}-
152
142
- name : PRINT CACHED RESULTS
153
143
run : |
154
144
set -x
165
155
id : test
166
156
run : |
167
157
if [[ -f ${{ env.SUCCESS_PATH }}/checks ]]; then
168
- echo "checks already passed for this key ${{ needs.prepare .outputs.hash }}"
158
+ echo "checks already passed for this key ${{ needs.xref .outputs.hash }}"
169
159
else
170
160
make -C deps/rabbitmq_cli \
171
161
checks \
@@ -203,7 +193,7 @@ concurrency:
203
193
group : ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
204
194
cancel-in-progress : true
205
195
jobs :
206
- prepare :
196
+ xref :
207
197
runs-on : ubuntu-latest
208
198
outputs :
209
199
hash : ${{ steps.hash.outputs.hash }}
@@ -241,28 +231,31 @@ jobs:
241
231
- name : BUILD
242
232
run : |
243
233
make
234
+ - name : XREF
235
+ run : |
236
+ make xref
244
237
# @ for plugin in data.values.internal_deps:
245
- _ : # @ template.replace(test_plugin(plugin, ["prepare "], data.values[plugin].suites))
238
+ _ : # @ template.replace(test_plugin(plugin, ["xref "], data.values[plugin].suites))
246
239
# @ end
247
- _ : # @ template.replace(test_plugin("rabbit", ["prepare "] + job_names(data.values.internal_deps), data.values.rabbit.suites))
248
- _ : # @ template.replace(test_cli(["prepare ", "test-rabbit"]))
240
+ _ : # @ template.replace(test_plugin("rabbit", ["xref "] + job_names(data.values.internal_deps), data.values.rabbit.suites))
241
+ _ : # @ template.replace(test_cli(["xref ", "test-rabbit"]))
249
242
# @ for plugin in data.values.tier1_plugins:
250
- _ : # @ template.replace(test_plugin(plugin, ["prepare ", "test-rabbitmq_cli"], data.values[plugin].suites))
243
+ _ : # @ template.replace(test_plugin(plugin, ["xref ", "test-rabbitmq_cli"], data.values[plugin].suites))
251
244
# @ end
252
245
summary-test-make :
253
246
if : always()
254
- needs : # @ ["prepare ", "test-rabbit", "test-rabbitmq_cli"] + job_names(data.values.internal_deps + data.values.tier1_plugins)
247
+ needs : # @ ["xref ", "test-rabbit", "test-rabbitmq_cli"] + job_names(data.values.internal_deps + data.values.tier1_plugins)
255
248
runs-on : ubuntu-latest
256
249
steps :
257
250
- name : RESTORE TEST RESULT CACHE
258
251
uses : actions/cache/restore@v3
259
252
with :
260
253
path : /home/runner/test-result-cache/
261
- key : ${{ runner.os }}-test-result-cache-${{ needs.prepare .outputs.hash }}-${{ github.run_number }}-${{ github.run_attempt }}
254
+ key : ${{ runner.os }}-test-result-cache-${{ needs.xref .outputs.hash }}-${{ github.run_number }}-${{ github.run_attempt }}
262
255
restore-keys : |
263
- ${{ runner.os }}-test-result-cache-${{ needs.prepare .outputs.hash }}-${{ github.run_number }}-${{ needs.prepare .outputs.previous_run_attempt }}
264
- ${{ runner.os }}-test-result-cache-${{ needs.prepare .outputs.hash }}-${{ github.run_number }}-
265
- ${{ runner.os }}-test-result-cache-${{ needs.prepare .outputs.hash }}-
256
+ ${{ runner.os }}-test-result-cache-${{ needs.xref .outputs.hash }}-${{ github.run_number }}-${{ needs.xref .outputs.previous_run_attempt }}
257
+ ${{ runner.os }}-test-result-cache-${{ needs.xref .outputs.hash }}-${{ github.run_number }}-
258
+ ${{ runner.os }}-test-result-cache-${{ needs.xref .outputs.hash }}-
266
259
- name : UPDATE CACHE
267
260
uses : actions/download-artifact@v4
268
261
with :
@@ -277,7 +270,7 @@ jobs:
277
270
uses : actions/cache/save@v3
278
271
with :
279
272
path : /home/runner/test-result-cache/
280
- key : ${{ runner.os }}-test-result-cache-${{ needs.prepare .outputs.hash }}-${{ github.run_number }}-${{ github.run_attempt }}
273
+ key : ${{ runner.os }}-test-result-cache-${{ needs.xref .outputs.hash }}-${{ github.run_number }}-${{ github.run_attempt }}
281
274
- name : SUMMARY
282
275
run : |
283
276
cat << 'EOF' | jq -e 'map(.result == "success") | all(.)'
0 commit comments