GithubHelp home page GithubHelp logo

Add Composer Caching about .github HOT 3 CLOSED

srtfisher avatar srtfisher commented on June 10, 2024
Add Composer Caching

from .github.

Comments (3)

dlh01 avatar dlh01 commented on June 10, 2024

I'd like to suggest some reasons why caching shouldn't be a part of the workflows in this repo and that, instead, individual repos be encouraged to include caching if they'd find it helpful.

Adding caching adds a new way that a workflow can break. Granted, most of my experience with dependency caching and CI workflows come from our private client repositories. But in that experience, when a workflow breaks because of something related to cache, it's usually not easy to figure out why, not easy to replicate the problem locally, and not related to the changes in the Pull Request. Implementing the catch-all solution of "clear the cache and try again" is, arguably, also a barrier for someone who doesn't know how to do that (or doesn't have the permission to). All of these conditions make the problem frustrating for someone who is put in a position where they don't have control over why their PR appears to be failing automated tests, especially if they haven't seen Composer caching before.

So, my sense is that omitting caching generally makes it easier for any developer to simulate the behavior of the workflow, which in turn makes it easier to contribute.

Even our busiest repos aren't getting a ton of PRs every month — at least not yet. Are we going to be saving that much time by caching in exchange for its added complexity? Maybe, but I'm not sure.

from .github.

srtfisher avatar srtfisher commented on June 10, 2024

@dlh01 totally agree. it's probably a small amount of time saved. it could also be something optional for the workflows that people can opt into (versus on by default).

from .github.

dlh01 avatar dlh01 commented on June 10, 2024

Making it available but opt-in would be a great balance!

from .github.

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.