-
Notifications
You must be signed in to change notification settings - Fork 22
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
Feature/traceback serialization #75
Feature/traceback serialization #75
Conversation
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.
Thanks so much for putting this together - it'll be a great boost for usability, without much extra maintenance burdern.
I'd also recommend rebasing your branch, now I've merged some more things in.
Previously, this was re-validating the existing task, rather than considering the modifications
30b7711
to
cf07147
Compare
Traceback are now strings, stylistic remarks are addressed, extranous file is removed. Typing is improved. Missing the C module stack trace for now. |
I'll fix the linter later, meanwhile, is the PR going in the right direction? |
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.
Definitely the right direction 🥳 Couple nits, but otherwise this is looking really nice!
Nits addressed, linting passed. Once everything matches your expectations, I'll squash and force push. |
Looking at the current test failures, asserting the full depth of the stacktrace is likely to cause issues, and ties the tests to how the current version of Python implements it. Given |
Indeed. Especially since error messages have been the focus of improvements by Pablo Galindo Salgado. I'll make the checks more fuzzy. |
Better, now we test that the data looks like we put a traceback in there, but doesn't care much about the formatting of it. I also ran the sqlite test for good measure, although I don't expect the result store to be affected in any way. |
Cheers, and thanks for all the work on a very useful addition to django. |
This is the first draft of what we talked about with the KISSest solution I can think of:
_result
traceback
property to read it if neededI had to make assumption about the
None
issue I mentioned in #68 (comment) since the branch is now rebased, force pushed and deleted. I resolved to returnNone
from the traceback property in case of complex exceptions.The PoC contains passing tests, including types and linting, but no documentation yet, awaiting your feedback to see if this is the spirit you are looking for.
I can squash if needed of course.