Giter Club home page Giter Club logo

Comments (4)

ryanbourdais avatar ryanbourdais commented on July 19, 2024

Hi @kelvintaywl , can you explain what you were doing when this issue arose? Can you also attach a link to a build that shows this issue to confirm?

from android-orb.

ryanbourdais avatar ryanbourdais commented on July 19, 2024

Hi @kelvintaywl the /tmp/gradle_cache_seed should be generated by restore-gradle-cache . start-emulator-and-run-tests should call save-gradle-cache by default, but it also calls start-emulator which, in turn, calls restore-gradle-cache, generating the /tmp/gradle_cache_seed file. The restore-gradle-cache command has two conditions that need to be met to execute in the start-emulator command, but by default it should run. So the /tmp/gradle_cache_seed file should always be generated unless explicitly prevented by the user. Do you have any instances of this that I can use to get a bettter understanding of this issue?

from android-orb.

kelvintaywl avatar kelvintaywl commented on July 19, 2024

hi @ryanbourdais thanks for the explanation!

I understand indeed then that the hardcoded value there is assumed that the job using this save-gradle-cache command will also use the Orb's restore-gradle-cache then.
My earlier ask was since i did not notice the start-emulator command explicitly calls restore-gradle-cache!

- restore-gradle-cache:

We can close this issue i believe! Thanks for the explanation 🙏

Although I would also like to know why the save-gradle-cache command is also not included in start-emulator but outside of it?

from android-orb.

ryanbourdais avatar ryanbourdais commented on July 19, 2024

hi @kelvintaywl I will close this issue and move onto this issue I believe that save-gradle-cache is separate so that users can choose whether they want to save the cache or not, as restore will just return exit code 0 if there is no cache to restore.

from android-orb.

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.