-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Large Actions artifacts (> ~8MB) will fail checksum when merging their chunks #31354
Comments
Investigating... Interesting my original .net based implementation has no problem with 807MB Zip files for me (that doesn't do checksum checks like I did for Gitea, but the linux shasum tool confirms a correct upload) Now I need to test Gitea Actions itself and bisect the problem Related my nektos/act port seem to be affected as well (8 MB mentioned as well...), this could be indeed a porting problem from .net to go |
Problem found for act: Multiple chunks are uploaded with type "block" without using "appendBlock", my .net Implementation didn't have different handling for these upload type and this solves the issue for act itself 8MB seems to be the chunk size |
I also encountered the same problem. |
Multiple chunks are uploaded with type "block" without using "appendBlock" and eventually out of order for bigger uploads. 8MB seems to be the chunk size This change parses the blockList uploaded after all blocks to get the final artifact size and order them correctly before calculating the sha256 checksum over all blocks Fixes go-gitea#31354
Multiple chunks are uploaded with type "block" without using "appendBlock" and eventually out of order for bigger uploads. 8MB seems to be the chunk size This change parses the blockList uploaded after all blocks to get the final artifact size and order them correctly before calculating the sha256 checksum over all blocks Fixes go-gitea#31354 (cherry picked from commit b594cec) Conflicts: routers/api/actions/artifactsv4.go conflict because of Refactor AppURL usage (go-gitea#30885) 67c1a07 that was not cherry-picked in Forgejo the resolution consist of removing the extra ctx argument
ref: https://forum.gitea.com/t/large-actions-artifacts-8mb-will-fail-checksum-when-merging-their-chunks/9291
I'm using a self-hosted Gitea 1.22.0, with the patched version of
upload-artifact@v4
(https://github.com/ChristopherHX/gitea-upload-artifact@v4), and am trying to upload a ~1.8GB artifact.From the Actions step:
When looking at the Gitea server logs, this matches up to this error message:
...artifactsv4.go:363:finalizeArtifact() [E] Error merge chunks: update artifact error checksum is invalid
I did some tests, and it looks like any artifacts that are bigger than roughly 8MB will fail to be merged when finalizing the upload.
The text was updated successfully, but these errors were encountered: