upload-artifact zips .tar.gz archive

Created on 5 Aug 2020  路  3Comments  路  Source: actions/upload-artifact

Describe the bug
Uploading a .tar.gz artifact results in the archive being .zipped. Many (if not probably most) projects on GitHub tend to prefer the .tar.gz extension, rather than .zip, so it most likely isn't a good idea to archive them again under a different format and/or forcing maintainers to use a specific version.

Version

  • [ ] V1
  • [x] V2

Environment

  • [ ] self-hosted
  • [x] Linux
  • [ ] Windows
  • [ ] Mac

Screenshots

image

Run/Repo Url
As I may take down or otherwise modify my tree at any given moment, here's the pull request in question.

How to reproduce

  • Step 1: Create .tar.gz archive in a workflow.
  • Step 2: Upload it.
  • Step 3: 馃帄

Additional context
Also see: #39

Most helpful comment

@sagikazarmark

We absolutely have plans to address this, it's on our backlog but there are other priorities that are currently preventing us from picking up the work. Our public roadmap has some high level priorities for Actions for those curious: https://github.com/github/roadmap/projects/1

The experience right now leaves a lot to be desired and an overhaul for the Artifacts UI + better API support has come up in internal discussions multiple times. We're definitely planning on addressing this.

All 3 comments

If you currently upload an any archive file (.zip, .zipx, 7z, .tar, .tar.xz etc), and then attempt to download it from the UI, the current behavior is that you'll get a zip of whatever you uploaded.

This is a limitation of our APIs and our UI, some of my earlier comments go into more details https://github.com/actions/upload-artifact/issues/39#issuecomment-598825674 and https://github.com/actions/upload-artifact/issues/39#issuecomment-612869499

If you also look at our public api to download an artifact, you'll notice that we currently require a zip :archive_format: https://developer.github.com/v3/actions/artifacts/#download-an-artifact and that is what effectively is being used when you click to download an artifact. Ideally we should have options that let get the raw contents of whatever was uploaded without any archiving format, but we currently don't have any solutions 馃槥

@konradpabjan is this behavior going to change at some point or we are stuck with it for life? It's unclear from your comments.

(I get that it's not a limitation of this action, but this is where users are affected, so I think it would make sense to post some updates here or envolve someone who works on the API.)

@sagikazarmark

We absolutely have plans to address this, it's on our backlog but there are other priorities that are currently preventing us from picking up the work. Our public roadmap has some high level priorities for Actions for those curious: https://github.com/github/roadmap/projects/1

The experience right now leaves a lot to be desired and an overhaul for the Artifacts UI + better API support has come up in internal discussions multiple times. We're definitely planning on addressing this.

Was this page helpful?
0 / 5 - 0 ratings