|
39 | 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 |
| - uses: actions/cache/restore@v3 |
| 42 | + uses: actions/cache@v4 |
43 | 43 | with:
|
44 | 44 | path: /home/runner/test-result-cache/
|
45 |
| - key: ${{ runner.os }}-test-result-cache-${{ needs.xref.outputs.hash }}-${{ github.run_number }}-${{ github.run_attempt }} |
| 45 | + key: ${{ runner.os }}-test-result-cache-${{ needs.xref.outputs.hash }}-(@= name @)-${{ github.run_number }}-${{ github.run_attempt }} |
46 | 46 | restore-keys: |
|
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 }}- |
| 47 | + ${{ runner.os }}-test-result-cache-${{ needs.xref.outputs.hash }}-(@= name @)-${{ github.run_number }}-${{ needs.xref.outputs.previous_run_attempt }} |
| 48 | + ${{ runner.os }}-test-result-cache-${{ needs.xref.outputs.hash }}-(@= name @)-${{ github.run_number }}- |
| 49 | + ${{ runner.os }}-test-result-cache-${{ needs.xref.outputs.hash }}-(@= name @)- |
| 50 | + save-always: true |
50 | 51 | - name: PRINT CACHED RESULTS
|
51 | 52 | run: |
|
52 | 53 | set -x
|
53 | 54 | tree /home/runner/test-result-cache
|
| 55 | + continue-on-error: true |
54 | 56 | - name: SETUP ERLANG/ELIXIR
|
55 | 57 | uses: erlef/setup-beam@v1
|
56 | 58 | with:
|
|
97 | 99 | touch ${{ env.SUCCESS_PATH }}/ct-(@= suite @)
|
98 | 100 | fi
|
99 | 101 | #@ end
|
100 |
| - - name: SAVE CACHE COPY |
101 |
| - if: always() |
102 |
| - |
103 |
| - with: |
104 |
| - name: trc-(@= name @)-${{ matrix.metadata_store }}-${{ matrix.otp_version }} |
105 |
| - path: | |
106 |
| - /home/runner/test-result-cache |
107 | 102 | - name: UPLOAD TEST ARTIFACTS
|
108 | 103 | if: always()
|
109 | 104 |
|
|
136 | 131 | key: ${{ runner.os }}-make-cache-${{ needs.xref.outputs.hash }}
|
137 | 132 | fail-on-cache-miss: true
|
138 | 133 | - name: RESTORE TEST RESULT CACHE
|
139 |
| - uses: actions/cache/restore@v3 |
| 134 | + uses: actions/cache@v4 |
140 | 135 | with:
|
141 | 136 | path: /home/runner/test-result-cache/
|
142 |
| - key: ${{ runner.os }}-test-result-cache-${{ needs.xref.outputs.hash }}-${{ github.run_number }}-${{ github.run_attempt }} |
| 137 | + key: ${{ runner.os }}-test-result-cache-${{ needs.xref.outputs.hash }}-rabbitmq_cli-${{ github.run_number }}-${{ github.run_attempt }} |
143 | 138 | restore-keys: |
|
144 |
| - ${{ runner.os }}-test-result-cache-${{ needs.xref.outputs.hash }}-${{ github.run_number }}-${{ needs.xref.outputs.previous_run_attempt }} |
145 |
| - ${{ runner.os }}-test-result-cache-${{ needs.xref.outputs.hash }}-${{ github.run_number }}- |
146 |
| - ${{ runner.os }}-test-result-cache-${{ needs.xref.outputs.hash }}- |
| 139 | + ${{ runner.os }}-test-result-cache-${{ needs.xref.outputs.hash }}-rabbitmq_cli-${{ github.run_number }}-${{ needs.xref.outputs.previous_run_attempt }} |
| 140 | + ${{ runner.os }}-test-result-cache-${{ needs.xref.outputs.hash }}-rabbitmq_cli-${{ github.run_number }}- |
| 141 | + ${{ runner.os }}-test-result-cache-${{ needs.xref.outputs.hash }}-rabbitmq_cli- |
| 142 | + save-always: true |
147 | 143 | - name: PRINT CACHED RESULTS
|
148 | 144 | run: |
|
149 | 145 | set -x
|
150 | 146 | tree /home/runner/test-result-cache
|
| 147 | + continue-on-error: true |
151 | 148 | - name: SETUP ERLANG/ELIXIR
|
152 | 149 | uses: erlef/setup-beam@v1
|
153 | 150 | with:
|
|
167 | 164 | RABBITMQ_METADATA_STORE=${{ matrix.metadata_store }}
|
168 | 165 | touch ${{ env.SUCCESS_PATH }}/checks
|
169 | 166 | fi
|
170 |
| - - name: SAVE CACHE COPY |
171 |
| - if: always() |
172 |
| - |
173 |
| - with: |
174 |
| - name: trc-rabbitmq_cli-${{ matrix.metadata_store }}-${{ matrix.otp_version }} |
175 |
| - path: | |
176 |
| - /home/runner/test-result-cache |
177 | 167 | - name: UPLOAD TEST ARTIFACTS
|
178 | 168 | if: always()
|
179 | 169 |
|
@@ -252,30 +242,6 @@ jobs:
|
252 | 242 | needs: #@ ["xref", "test-rabbit", "test-rabbitmq_cli"] + job_names(data.values.internal_deps + data.values.tier1_plugins)
|
253 | 243 | runs-on: ubuntu-latest
|
254 | 244 | steps:
|
255 |
| - - name: RESTORE TEST RESULT CACHE |
256 |
| - uses: actions/cache/restore@v3 |
257 |
| - with: |
258 |
| - path: /home/runner/test-result-cache/ |
259 |
| - key: ${{ runner.os }}-test-result-cache-${{ needs.xref.outputs.hash }}-${{ github.run_number }}-${{ github.run_attempt }} |
260 |
| - restore-keys: | |
261 |
| - ${{ runner.os }}-test-result-cache-${{ needs.xref.outputs.hash }}-${{ github.run_number }}-${{ needs.xref.outputs.previous_run_attempt }} |
262 |
| - ${{ runner.os }}-test-result-cache-${{ needs.xref.outputs.hash }}-${{ github.run_number }}- |
263 |
| - ${{ runner.os }}-test-result-cache-${{ needs.xref.outputs.hash }}- |
264 |
| - - name: UPDATE CACHE |
265 |
| - uses: actions/download-artifact@v4 |
266 |
| - with: |
267 |
| - pattern: trc-* |
268 |
| - path: /home/runner/test-result-cache |
269 |
| - merge-multiple: true |
270 |
| - - name: PRINT RESULTS |
271 |
| - run: | |
272 |
| - set -x |
273 |
| - tree /home/runner/test-result-cache |
274 |
| - - name: SAVE TEST RESULT CACHE |
275 |
| - uses: actions/cache/save@v3 |
276 |
| - with: |
277 |
| - path: /home/runner/test-result-cache/ |
278 |
| - key: ${{ runner.os }}-test-result-cache-${{ needs.xref.outputs.hash }}-${{ github.run_number }}-${{ github.run_attempt }} |
279 | 245 | - name: SUMMARY
|
280 | 246 | run: |
|
281 | 247 | cat << 'EOF' | jq -e 'map(.result == "success") | all(.)'
|
|
0 commit comments