-
Notifications
You must be signed in to change notification settings - Fork 4
Monkeytype #119
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
Monkeytype #119
Conversation
|
Somewhat inscrutable error:
Inscrutable because pyparsing is definitely installed, etc. The usual cause is a name conflict, but I'm not aware that I'm inserting any pyparsing thing anywhere. |
|
Aaah, and the failure is only on our "lowest developement environment", fedora 35, which means it could be a problem with the library. Not locally reproducible, presumably due to newer Fedora. |
|
Should work on adding support for apply step to hs-dbus-signature. |
Signed-off-by: mulhern <amulhern@redhat.com>
Signed-off-by: mulhern <amulhern@redhat.com>
|
We could make this part of CI...how? |
|
Problem here is that there is a sequence of steps:
We can do that all in nightly CI w/out difficulty, but it is not a single step so would be mean to impose on developer all the time. On the other hand, the developer may make a change that requires or results in an update to a type. So we need to add a shell script for them...and then, how to use exactly? This can fail in a number of places:
|
c9cc19b to
c9fa3ca
Compare
|
Another problem monkeytype has is that it needs extra help finding the pip install path to use. the simple Makefile 'test' target does not require that the PYTHONPATH be set, but the monkeytype test target does. |
d409d9e to
a34b23f
Compare
|
And, a problem for this project, I suspect that the order of types in a Union type are determined by the frequency of their occurrence within a call trace. So, if the majority of one's test suite is not deterministic in its choice of tests, the order of types in a Union type will flip around. |
Annotate modules with what seem to be correct types and that pass the linter and all tests. Add a check for type annotations changes that only runs when merged, since this package is rather dormant and so nightly is annoyingly frequent. Restrict its operation to modules where it does not currently introduce annotations that cause some kind of test failure, or make syntactic changes in the annotations that result in a diff. This reduces the number of modules automatically checked to exactly one, but other projects are likely to do a bit better than that. Signed-off-by: mulhern <amulhern@redhat.com>
Related stratis-storage/project#89