Skip to content
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

upload-artifact has a race condition #266

Closed
mthaddon opened this issue Mar 21, 2024 · 3 comments
Closed

upload-artifact has a race condition #266

mthaddon opened this issue Mar 21, 2024 · 3 comments

Comments

@mthaddon
Copy link
Contributor

Currently upload-artifact (v4) has a race condition. Per https://github.com/actions/upload-artifact?tab=readme-ov-file#v4---whats-new:
"""
The contents of an Artifact are uploaded together into an immutable archive. They cannot be altered by subsequent jobs unless the Artifacts are deleted and recreated (where they will have a new ID).
"""
However, if you have multiple jobs running at the same time they will all delete the artifact and then try to upload and potentially fail. We saw this on the jenkins-k8s-operator worfklow. Two out of three failed, because they were all trying to upload at exactly "Thu, 21 Mar 2024 10:18:28 GMT".

We should consider adding a retry.

@mthaddon
Copy link
Contributor Author

mthaddon commented Mar 21, 2024

Note that there is an upstream issue that would work around this actions/upload-artifact#530

@amandahla
Copy link
Collaborator

@weiiwang01 is this issue still relevant?

@weiiwang01
Copy link
Collaborator

@weiiwang01 is this issue still relevant?

This has been resolved in the newer version of the operator-workflows, close this issue, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants