Skip to content

Commit d5b8180

Browse files
committed
chore(ci): gc stress tests to save logs as artifacts
Signed-off-by: Andrei Aaron <[email protected]>
1 parent 72d9633 commit d5b8180

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/gc-stress-test.yaml

+34
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,14 @@ jobs:
3737
sudo rm -rf /tmp/zot
3838
continue-on-error: true
3939

40+
- name: Upload zot logs
41+
uses: actions/upload-artifact@v4
42+
if: always()
43+
with:
44+
name: gc-referrers-bench-local
45+
path: /tmp/gc-referrers-bench-local.log
46+
if-no-files-found: error
47+
4048
- name: Check on failures
4149
if: steps.bench.outcome != 'success'
4250
run: |
@@ -68,6 +76,14 @@ jobs:
6876
sudo rm -rf /tmp/zot
6977
continue-on-error: true
7078

79+
- name: Upload zot logs
80+
uses: actions/upload-artifact@v4
81+
if: always()
82+
with:
83+
name: gc-bench-local
84+
path: /tmp/gc-bench-local.log
85+
if-no-files-found: error
86+
7187
- name: Check on failures
7288
if: steps.bench.outcome != 'success'
7389
run: |
@@ -142,11 +158,20 @@ jobs:
142158
AWS_SECRET_ACCESS_KEY: fake
143159
continue-on-error: true
144160

161+
- name: Upload zot logs
162+
uses: actions/upload-artifact@v4
163+
if: always()
164+
with:
165+
name: gc-referrers-bench-s3
166+
path: /tmp/gc-referrers-bench-s3.log
167+
if-no-files-found: error
168+
145169
- name: Check on failures
146170
if: steps.bench.outcome != 'success'
147171
run: |
148172
cat /tmp/gc-referrers-bench-s3.log
149173
exit 1
174+
150175
- uses: ./.github/actions/teardown-localstack
151176

152177
gc-stress-s3:
@@ -217,9 +242,18 @@ jobs:
217242
AWS_SECRET_ACCESS_KEY: fake
218243
continue-on-error: true
219244

245+
- name: Upload zot logs
246+
uses: actions/upload-artifact@v4
247+
if: always()
248+
with:
249+
name: gc-bench-s3
250+
path: /tmp/gc-bench-s3.log
251+
if-no-files-found: error
252+
220253
- name: Check on failures
221254
if: steps.bench.outcome != 'success'
222255
run: |
223256
cat /tmp/gc-bench-s3.log
224257
exit 1
258+
225259
- uses: ./.github/actions/teardown-localstack

0 commit comments

Comments
 (0)