actions / actions/toolkit

Make uploadZipToBlobStorage() log raw and compressed sizes ?

Open
#1,741 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
TypeScript
Stars
5.9k
Forks
1.8k
PR merge metrics
No merged PRs in 30d

Description

Describe the enhancement
I would like https://github.com/actions/upload-artifact (and other clients of this function ?) to print some statistics about artifact size, like human size before compression, and human size after compression

An example upload log would look like this: (** denotes the added info)

With the provided path, there will be 1 file uploaded
Artifact name is valid!
Root directory input is valid!
**Artifact size before compression is 391MB**
Beginning upload of artifact content to blob storage
Uploaded bytes 58898
Finished uploading artifact content to blob storage!
SHA256 hash of uploaded artifact zip is 1be075ed8a9304155a5a31d57a94eb4d085beca34e1aeae72ae0657ae54a0646
Finalizing artifact upload
Artifact my-artifact.zip successfully finalized. Artifact ID 1543616798
Artifact my-artifact has been successfully uploaded! Final **compressed** size is **302MB** bytes. Artifact ID is 1543616798

Additional information
I am ready to submit a PR for this

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at uploadZipToBlobStorage() and trace its callers, including actions/upload-artifact, to find where the existing upload messages are assembled. Compare the requested example with the current logging and identify how raw and compressed sizes are available. Done means the upload output reports both human-readable sizes without changing the upload flow.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
cloud
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.