mirror of
https://github.com/nektos/act.git
synced 2026-04-26 09:25:54 +03:00
[GH-ISSUE #2351] upload-artifact@v4 uploads corrupted archive #1082
Labels
No labels
area/action
area/cli
area/docs
area/image
area/runner
area/workflow
backlog
confirmed/not-planned
kind/bug
kind/discussion
kind/external
kind/feature-request
kind/question
meta/duplicate
meta/invalid
meta/need-more-info
meta/resolved
meta/wontfix
meta/workaround
needs-work
pull-request
review/not-planned
size/M
size/XL
size/XXL
stale
stale-exempt
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/act#1082
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @higaski on GitHub (Jun 4, 2024).
Original GitHub issue: https://github.com/nektos/act/issues/2351
Bug report info
Command used with act
Describe issue
upload-artifact@v4 does produce corrupted archives in some cases. I have no idea why because the log does not hint any issue at all:
I've attached the archive produced from act and the original one from GitHub:
corrupted.zip
original.zip
The very same workflow works for me when using the older upload-artifact@v3.
I've also created a small test example where this is easily reproducible.
Link to GitHub repository
https://github.com/higaski/act_upload_artifact_v4
Workflow content
@tim-janik commented on GitHub (Jun 25, 2024):
I am seeing the same issue, with
act version 0.2.63-9-g935e4c3. The asset corruption seems to be size dependent:Things work fine at 4M:
Things are broken at 8M:
The 8M asset file is obviously too small. Both results are repeatable reliably.
@VAllens commented on GitHub (Aug 9, 2024):
Any progress?
@ChristopherHX commented on GitHub (Aug 9, 2024):
Ahm you post these messages in both gitea and nektos.
So which project are you searching for a solution, without giving feedback what works and what not after the proposed patches.
No, case closed and I have deallocated my resources for this problem.
Yes I have written code to solve this problem, but I left alone and no further review appeared
To clarify I'm using act in github-act-runner, that doesn't make use of artifacts of act. This means low priority for me, but most maintainers are no longer active of today
@VAllens commented on GitHub (Aug 12, 2024):
@ChristopherHX
I'm happy to receive your response.
I don't think I have anything to add.
The problems I'm having have already been stated by the guys.
For example this issue: https://github.com/go-gitea/gitea/issues/31354#issue-2350645196
It must appear when the size of the uploaded artifact exceeds 8MB.
Also, I use it to upload artifacts: https://github.com/ChristopherHX/gitea-upload-artifact