Skip to content

Commit 7815779

Browse files
committed
ci: harden failure diagnostic uploads
1 parent d663487 commit 7815779

4 files changed

Lines changed: 23 additions & 15 deletions

File tree

.github/workflows/coverage-ut.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -435,6 +435,7 @@ jobs:
435435
retention-days: 7
436436
- name: Upload failed UT diagnostics
437437
if: ${{ always() && !cancelled() && steps.coverage_ut.outcome == 'failure' }}
438+
continue-on-error: true
438439
uses: actions/upload-artifact@v7
439440
with:
440441
name: ut-coverage-diagnostics-attempt-${{ github.run_attempt }}

.github/workflows/e2e-compose-parallel.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,11 +187,12 @@ jobs:
187187
docker compose -f etc/launch-tae-compose/compose.yaml --profile launch-multi-cn down --remove-orphans
188188
docker volume rm launch-tae-compose_minio_storage
189189
190-
- uses: actions/upload-artifact@v7
190+
- name: Upload optimistic Compose BVT failure diagnostics
191+
uses: actions/upload-artifact@v7
191192
if: ${{ failure() || cancelled()}}
192193
continue-on-error: true
193194
with:
194-
name: Compose-multi-cn-e2e-bvt-test-docker-log(Optimistic,PUSH)
195+
name: Compose-multi-cn-e2e-bvt-test-docker-log(Optimistic,PUSH)-attempt-${{ github.run_attempt }}
195196
path: |
196197
${{ github.workspace }}/docker-compose-log
197198
retention-days: 7

.github/workflows/e2e-standalone-parallel.yaml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -142,11 +142,12 @@ jobs:
142142
mv ${{ github.workspace }}/head/mo-service.log ${{ github.workspace }}/upload/
143143
mv ${{ github.workspace }}/mo-tester ${{ github.workspace }}/upload/
144144
mv ${{ github.workspace }}/head/dump-stacks* ${{ github.workspace }}/upload/
145-
- uses: actions/upload-artifact@v7
145+
- name: Upload optimistic standalone BVT failure diagnostics
146+
uses: actions/upload-artifact@v7
146147
if: ${{ failure() || cancelled()}}
147148
continue-on-error: true
148149
with:
149-
name: Standalone-e2e-BVT-Test-on-Linux-x64(LAUNCH,Optimistic)-reports
150+
name: Standalone-e2e-BVT-Test-on-Linux-x64(LAUNCH,Optimistic)-reports-attempt-${{ github.run_attempt }}
150151
path: |
151152
${{ github.workspace }}/upload
152153
retention-days: 7
@@ -155,7 +156,7 @@ jobs:
155156
if: ${{ failure() }}
156157
continue-on-error: true
157158
with:
158-
name: Standalone-e2e-BVT-Test-on-Linux-x64(LAUNCH,Optimistic)-mo-data
159+
name: Standalone-e2e-BVT-Test-on-Linux-x64(LAUNCH,Optimistic)-mo-data-attempt-${{ github.run_attempt }}
159160
path: |
160161
${{ github.workspace }}/head/mo-data
161162
retention-days: 7
@@ -243,11 +244,12 @@ jobs:
243244
mv ${{ github.workspace }}/head/mo-service.log ${{ github.workspace }}/upload/
244245
mv ${{ github.workspace }}/mo-tester ${{ github.workspace }}/upload/
245246
mv ${{ github.workspace }}/head/dump-stacks.log ${{ github.workspace }}/upload/
246-
- uses: actions/upload-artifact@v7
247+
- name: Upload proxy standalone BVT failure diagnostics
248+
uses: actions/upload-artifact@v7
247249
if: ${{ failure() || cancelled()}}
248250
continue-on-error: true
249251
with:
250-
name: Standalone-Multi-CN-e2e-BVT-Test-on-Linux-x64(LAUNCH,PROXY)-reports
252+
name: Standalone-Multi-CN-e2e-BVT-Test-on-Linux-x64(LAUNCH,PROXY)-reports-attempt-${{ github.run_attempt }}
251253
path: |
252254
${{ github.workspace }}/upload
253255
retention-days: 7

.github/workflows/e2e-upgrade.yaml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -230,20 +230,22 @@ jobs:
230230
mv $GITHUB_WORKSPACE/upload/workspace/mo-service-upstream $GITHUB_WORKSPACE/upload-2/
231231
mv $GITHUB_WORKSPACE/upload/workspace/mo-data $GITHUB_WORKSPACE/upload-2/
232232
233-
- uses: actions/upload-artifact@v7
233+
- name: Upload compatibility target failure reports
234+
uses: actions/upload-artifact@v7
234235
if: ${{ failure() || cancelled()}}
235236
continue-on-error: true
236237
with:
237-
name: Compatibility-Test-Target-on-Linux-x64(LAUNCH)-reports
238+
name: Compatibility-Test-Target-on-Linux-x64(LAUNCH)-reports-attempt-${{ github.run_attempt }}
238239
path: |
239240
${{ github.workspace }}/upload-1
240241
retention-days: 7
241242

242-
- uses: actions/upload-artifact@v7
243+
- name: Upload compatibility target failure data
244+
uses: actions/upload-artifact@v7
243245
if: ${{ failure() || cancelled()}}
244246
continue-on-error: true
245247
with:
246-
name: Compatibility-Test-Target-on-Linux-x64(LAUNCH)-mo-data
248+
name: Compatibility-Test-Target-on-Linux-x64(LAUNCH)-mo-data-attempt-${{ github.run_attempt }}
247249
path: |
248250
${{ github.workspace }}/upload-2
249251
retention-days: 7
@@ -482,20 +484,22 @@ jobs:
482484
mv $GITHUB_WORKSPACE/upload/workspace/mo-service-upstream $GITHUB_WORKSPACE/upload-2/
483485
mv $GITHUB_WORKSPACE/upload/workspace/mo-data $GITHUB_WORKSPACE/upload-2/
484486
485-
- uses: actions/upload-artifact@v7
487+
- name: Upload compatibility release failure reports
488+
uses: actions/upload-artifact@v7
486489
if: ${{ failure() || cancelled()}}
487490
continue-on-error: true
488491
with:
489-
name: Compatibility-Test-Release-on-Linux-x64(LAUNCH)-reports
492+
name: Compatibility-Test-Release-on-Linux-x64(LAUNCH)-reports-attempt-${{ github.run_attempt }}
490493
path: |
491494
${{ github.workspace }}/upload-1
492495
retention-days: 7
493496

494-
- uses: actions/upload-artifact@v7
497+
- name: Upload compatibility release failure data
498+
uses: actions/upload-artifact@v7
495499
if: ${{ failure() || cancelled()}}
496500
continue-on-error: true
497501
with:
498-
name: Compatibility-Test-Release-on-Linux-x64(LAUNCH)-mo-data
502+
name: Compatibility-Test-Release-on-Linux-x64(LAUNCH)-mo-data-attempt-${{ github.run_attempt }}
499503
path: |
500504
${{ github.workspace }}/upload-2
501505
retention-days: 7

0 commit comments

Comments
 (0)