-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Delete CacheLayer #1549
Comments
I'm more scared about it this now, because I really don't want to expose the need to regenerate all phet-io APIs for each repo. It seems like that cacheing, for multiple pre-commit tasks run in a row, is still working. Perhaps we need to keep that feature? |
Some thoughts, no particular order:
Let's discuss |
This issue has been sitting here for a month because I can't tackle it until we create a solution so that pre-commit hooks don't re-generate phet-io apis for every stable sim for every repo. I believe that is an unacceptable amount of time that devs are wasting right now. |
Notes from today's dev meeting: SR: Do we need MK for this agenda item? Done. real 0m52.597s |
I changed the cache so it is always a cache "miss". This way we will never get an incorrect result, but it will take longer if multiple repos want copies of the same API(s). |
I believe part of the solution to this problem is note phetsims/perennial#420. In that issue I want a one stop shop that answers the question "is my local codebase acceptable?" Some devs are ok with pre-commit hooks extending the time they take by an order of magnitude to account for redundant stable-phet-io-api checks, and others are not. When this is unacceptable for devs, often they turn off phet-io-api comparison in their pre-commit task, and rely on running their own check of it before committing, and CTQ as a fail-safe. My hope is that a general and optimized codebase check can be run via a grunt task, and will be able to batch the redundant and expensive tasks that currently weigh down pre-commit hooks because they have to be able to be run on just a single repo. So I believe this issue is most likely in a good state so long as I understood the notes from the dev meeting last week. |
There are several TODOs listed for this issue. Want to leave the issue open and deferred until phetsims/perennial#420 is ready as a replacement? Then we can delete CacheLayer altogether. |
I think deleting this unused code is good to do now. The next issue probably isn't going to use the same type of caching, since it doesn't need to persist in the same way. Maybe? Not totally sure, but it is right here in the below commit if/when we need it. |
Since adding a new Transpiler, we have some buggy code with CacheLayer I believe. It doesn't know when to break the cache for pre-commits. @samreid is this right?
The text was updated successfully, but these errors were encountered: