-
Notifications
You must be signed in to change notification settings - Fork 12
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
Fix CI & linters. #75
Conversation
Pinning diffsync back to 1.3.0 resolve methods signature incompatibility in 1.5.0, linting is now fine, however unittests are failing due to maximum recursion depth exceeded in
|
@pszulczewski I'm getting a similar issue here: https://github.com/networktocode/circuit-maintenance-parser/runs/7113884836?check_suite_focus=true |
Nope, it fails on my PC(AMD 4750U) WIN10 + WSL2 Ubuntu. Max recursion by default is set to 1000, setting it higher to 10.000 doesn't solve it. |
Initial investigation is suggesting that it may be an issue introduced in recent versions of Pydantic (such as pydantic/pydantic#4114 perhaps?) but I'll continue to look into it. |
The original reported ValueError should be fixed by networktocode/diffsync#118; still investigating the RecursionError. |
def setUpTestData(cls) -> None: | ||
"""One-time setup function called before running the test functions in this class.""" | ||
cls.cmd = CommandObjChange() | ||
cls.cmd.logger = Mock() | ||
cls.cmd.logger.warning = Mock() | ||
def setUp(self) -> None: | ||
"""Pre-test setup function. | ||
|
||
Note that this was originally a setUpTestData() classmethod, but when moving to a newer version of Django, | ||
we found that then accessing `self.cmd` would result in Django throwing an infinite RecursionError. | ||
Probably a Django bug, but changing to setUp() appears to avoid the issue at the cost of slightly slower tests. | ||
""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That was really tricky!!!
Thanks Glenn for moving this forward!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Bumped up python version to 3.7, refreshed poetry.lock + few linting updates.
Unittests are failing during
setUpClass
with the following exception.This is beyond my diffsync knowledge.