You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Use incremental mode in python evaluation test cases #1412
The Python evaluation test cases (which don't actually run the code if there are type errors...) use full stubs for builtins and typing. Using incremental mode would likely speed them up significantly, as processing stubs probably takes the majority of time. These tests are the long pole in the full test suite, so this could give a nice speed boost.
I looked into this for a few minutes and one problem is that currently each test is run in a clean directory. There currently is no way to change the name of the cache directory, and it's always .mypy_cache relative to the current directory. So we'd need something for this. (I've filed #1414 to track it.)
Yes, it looks like name of a method is lost during (de-)serialisation. If you have time and desire, you could fix this yourself, otherwise create a separate issue about this.
@ilevkivskyi that makes sense. I'm afraid I'm not familiar enough with the intricacies of incremental to debug this one. I'll bump the priority of that issue up however.
Activity
gvanrossum commentedon Apr 20, 2016
I looked into this for a few minutes and one problem is that currently each test is run in a clean directory. There currently is no way to change the name of the cache directory, and it's always
.mypy_cacherelative to the current directory. So we'd need something for this. (I've filed #1414 to track it.)emmatyping commentedon May 18, 2018
I just tried making the pythoneval tests use a shared cache directory via this diff:
However I get a failure (consistently) with:
this appears to be an incremental bug?
ilevkivskyi commentedon May 18, 2018
Yes, it looks like name of a method is lost during (de-)serialisation. If you have time and desire, you could fix this yourself, otherwise create a separate issue about this.
ilevkivskyi commentedon May 19, 2018
@ethanhs I think the fail you see is the same as #4772, where also method name disappears after loading from cache
emmatyping commentedon May 19, 2018
@ilevkivskyi that makes sense. I'm afraid I'm not familiar enough with the intricacies of incremental to debug this one. I'll bump the priority of that issue up however.
ilevkivskyi commentedon May 24, 2018
@ethanhs #5109 should unblock this.
Preserve the name of first argument in methods when serializing (#5109)
Use a shared incremental cache for pythoneval tests (#5114)