Code Monkey home page Code Monkey logo

Comments (10)

g105b avatar g105b commented on June 27, 2024 9

Any movement on this?

from upload-artifact.

Th3S4mur41 avatar Th3S4mur41 commented on June 27, 2024 3

Facing the same issue... The current solution to the problem is to use upload-tartifact and download-tartifact which do exactly that.

It would be nicer to have an option in the original action to tar before upload / untar after download instead

from upload-artifact.

g105b avatar g105b commented on June 27, 2024 1

I understand and share your frustration. I hope this is made a bit simpler soon.

from upload-artifact.

g105b avatar g105b commented on June 27, 2024

You should not use actions/upload-artifact for this, instead you should use actions/cache - see https://github.com/actions/cache

Edit Dec 2020: I was wrong. actions/cache can cache the process of running npm install, but doesn't make sense to share the node_modules directory between steps.

from upload-artifact.

jry-anchor avatar jry-anchor commented on June 27, 2024

@g105b in that case the Passing data between jobs in a workflow doc needs an update, since that page doesn't mention limitations or actions/cache at all. Also Comparing artifacts and dependency caching. How many files and/or which size of directory warrants using caching instead of archiving?

Also calling it a cache for some "artifacts" but not others is a bit of a misnomer, since I need the exact contents of the directory in all the jobs in the workflow.

from upload-artifact.

Clemens-E avatar Clemens-E commented on June 27, 2024

Hi, I'm trying to have a build process spit out a fully working artifact that includes everything it needs to run (node_modules, dist, etc).
But I'm facing the same problem: uploading 16k files takes longer than actually building the whole application.

If I understand this correct, actions/cache would only help if you need to share the node_modules between workflow runs?

Is there any workaround to force actions/upload-artifact to somehow tar the files instead of uploading them all individually?
I also tried using actions/create-zip-file, which speeds everything up, but when downloading the artifact there now is a zip inside a zip, and I feel like that's unnecessary.
I'm guessing #69 would fix this problem, but it doesn't seem like that will be a thing soon

from upload-artifact.

MCOfficer avatar MCOfficer commented on June 27, 2024

You can get a massive boost by taring the folder before uploading it (Zip also works, but then you're wasting time on compression). The resulting file being zipped again is unfortunate, but the speedup is worth it.
Edit: see also #39

from upload-artifact.

olalonde avatar olalonde commented on June 27, 2024

Bump. This should probably be done by default.

from upload-artifact.

raimille1 avatar raimille1 commented on June 27, 2024

Bump!

from upload-artifact.

g105b avatar g105b commented on June 27, 2024

Any movement on this?

from upload-artifact.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.