-
-
Notifications
You must be signed in to change notification settings - Fork 16
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
Include target name in the cache key #55
Comments
Hi, @obi1kenobi. Can you please point out exactly where in the codebase cache key is located? |
This is it:
It's constructed from a few different components, but all the building blocks are in the same file so it shouldn't be too hard to see what the key structure currently looks like. |
@obi1kenobi Can you please take a look at my PR and suggest changes in it, if required? |
@memark if you might have the time and interest, this would be a good issue to tackle to make the target selection a bit more robust. Otherwise, there's some risk that runs using different targets might end up inappropriately sharing a cache, which could lead to erroneous results. |
Sure, I'd be happy too. In the declined PR you mentioned that a lot of Rust coding needed to be done in addition to the TypeScript changes. Does that still hold true, and if so what changes would that be? |
The concern I have (which is possibly unfounded, since I don't know the details of the
These two runs should not share baseline rustdoc JSON files via the cache. The equivalent scenario using the GitHub Action shouldn't result in cache reuse either. But I'm not convinced that this is correctly handled at the moment — I think cache reuse would happen in both cases. If so, I think we'll have to:
|
Right now, our cache key includes
rustc --version
but does not include the target name. This can be a caching problem if someone wants to test multiple targets on the same commit and with the same Rust version, which is entirely reasonable (e.g. #54), if a bit rare.The text was updated successfully, but these errors were encountered: