Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork34k
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
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 atleast try to avoid failing a PGO build running tests due to an unlimitedstack size being set.Signed-off-by: Jan André Reuter <j.reuter@fz-juelich.de>
python-cla-botbot commentedJan 9, 2026 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Signed-off-by: Jan André Reuter <j.reuter@fz-juelich.de>
Signed-off-by: Jan André Reuter <j.reuter@fz-juelich.de>
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
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
Uh oh!
There was an error while loading.Please reload this page.
Signed-off-by: Jan André Reuter <j.reuter@fz-juelich.de>
61e0366 intopython:mainUh oh!
There was an error while loading.Please reload this page.
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 atleast try to avoid failing a PGO build running tests due to an unlimitedstack size being set.(cherry picked from commit61e0366)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 the3.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 atleast try to avoid failing a PGO build running tests due to an unlimitedstack size being set.(cherry picked from commit61e0366)Signed-off-by: Jan André Reuter <j.reuter@fz-juelich.de>Co-authored-by: Jan André Reuter <jan.andre.reuter@hotmail.de>
…python#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 atleast try to avoid failing a PGO build running tests due to an unlimitedstack size being set.Signed-off-by: Jan André Reuter <j.reuter@fz-juelich.de>
Uh oh!
There was an error while loading.Please reload this page.
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