Maintenance: Refactor artifact name strategy for parallel uploads #2042
Labels
automation
This item relates to automation
completed
This item is complete and has been merged/shipped
internal
PRs that introduce changes in governance, tech debt and chores (linting setup, baseline, etc.)
Summary
GitHub
actions/upload-artifact
v4 has a racing condition when uploading artifacts with the same artifact name in parallel.For example, our Lambda Layer CDK artifacts are uploaded on a per region deploy in parallel using the a static output name.
While in our repo the workflow ran successfully, the Python version of Powertools was not as lucky and their release failed partially (rerunning the failed jobs serves as a short term workaround).
Related to aws-powertools/powertools-lambda-python#3748
Why is this needed?
N/A
Which area does this relate to?
No response
Solution
Since it's a race condition on upload, we need a dynamic artifact name e.g., one per region. Then merge these artifacts on download.
Or using actions/upload-artifact#505
We'll need a testing environment to create a parallel job to test this out.
Acknowledgment
Future readers
Please react with 👍 and your use case to help us understand customer demand.
The text was updated successfully, but these errors were encountered: