-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Shuffle tests #10335
Shuffle tests #10335
Conversation
Hi there 👋, @DryRunSecurity here, below is a summary of our analysis and findings.
Note 🟢 Risk threshold not exceeded. Change Summary (click to expand)The following is a summary of changes in this pull request made by me, your security buddy 🤖. Note that this summary is auto-generated and not meant to be a definitive list of security issues but rather a helpful summary from a security perspective. Summary: The provided code changes are focused on improving the unit testing setup and execution for a Django-based application. The key changes include:
These changes are not directly related to security concerns, but they demonstrate a comprehensive approach to unit testing that can help identify and prevent potential security vulnerabilities early in the development lifecycle. Maintaining a robust and well-structured unit test suite is a good practice from an application security perspective, as it can catch issues before they are introduced into the production environment. Files Changed:
These changes demonstrate a comprehensive approach to unit testing that can help improve the overall security and reliability of the application. Powered by DryRun Security |
I ran into some pickling errors with parallel turned out. I am not really sure what we would need to do to get that working. If shuffle works here, I think that would still make for a pretty big win 😀 |
Yes, I was pleasantly surprised by it as well. |
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.
Approved
@kiblik I think tests were passing here by coincidence like the last time we tried something like this.. Very frustrating... We're going to revert for now, and then fix more widely in the future. Once those fixes are applied, we can enable shuffle again I found something out about this one
The error raises from an exception/stacktrace during the test that is not able to be pickled. I think exceptions are intended to be handled, and then the test will fail via the assertions. |
I suppose the problem with pickling is mainly in |
Test robustness of unittests. They should pass in any order.