mirror of
https://github.com/nektos/act.git
synced 2026-04-26 09:25:54 +03:00
[PR #1208] [MERGED] Added support for chunked uploads. #1840
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#1840
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?
📋 Pull Request Information
Original PR: https://github.com/nektos/act/pull/1208
Author: @grigorye
Created: 6/10/2022
Status: ✅ Merged
Merged: 6/20/2022
Merged by: @cplee
Base:
master← Head:feature/Chunked-Uploads-With-Multiple-Requests📝 Commits (4)
40ecfd7Added tests for mid-size and big artifacts, reproducing a problem with chunked uploads.7bda6b5Added support for chunked uploads.b6ae8b2Enforced overwriting uploaded artifacts on receiving the first chunk.bb420d1Merge branch 'master' into feature/Chunked-Uploads-With-Multiple-Requests📊 Changes
3 files changed (+126 additions, -3 deletions)
View changed files
📝
pkg/artifacts/server.go(+25 -2)📝
pkg/artifacts/server_test.go(+10 -0)📝
pkg/artifacts/testdata/upload-and-download/artifacts.yml(+91 -1)📄 Description
This is follow-up for https://github.com/nektos/act/pull/1206, eventually addressing https://github.com/nektos/act/pull/677#discussion_r633667121.
It implements a naive handler that just appends every chunk, assuming that upload-artifact does the chunk upload sequentially.
It passes the tests introduced for chunked uploads, that were failing in #1206, so I wonder if it might be enough for starters.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.