-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make artifact names unique to each job in a matrix #57183
Conversation
This needs a bit more work as the artifacts are downloaded later and processed in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for working on this! I think we should try merging the final report-to-issues
job but then it's good to go!
.github/workflows/end2end-test.yml
Outdated
@@ -127,7 +131,7 @@ jobs: | |||
# Don't fail the job if there isn't any flaky tests report. | |||
continue-on-error: true | |||
with: | |||
name: flaky-tests-report | |||
name: flaky-tests-report-${{ matrix.part }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems like we can use the pattern
input to download all artifacts in one step rather than splitting them into multiple parts.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Good spot, I missed those new options. I think this should be addressed now.
@kevin940726 mind giving this another review and blessing when you have a chance? |
Co-authored-by: Kai Hao <[email protected]>
Unfortunately, there's another breaking change I didn't see mentioned in the migration guide 😅. If we use the This can be a follow-up though. 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
I wonder if we can use the I don't think there's any harm in adding that into this PR. I can do some experimenting later this week. |
Based on the code at: https://github.com/actions/download-artifact/blob/f44cd7b40bfd40b6aa1cc1b9b5b7bf03d3c67110/src/download-artifact.ts#L125 It will still set the output even though it downloads nothing 😆. I think the only option we have is to add a bash script to check the emptiness of the directory right after the |
Superseded by #61338. |
What?
This adds the part number to each artifact created in the End2End workflow.
Why?
After
actions/upload-artifact
was updated to version 4.x in #57111, the way artifacts are managed has changed. They are now uploaded on a per job basis and not per workflow. Read more on the release announcement.The key thing to note here is that multiple jobs in the same run cannot upload to the same artifact.
It looks like all other workflows will not be affected by this because of how the matrix strategy is configured (only one job ever tries to upload an artifact with the same name).