FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-137044: Support large limit values in getrlimit() and setrlimit() by serhiy-storchaka · Pull Request #137338 · python/cpython · GitHub

Repository navigation

gh-137044: Support large limit values in getrlimit() and setrlimit() - #137338

Merged
serhiy-storchaka merged 8 commits into
python:mainfrom
serhiy-storchaka:resource-setrlimit-large
Aug 7, 2025
Merged

serhiy-storchaka merged 8 commits into
python:mainfrom
serhiy-storchaka:resource-setrlimit-large

Conversation

serhiy-storchaka commented Aug 3, 2025 •
edited by bedevere-app Bot
Loading

Copy link
Copy Markdown
Member
  • Return large limit values as positive integers instead of negative integers in resource.getrlimit().
  • Accept large values and reject negative values (except RLIM_INFINITY) for limits in resource.setrlimit().

…mit()

* Return large limit values as positive integers instead of negative integers
  in resource.getrlimit().
* Accept large values and reject negative values (except RLIM_INFINITY)
  for limits in resource.setrlimit().

Copy link
Copy Markdown
Member Author

!buildbot 32

Copy link
Copy Markdown
Member Author

!buildbot 32

Copy link
Copy Markdown

🤖 New build scheduled with the buildbot fleet by @serhiy-storchaka for commit 7c1fea7 🤖

Results will be shown at:

https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F137338%2Fmerge

The command will test the builders whose names match following regular expression: 32

The builders matched are:

  • wasm32-wasi Non-Debug PR
  • wasm32-wasi PR
  • wasm32 WASI 8Core PR

encukou added the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label Aug 6, 2025

Copy link
Copy Markdown

🤖 New build scheduled with the buildbot fleet by @encukou for commit 7c1fea7 🤖

Results will be shown at:

https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F137338%2Fmerge

If you want to schedule another build, you need to add the 🔨 test-with-buildbots label again.

bedevere-bot removed the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label Aug 6, 2025

encukou left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

This looks great, thank you! If the buildbots agree, please merge.

Comment thread Lib/test/test_resource.py
serhiy-storchaka added the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label Aug 6, 2025

Copy link
Copy Markdown

🤖 New build scheduled with the buildbot fleet by @serhiy-storchaka for commit 4774421 🤖

Results will be shown at:

https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F137338%2Fmerge

If you want to schedule another build, you need to add the 🔨 test-with-buildbots label again.

bedevere-bot removed the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label Aug 6, 2025
serhiy-storchaka added the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label Aug 6, 2025

Copy link
Copy Markdown

🤖 New build scheduled with the buildbot fleet by @serhiy-storchaka for commit 2446870 🤖

Results will be shown at:

https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F137338%2Fmerge

If you want to schedule another build, you need to add the 🔨 test-with-buildbots label again.

bedevere-bot removed the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label Aug 6, 2025
serhiy-storchaka merged commit baefaa6 into python:main Aug 7, 2025

Copy link
Copy Markdown

Thanks @serhiy-storchaka for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Aug 7, 2025
…mit() (pythonGH-137338)

* Return large limit values as positive integers instead of negative integers
  in resource.getrlimit().
* Accept large values and reject negative values (except RLIM_INFINITY)
  for limits in resource.setrlimit().
(cherry picked from commit baefaa6)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
serhiy-storchaka deleted the resource-setrlimit-large branch August 7, 2025 08:06
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Aug 7, 2025
…mit() (pythonGH-137338)

* Return large limit values as positive integers instead of negative integers
  in resource.getrlimit().
* Accept large values and reject negative values (except RLIM_INFINITY)
  for limits in resource.setrlimit().
(cherry picked from commit baefaa6)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>

bedevere-app Bot commented Aug 7, 2025

Copy link
Copy Markdown

GH-137506 is a backport of this pull request to the 3.14 branch.

bedevere-app Bot removed the needs backport to 3.14 bugs and security fixes label Aug 7, 2025

bedevere-app Bot commented Aug 7, 2025

Copy link
Copy Markdown

GH-137507 is a backport of this pull request to the 3.13 branch.

bedevere-app Bot removed the needs backport to 3.13 only security fixes label Aug 7, 2025
serhiy-storchaka added a commit that referenced this pull request Aug 7, 2025
…imit() (GH-137338) (GH-137507)

* Return large limit values as positive integers instead of negative integers
  in resource.getrlimit().
* Accept large values and reject negative values (except RLIM_INFINITY)
  for limits in resource.setrlimit().
(cherry picked from commit baefaa6)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Agent-Hellboy pushed a commit to Agent-Hellboy/cpython that referenced this pull request Aug 19, 2025
…mit() (pythonGH-137338)

* Return large limit values as positive integers instead of negative integers
  in resource.getrlimit().
* Accept large values and reject negative values (except RLIM_INFINITY)
  for limits in resource.setrlimit().
vstinner pushed a commit that referenced this pull request Oct 7, 2025
…imit() (GH-137338) (#137506)

gh-137044: Support large limit values in getrlimit() and setrlimit() (GH-137338)

* Return large limit values as positive integers instead of negative integers
  in resource.getrlimit().
* Accept large values and reject negative values (except RLIM_INFINITY)
  for limits in resource.setrlimit().
(cherry picked from commit baefaa6)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants


Back | FazBrowse Home | New Git URL