-
Notifications
You must be signed in to change notification settings - Fork 585
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
Uploaded artifact are not zipped #1334
Comments
That would be a breaking change for people relying on the uploaded artifact but you can use the
The issue is not that we should use the ZIP format instead of GZIP but that GitHub should fix the problem on their end when downloading an artifact, as explained in actions/toolkit#1874 (comment). However, we are considering wrapping the build record tarball in a ZIP archive to avoid this issue in the future and support both ZIP and GZIP formats in Docker Desktop for importing builds: https://docs.docker.com/desktop/use-desktop/builds/#import-builds. |
Thanks for the pointer. I'll close this one as it's clearly already covered. I'll comment there too. |
This is in fact the other way: these artifact assets were added in some recent release by default and that was the breaking change for us and probably many others. The assets started being uploaded during our workflow and broke the part of it that was downloading all assets. Even worst, it became a race condition because the download step would fail or pass depending on wether a concurrent docker build had terminated before it. That was actually pretty hard to debug. |
This was added in major v6.0.0 release which is by the author's design a "breaking change" release: https://github.com/docker/build-push-action/releases/tag/v6.0.0 So unless you're using |
Makes sense |
Contributing guidelines
I've found a bug, and:
Description
Hi!
I looked for previous issues and did not find any. Apologies if I missed one.
Our build system had become flakey recently after being rock solid for a while. After tinkering and looking around, I think that I have traced it to this action.
The problem seems to be that the artifact uploaded for the docker build summary are improperly described as zip files but are in fact not compressed.
Here are a couple of breadcrumbs:
actions/download-artifact
fails on non-zip files: [bug] download-artifact errors out downloading artifacts uploaded by upload-artifact actions/download-artifact#328 (comment)no trace of any zipping process here.
You will find it pretty hard to know which artifact is failing in the last log but here's the final smoking gun:
Try downloading any of the docker build summary artifact in this page. You get a file named
savonet~liquidsoap~1UVFX2.dockerbuild.zip
for which:Expected behaviour
Artifact should be zipped before being uploaded.
Additionally, I would suggest to turn off artifact upload by default. It pollutes the build's artifact list and is only useful if the user really wants to process them.
Actual behaviour
Artifacts are not zipped before being uploaded.
Repository URL
https://github.com/savonet/liquidsoap
Workflow run URL
https://github.com/savonet/liquidsoap/actions/runs/13591496099/attempts/1
YAML workflow
Workflow logs
No response
BuildKit logs
Additional info
No response
The text was updated successfully, but these errors were encountered: