Skip to content

Write errors to a separate cache file#21022

Open
ilevkivskyi wants to merge 1 commit intopython:masterfrom
ilevkivskyi:errors-separate-file
Open

Write errors to a separate cache file#21022
ilevkivskyi wants to merge 1 commit intopython:masterfrom
ilevkivskyi:errors-separate-file

Conversation

@ilevkivskyi
Copy link
Member

This is needed for staggered interface/implementation processing in the parallel checking.

Implementation is straightforward. A non-trivial part is that it looks like we need to always write/read errors file, even if empty. Otherwise we risk getting into a stale state in some edge cases. This adds few milliseconds warm cache runs, but still under noise level for both self-check and -c 'import torch'.

@ilevkivskyi ilevkivskyi requested a review from JukkaL March 15, 2026 12:53
@github-actions
Copy link
Contributor

According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant