-
Notifications
You must be signed in to change notification settings - Fork 838
[docs] Uploading different files to the same artifact from multiple jobs #279
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
Comments
I read somewhere (cannot find it atm) that uploading same artifact (even with different files) at same time from multiple jobs can lead to archive corruption. It is probably very rare or maybe it was fixed or is handled differently on backend side and this is not happening any more. Will link to this if I find this info again. //EDIT Found this in current docs:
It is still unclear. Based on second part of this warning when you try to upload to same artifact from multiple jobs then first job should work and the rest should get 503 error. Not really sure what is first part about because first upload will create an artifact (with files from this one job) and it should be proper archive but incomplete because rest of the jobs failing. |
hm
…On Wed, 1 Nov 2023 at 13:59, Piotr ***@***.***> wrote:
I read somewhere (cannot find it atm) that uploading same artifact (even
with different files) at same time from multiple jobs can lead to archive
corruption. It is probably very rare or maybe it was fixed or is handled
differently on backend side and this is not happening any more. Will link
to this if I find this info again.
—
Reply to this email directly, view it on GitHub
<#279 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AXNMDT5ZKOFTM6ETQGHBOT3YCJBURAVCNFSM5JRQWWGKU5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCNZYHA4TCNBSG43Q>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
It worked fine with With actions/upload-artifact@v4 an attempt to upload different files to the same artifact from mulitple jobs fails explicitely with:
However this does not happen with actions/upload-artifact@v3 (same artifact, different paths). |
Is there any update on this discussion? I'm having the same problem from uploading artifacts from a matrixed job |
What files would you like to change?
upload-artifact/README.md
Lines 131 to 177 in f4ac36d
What are your suggested changes?
In the "Uploading to the same artifact" section, it is warned that uploading to the same artifact from multiple jobs can have unexpected results. The proposed workaround is to upload a different artifact from each job in the matrix.
While this does work, it's not super convenient if you need to be able to download all artifacts from a matrixed job in one go.
Based on my understanding of how artifacts in GitHub Actions work, it seems to me like it should be possible to upload to the same artifact from multiple jobs as long as the file paths are all different. For example:
In practice this seems to work fine, but it would be nice to have it clarified in the documentation whether A) this is an intended/supported feature or B) if it's actually still problematic and I'm relying on a race condition succeeding.
If someone from GitHub who knows how the backend works can clarify whether this works intentionally, I can submit a PR adding the appropriate example/disclaimer.
The text was updated successfully, but these errors were encountered: