devise testing strategy for uv's cache #1699
Labels
internal
A refactor or improvement that is not user-facing
needs-design
Needs discussion, investigation, or design
testing
Internal testing of behavior
At present, we don't really have a good way of testing our cache specifically, other than as part of broader test. We should try to fix this because our caching logic isn't entirely trivial, and issues with it can be difficult to catch. For example, #1571 / #1609 is an issue that occurred where
uv
's internal data structures changed and this caused deserializing older cache data to fail. Catching a bug like this with tests is a little tricky, because it requires injecting intentionally invalid cache data, which isn't something our code really supports right now. The "simplest" path here is probably to just write a test that reaches into the cache directory and writes its own data based on knowledge of what we store there.The text was updated successfully, but these errors were encountered: