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
[bug] (v4) Unable to upload to same artifact name from multiple jobs #478
Comments
Actually, it seems this is called out here:
It just wasn't included in the "What's changed" section of the Dependabot release notes because it just has a summary saying "Lots has changed". I should've followed the link through. Seems like this is certainly intended though. |
Well, this is a bad news for me. I find convenient to use the like in https://github.com/Neoteroi/BlackSheep/actions/runs/7370452109/job/20056867940 Now if I want to upgrade my workflow, I need to publish to different folders and download artifacts from multiple sources - making the workflow look like a mess compared to how clean it used to look like. For now I stay with |
Yeah, I rolled back to v3 too. Until I'm forced to upgrade, the old way is much more convenient for me. |
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 3 to 4. - [Release notes](https://github.com/actions/upload-artifact/releases) - [Commits](actions/upload-artifact@v3...v4) --- updated-dependencies: - dependency-name: actions/upload-artifact dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Possibly fixes actions/upload-artifact#478
Reverts #5830. It is breaking the release pipeline. actions/upload-artifact#478
I had to roll back also |
Same here, I also use a matrix to build multi platform releases in the same directory, and then zipping them all together, rolling back to v3 :( |
Seems like a lot of people have been bitten by this, so although it appears to have been deliberate I'm re-opening for better visibility to see if the authors want to chime in (of course, it's very possible it may just be closed as WAI). |
…a breaking change in actions/upload-artifact@v4 (see actions/upload-artifact#478)
v4 requires to have every uploaded artifact in a separate directory. - actions/upload-artifact#478 - https://github.com/actions/upload-artifact/blob/main/docs/MIGRATION.md
It was just announced that v3 will be disabled on 2024-11-30. https://github.blog/changelog/2024-04-16-deprecation-notice-v3-of-the-artifact-actions/ It is disappointing that the disabling of v3 was announced before v4 reaching feature-completeness. |
…quest: (409) Conflict: an artifact with this name already exists on the workflow run reported in actions/upload-artifact#478
Version 4 of 'actions/download-artifact' introduced a breaking change which broke the 'build-wheels' job. See actions/upload-artifact#478.
…quest: (409) Conflict: an artifact with this name already exists on the workflow run (#152) reported in actions/upload-artifact#478
We are having the same issue |
Then update your code. The description how to do that can be found above. |
Thanks for the notice! Seems like #501 has fixed the issue here. |
If your old configuration merged the artifacts, then |
Also bind it to concrete v4 release
* Add badges, update workflows & names #24 * Add coverage report upload and update readme badge link #24 * Downgrade artifact for easier compatibility #24 See actions/upload-artifact#478 * Move and test dev PR coverage and upload to GH pages, update badge link #24 * Add html report, fix directory structure, fix content overwriting #24 * Remove previous coverage_badge.json from GH pages, add recursive directory creation #24 * Catch mistakes for uploading the coverage_report directory #24 * Move step in which the html reports are generated #24 * Update python code quality version (Version 3.11.6 was not found in the local cache) and mkdir coverage_report #24 * Fix attempt: Explicitly create all directories #24 * Fix attempt: Explicitly state publish branch #24 * Remove broken link to html coverage report #24
I worked around this problem by appending |
I'm setting
|
@dreinhardt89: you shouldn't use |
this migration guide should help? |
What happened?
The PR from dependabot to upgrade to v4 is failing on my project with this error:
It seems like this is a breaking change that wasn't mentioned in the changelog and I'm not sure if it was deliberate.
There's some discussion about this behaviour in #279 and it suggests that it was fine to do this and there wouldn't be issues as long as the filenames within the artifact are unique. This was convenient to bundle the logs from several shards together into a single artifact rather than having lots of individual zip files to download.
What did you expect to happen?
I expected everything to work the same as in v3 unless it was noted as a deliberate breaking change.
How can we reproduce it?
Create multiple jobs that upload artifacts with the same name (but the files from each job are uniquely named).
Anything else we need to know?
No response
What version of the action are you using?
v4.0.0
What are your runner environments?
linux, window, macos
Are you on GitHub Enterprise Server? If so, what version?
No response
The text was updated successfully, but these errors were encountered: