-
Notifications
You must be signed in to change notification settings - Fork 260
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
Rust stacktraces and panics with validate_assignment and custom fields #1516
Comments
I couldn't get a traceback but could extract this: |
I could trace it back to the |
Thanks for the report. I tried to run |
you run out of file descriptors. Strangely this happens, maybe the tests run too fast and the file descriptors are not returned fast enough. I could it trace it back to the PKField and one other to a |
https://github.com/dymmond/edgy/tree/devkral/potential_pydantic_bugs2 The test command is Edit: the link is now correct. |
a quick fix for running the complete test suite is running |
That command is still not working for me:
|
you have to start the docker services with: |
We forgot to write it in the contributing section, sry |
I just added somewhere a comment which is clearly not enough. |
Ok, I managed to reproduce and have opened #1532 to fix the panic. Thanks. |
Environment:
In the edgy project we customize the fields and models heavily. We inherit from FieldInfo and provide our own information.
Bug:
When turning on
validate_assignment
suddenly rust stack traces appear for some tests. In particular when we modify the fields so they aren't required anymore for the copy.How to reproduce:
Run the test suite of:
https://github.com/dymmond/edgy/tree/devkral/potential_pydantic_bugs
with
hatch test
It seemingly happens when assigning an attribute.
The text was updated successfully, but these errors were encountered: