Skip to content

Commit e1aaf30

Browse files
phil-blaingitster
authored andcommitted
ci(github): make Windows test artifacts name unique
If several jobs in the windows-test or vs-test matrices fail, the upload-artifact action in each job tries to upload the test directories of the failed tests as "failed-tests-windows.zip", which fails for all jobs except the one which finishes first with the following error: Error: Failed to CreateArtifact: Received non-retryable error: Failed request: (409) Conflict: an artifact with this name already exists on the workflow run Make the artifacts name unique by using the 'matrix.nr' token, and disambiguate the vs-test artifacts from the windows-test ones. Signed-off-by: Philippe Blain <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 3c2a3fd commit e1aaf30

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ jobs:
159159
if: failure() && env.FAILED_TEST_ARTIFACTS != ''
160160
uses: actions/upload-artifact@v4
161161
with:
162-
name: failed-tests-windows
162+
name: failed-tests-windows-${{ matrix.nr }}
163163
path: ${{env.FAILED_TEST_ARTIFACTS}}
164164
vs-build:
165165
name: win+VS build
@@ -250,7 +250,7 @@ jobs:
250250
if: failure() && env.FAILED_TEST_ARTIFACTS != ''
251251
uses: actions/upload-artifact@v4
252252
with:
253-
name: failed-tests-windows
253+
name: failed-tests-windows-vs-${{ matrix.nr }}
254254
path: ${{env.FAILED_TEST_ARTIFACTS}}
255255
regular:
256256
name: ${{matrix.vector.jobname}} (${{matrix.vector.pool}})

0 commit comments

Comments
 (0)