-
Notifications
You must be signed in to change notification settings - Fork 569
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
v6 cannot be used with actions/download-artifact@v4 #1167
Comments
Thanks for your feedback, looking at the workflow: name: Docker Build
on:
workflow_dispatch:
jobs:
docker:
runs-on: ubuntu-latest
steps:
- uses: docker/build-push-action@v6
post-job:
runs-on: ubuntu-latest
needs: [docker]
steps:
- uses: actions/download-artifact@v4 It seems
And will therefore try to download the
I wonder if this is because we are setting the content disposition header when uploading the file to the store: https://github.com/docker/actions-toolkit/blob/fe9937dd36b64d2090fbfec40e144944ae390a12/src/github.ts#L159 I will take a closer look. |
After enabling debug it seems it fails because the file is not a valid zip which makes sense because in your case it's a gzip:
Seems related to actions/download-artifact#328 |
Found a way to mitigate this issue when using Will see for maintainers feedback. |
Had the same issue. If you remove the build summary artifacts it works again. I think you can disable it with setting |
Since https://github.com/docker/build-push-action/releases/tag/v6.3.0 you can also just set |
An [example of reproduced issue](https://github.com/saisatishkarra/public-shared-actions/actions/runs/9781049546/job/27004202651#step:2:16 to download all assets using actions/download@v4 after the docker/build-push-action@v6 job |
I think you mean build record upload not "disable docker summary report" but yeah that's it. |
@crazy-max May I suggest to update the release notes for v6 to mention the incompatibility with download-artifacts and to promote the new environment flag to disable that behavior instead of a deprecated one? Manny people will get the dependabot PR to update the action but it will serve outdated/inakkurate information for compatibility if it is not mentioned in the release notes. |
Jobs fail once `*.dockerbuild` got uploaded: - docker/build-push-action#1167. - https://github.com/EnricoMi/publish-unit-test-result-action/actions/runs/9876224564/job/27275276162#step:6:12
The updated docker build-push action is now uploading build results as GitHub artifacts automatically. These break when download-artifacts is used in the "download all" style. We could disable those artifacts, but it's better to be more specific in the download, IMO. docker/build-push-action#1167
Downgrade the artifact upload/download actions to v3 since none of the v4 versions seem to address the "Not a valid zip file" issue. Modified the codesign job to additionally run on PRs, so that when Renovate upgrades the upload/download artifacts, we can tell from the PR if the ZIP file issue is fixed. For more info, see: - actions/download-artifact#328 - docker/build-push-action#1167
Downgrade the artifact upload/download actions to v3 since none of the v4 versions seem to address the "Not a valid zip file" issue. Modified the codesign job to additionally run on PRs, so that when Renovate upgrades the upload/download artifacts, we can tell from the PR if the ZIP file issue is fixed. For more info, see: - actions/download-artifact#328 - docker/build-push-action#1167
Downgrade the artifact upload/download actions to v3 since none of the v4 versions seem to address the "Not a valid zip file" issue. Modified the codesign job to additionally run on PRs, so that when Renovate upgrades the upload/download artifacts, we can tell from the PR if the ZIP file issue is fixed. For more info, see: - actions/download-artifact#328 - docker/build-push-action#1167
### What changes were proposed in this pull request? Upgrade `dawidd6/action-download-artifact` from v1 to v6 Upgrade `scacap/action-surefire-report` from v1.0.13 to v1.8.0 ### Why are the changes needed? Current versions have the following problems: `dawidd6/action-download-artifact` failing: ``` ==> Downloading: apache~spark~ADIBKZ.dockerbuild.zip (44.7 kB) Error: <?xml version="1.0" encoding="utf-8"?> <Error><Code>AuthenticationFailed</Code><Message>Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature. RequestId:2c8b19f5-601e-007f-54e7-ffac7a000000 Time:2024-09-05T23:01:54.1979479Z</Message></Error> ``` https://github.com/apache/spark/actions/runs/10729437729/job/29756039009#step:2:15-17 `scacap/action-surefire-report` warning: ``` Warning: The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/ ``` https://github.com/apache/spark/actions/runs/10723482700/job/29736875911#step:3:14 ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? In GitHub CI: The download succeeds (authentication issue above resolved), not hit by another bug: docker/build-push-action#1167 ``` ==> Downloading: G-Research~spark~R7TXVG.dockerbuild.zip (23.76 kB) Error: Invalid or unsupported zip format. No END header found ``` https://github.com/G-Research/spark/actions/runs/10733657395/job/29767392437#step:2:27 To be fixed in #48012. ### Was this patch authored or co-authored using generative AI tooling? No. Closes #48011 from EnricoMi/master. Authored-by: Enrico Minack <[email protected]> Signed-off-by: Hyukjin Kwon <[email protected]>
### What changes were proposed in this pull request? Upgrade `dawidd6/action-download-artifact` from v1 to v6 Upgrade `scacap/action-surefire-report` from v1.0.13 to v1.8.0 ### Why are the changes needed? Current versions have the following problems: `dawidd6/action-download-artifact` failing: ``` ==> Downloading: apache~spark~ADIBKZ.dockerbuild.zip (44.7 kB) Error: <?xml version="1.0" encoding="utf-8"?> <Error><Code>AuthenticationFailed</Code><Message>Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature. RequestId:2c8b19f5-601e-007f-54e7-ffac7a000000 Time:2024-09-05T23:01:54.1979479Z</Message></Error> ``` https://github.com/apache/spark/actions/runs/10729437729/job/29756039009#step:2:15-17 `scacap/action-surefire-report` warning: ``` Warning: The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/ ``` https://github.com/apache/spark/actions/runs/10723482700/job/29736875911#step:3:14 ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? In GitHub CI: The download succeeds (authentication issue above resolved), not hit by another bug: docker/build-push-action#1167 ``` ==> Downloading: G-Research~spark~R7TXVG.dockerbuild.zip (23.76 kB) Error: Invalid or unsupported zip format. No END header found ``` https://github.com/G-Research/spark/actions/runs/10733657395/job/29767392437#step:2:27 To be fixed in apache#48012. ### Was this patch authored or co-authored using generative AI tooling? No. Closes apache#48011 from EnricoMi/master. Authored-by: Enrico Minack <[email protected]> Signed-off-by: Hyukjin Kwon <[email protected]>
### What changes were proposed in this pull request? Upgrade `dawidd6/action-download-artifact` from v1 to v6 Upgrade `scacap/action-surefire-report` from v1.0.13 to v1.8.0 ### Why are the changes needed? Current versions have the following problems: `dawidd6/action-download-artifact` failing: ``` ==> Downloading: apache~spark~ADIBKZ.dockerbuild.zip (44.7 kB) Error: <?xml version="1.0" encoding="utf-8"?> <Error><Code>AuthenticationFailed</Code><Message>Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature. RequestId:2c8b19f5-601e-007f-54e7-ffac7a000000 Time:2024-09-05T23:01:54.1979479Z</Message></Error> ``` https://github.com/apache/spark/actions/runs/10729437729/job/29756039009#step:2:15-17 `scacap/action-surefire-report` warning: ``` Warning: The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/ ``` https://github.com/apache/spark/actions/runs/10723482700/job/29736875911#step:3:14 ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? In GitHub CI: The download succeeds (authentication issue above resolved), not hit by another bug: docker/build-push-action#1167 ``` ==> Downloading: G-Research~spark~R7TXVG.dockerbuild.zip (23.76 kB) Error: Invalid or unsupported zip format. No END header found ``` https://github.com/G-Research/spark/actions/runs/10733657395/job/29767392437#step:2:27 To be fixed in apache#48012. ### Was this patch authored or co-authored using generative AI tooling? No. Closes apache#48011 from EnricoMi/master. Authored-by: Enrico Minack <[email protected]> Signed-off-by: Hyukjin Kwon <[email protected]>
### What changes were proposed in this pull request? Upgrade `dawidd6/action-download-artifact` from v1 to v6 Upgrade `scacap/action-surefire-report` from v1.0.13 to v1.8.0 ### Why are the changes needed? Current versions have the following problems: `dawidd6/action-download-artifact` failing: ``` ==> Downloading: apache~spark~ADIBKZ.dockerbuild.zip (44.7 kB) Error: <?xml version="1.0" encoding="utf-8"?> <Error><Code>AuthenticationFailed</Code><Message>Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature. RequestId:2c8b19f5-601e-007f-54e7-ffac7a000000 Time:2024-09-05T23:01:54.1979479Z</Message></Error> ``` https://github.com/apache/spark/actions/runs/10729437729/job/29756039009#step:2:15-17 `scacap/action-surefire-report` warning: ``` Warning: The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/ ``` https://github.com/apache/spark/actions/runs/10723482700/job/29736875911#step:3:14 ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? In GitHub CI: The download succeeds (authentication issue above resolved), not hit by another bug: docker/build-push-action#1167 ``` ==> Downloading: G-Research~spark~R7TXVG.dockerbuild.zip (23.76 kB) Error: Invalid or unsupported zip format. No END header found ``` https://github.com/G-Research/spark/actions/runs/10733657395/job/29767392437#step:2:27 To be fixed in apache#48012. ### Was this patch authored or co-authored using generative AI tooling? No. Closes apache#48011 from EnricoMi/master. Authored-by: Enrico Minack <[email protected]> Signed-off-by: Hyukjin Kwon <[email protected]>
@crazy-max Has there been any update to this? GitHub is going to be deprecating the old actions on December 5th blog post so people will be required to use v4. Having these docker build artifacts break downloads is going to start causing a larger range of issues. |
@ahatzz11 Will reach GitHub staff and keep you posted. |
Contributing guidelines
I've found a bug, and:
Description
After updating
docker/build-push-action
to v6, we started observing the following error atactions/download-artifact
step.I guess something in the build summary uploading feature is incompatible with
actions/download-artifact
.You can reproduce the problem with this https://github.com/kateinoigakukun/gh-actions-sandbox/actions/runs/9737812232/workflow
Expected behaviour
actions/download-artifact
can download all artifacts even with this action.Actual behaviour
actions/download-artifact
fails while trying to download all artifactsRepository URL
No response
Workflow run URL
No response
YAML workflow
Workflow logs
No response
BuildKit logs
No response
Additional info
No response
The text was updated successfully, but these errors were encountered: