Skip to content

Fix ProgramPriorityTests on FreeBSD with high nice value #100145

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

Merged
merged 2 commits into from
Feb 17, 2024

Conversation

AMDmi3
Copy link
Contributor

@AMDmi3 AMDmi3 commented Dec 9, 2022

ProgramPriorityTests has a check for the case where process priority (nice value) cannot be increased any further because it's already at its maximal value (e.g. when tests are run with maximal niceness). It expects priority to be capped with 19, which is the cap for Linux, but for FreeBSD the cap is 20 and the test fails under the similar conditions. Tweak the condition to cover FreeBSD as well.

I do no think this fix requires an issue or news entry.

ProgramPriorityTests has a check for the case where process priority
(nice value) cannot be increased any further because it's already at
its maximal value (e.g. when tests are run with maximal niceness).
It expects priority to be capped with 19, which is the cap for Linux,
but for FreeBSD the cap is 20 and the test fails under the similar
conditions. Tweak the condition to cover FreeBSD as well.
@netlify
Copy link

netlify bot commented Dec 9, 2022

Deploy Preview for python-cpython-preview canceled.

Name Link
🔨 Latest commit 61e4bcd
🔍 Latest deploy log https://app.netlify.com/sites/python-cpython-preview/deploys/639398f6fac07600080c4788

@bedevere-bot bedevere-bot added the tests Tests in the Lib/test dir label Dec 9, 2022
@serhiy-storchaka serhiy-storchaka merged commit 4379244 into python:main Feb 17, 2024
@miss-islington-app
Copy link

Thanks @AMDmi3 for the PR, and @serhiy-storchaka for merging it 🌮🎉.. I'm working now to backport this PR to: 3.11, 3.12.
🐍🍒⛏🤖 I'm not a witch! I'm not a witch!

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Feb 17, 2024
…0145)

It expects priority to be capped with 19, which is the cap for Linux,
but for FreeBSD the cap is 20 and the test fails under the similar
conditions. Tweak the condition to cover FreeBSD as well.
(cherry picked from commit 4379244)

Co-authored-by: Dmitry Marakasov <[email protected]>
@bedevere-app
Copy link

bedevere-app bot commented Feb 17, 2024

GH-115614 is a backport of this pull request to the 3.12 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.12 only security fixes label Feb 17, 2024
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Feb 17, 2024
…0145)

It expects priority to be capped with 19, which is the cap for Linux,
but for FreeBSD the cap is 20 and the test fails under the similar
conditions. Tweak the condition to cover FreeBSD as well.
(cherry picked from commit 4379244)

Co-authored-by: Dmitry Marakasov <[email protected]>
@bedevere-app
Copy link

bedevere-app bot commented Feb 17, 2024

GH-115615 is a backport of this pull request to the 3.11 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.11 only security fixes label Feb 17, 2024
serhiy-storchaka pushed a commit that referenced this pull request Feb 17, 2024
…00145) (GH-115614)

It expects priority to be capped with 19, which is the cap for Linux,
but for FreeBSD the cap is 20 and the test fails under the similar
conditions. Tweak the condition to cover FreeBSD as well.
(cherry picked from commit 4379244)

Co-authored-by: Dmitry Marakasov <[email protected]>
serhiy-storchaka pushed a commit that referenced this pull request Feb 17, 2024
…00145) (GH-115615)

It expects priority to be capped with 19, which is the cap for Linux,
but for FreeBSD the cap is 20 and the test fails under the similar
conditions. Tweak the condition to cover FreeBSD as well.
(cherry picked from commit 4379244)

Co-authored-by: Dmitry Marakasov <[email protected]>
@AMDmi3 AMDmi3 deleted the priority-tests-freebsd branch February 19, 2024 12:10
woodruffw pushed a commit to woodruffw-forks/cpython that referenced this pull request Mar 4, 2024
…0145)

It expects priority to be capped with 19, which is the cap for Linux,
but for FreeBSD the cap is 20 and the test fails under the similar
conditions. Tweak the condition to cover FreeBSD as well.
diegorusso pushed a commit to diegorusso/cpython that referenced this pull request Apr 17, 2024
…0145)

It expects priority to be capped with 19, which is the cap for Linux,
but for FreeBSD the cap is 20 and the test fails under the similar
conditions. Tweak the condition to cover FreeBSD as well.
LukasWoodtli pushed a commit to LukasWoodtli/cpython that referenced this pull request Jan 22, 2025
…0145)

It expects priority to be capped with 19, which is the cap for Linux,
but for FreeBSD the cap is 20 and the test fails under the similar
conditions. Tweak the condition to cover FreeBSD as well.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip issue skip news tests Tests in the Lib/test dir
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants