-
-
Notifications
You must be signed in to change notification settings - Fork 33.9k
gh-143460: Skip infinite recusion tests for infinite stack size #143606
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
Conversation
Avoid tests being killed due to OOM on Linux if a system is configured with 'ulimit -s unlimited' by skipping tests relying on infinite recursion. While unclear if Python should support 'ulimit -s unlimited', we should at least try to avoid failing a PGO build running tests due to an unlimited stack size being set. Signed-off-by: Jan André Reuter <j.reuter@fz-juelich.de>
Signed-off-by: Jan André Reuter <j.reuter@fz-juelich.de>
Signed-off-by: Jan André Reuter <j.reuter@fz-juelich.de>
Signed-off-by: Jan André Reuter <j.reuter@fz-juelich.de>
Fidget-Spinner
left a comment
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.
This LGTM. Thanks!
vstinner
left a comment
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
Signed-off-by: Jan André Reuter <j.reuter@fz-juelich.de>
|
Thanks @Thyre for the PR, and @Fidget-Spinner for merging it 🌮🎉.. I'm working now to backport this PR to: 3.14. |
…pythonGH-143606) Avoid tests being killed due to OOM on Linux if a system is configured with 'ulimit -s unlimited' by skipping tests relying on infinite recursion. While unclear if Python should support 'ulimit -s unlimited', we should at least try to avoid failing a PGO build running tests due to an unlimited stack size being set. (cherry picked from commit 61e0366) Co-authored-by: Jan André Reuter <jan.andre.reuter@hotmail.de> Signed-off-by: Jan André Reuter <j.reuter@fz-juelich.de>
|
GH-143619 is a backport of this pull request to the 3.14 branch. |
GH-143606) (#143619) gh-143460: Skip infinite recusion tests for infinite stack size (GH-143606) Avoid tests being killed due to OOM on Linux if a system is configured with 'ulimit -s unlimited' by skipping tests relying on infinite recursion. While unclear if Python should support 'ulimit -s unlimited', we should at least try to avoid failing a PGO build running tests due to an unlimited stack size being set. (cherry picked from commit 61e0366) Signed-off-by: Jan André Reuter <j.reuter@fz-juelich.de> Co-authored-by: Jan André Reuter <jan.andre.reuter@hotmail.de>
Avoid tests being killed due to OOM on Linux if a system is configured with
ulimit -s unlimitedby skipping tests relying on infinite recursion viainfinite_recursionwith a high passed number.While unclear if Python should support
ulimit -s unlimited, we should at least try to avoid failing a PGO build running tests due to an unlimited stack size being set.Note: While this lets
makepass on the systems I've tested on (with PGO enabled),make testwill fail withulimit -s unlimited.On a system with sufficient amount of memory, I saw several of these errors:
whereas on my personal machine, I saw some tests with typical recursion (not using
infinite_recursion) still filling up the memory due to the machine having substantially less RAM. There were also two or three timeouts, but without triggering OOM.Based on #143460 (comment), I'd consider this acceptable, but I can also do another round of going through the tests to exclude any test that could yield issues with
ulimit -s unlimited.test_functools/test_json#143460