Replies: 2 comments
-
I'm not totally against it, but I haven't used mypy before. Let me try it out and get back to you. This still doesn't fix the underlying problem of tests taking a long time to run. Fundamentally I think our problem is related to the package structure. We're testing every agent all the time, which is why it's so expensive. Often PRs are relevant to a singular agent. If only the tests for that agent ran it would be a lot quicker. I don't quite know how to solve this in a way that's simple to maintain. |
Beta Was this translation helpful? Give feedback.
-
Following up on the discussion today. I'm onboard with running mypy on these repos, starting with We went through this before when adding |
Beta Was this translation helpful? Give feedback.
-
For a number of reasons I think OCS and SOCS would benefit a lot from proper typing and static type checking. The main reason being that tests currently are very expensive, taking ~30 minutes to run, however the majority of bugs that we catch are issues that could have been found by type-checking with mypy, given that our functions are properly typed.
How do people feel about pushing static typing and encouraging developers to do this? We could use the "agent robustness" push as an opportunity to roll out static typing to individual agents.
One large barrier to full coverage is dynamically generated objects such as OCS Clients and session data, however I do not think this should prevent us from typing other parts of our code.
Beta Was this translation helpful? Give feedback.
All reactions