Giter Site home page Giter Site logo

Comments (2)

laurentS avatar laurentS commented on July 20, 2024

Relates to #14
I think the approach you suggest makes sense. I was pondering using a sort of snapshot system saved in the repo (I think vcr.py does that), but using a cache like you suggest is probably less maintenance.

Github's API rate limiting has a 1h window, after which it resets, so we could have a daily job, or even twice daily scheduled job that busts/primes the cache. I'm thinking of what would happen if github's API format suddenly changes in a way that breaks the tap, the less time we wait for CI to fail the better. If the scheduled job refreshes the caches and then runs the CI job on it, we'd get notified of failures quickly. In that case, we can even run all "regular" CI jobs from cache, so they would be much faster as well, which never hurts (and there's still the risk that 2-3 eager devs are pushing code multiple times within a 1h window and hit limits anyway 😉 )

from tap-github.

aaronsteers avatar aaronsteers commented on July 20, 2024

I was pondering using a sort of snapshot system saved in the repo (I think vcr.py does that), but using a cache like you suggest is probably less maintenance.

I agree. In the related SDK issue, we imagine a dev lifecycle where eventually (if not in the first iteration due to PII), the caches are stored in yaml within the repo. This can power CI tests (except when we intentionally ignore/refresh the cache) and gives us --demo behavior down the road without having to require creds that connect to the source.

from tap-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.