Skip to content
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

gh-118201: Accomodate flaky behavior of os.sysconf on iOS #118453

Merged
merged 1 commit into from
May 1, 2024

Conversation

freakboy3742
Copy link
Contributor

@freakboy3742 freakboy3742 commented May 1, 2024

A follow on from #118452, addressing a similar class of flaky test on iOS.

os.sysconf() appears to have flakiness similar to that observed with posix.confstr(). So far, it has been less common than the test_posix failure; as with the test_posix case, I've been unable to reproduce it locally, and the next CI pass almost always passes.

One of the updates in this PR is in os_helper, which already has a failover case if os.sysconf() isn't available or doesn't work. I've done a test deliberately simulating the failure case (effectively using the constant value of MAXFD regardless of the sysconf value), and the tests that use this utility continue to pass on iOS.

@ned-deily ned-deily merged commit 21336aa into python:main May 1, 2024
35 checks passed
@freakboy3742 freakboy3742 deleted the flaky-sysconf branch May 1, 2024 02:31
SonicField pushed a commit to SonicField/cpython that referenced this pull request May 8, 2024
freakboy3742 added a commit to freakboy3742/cpython that referenced this pull request Aug 5, 2024
freakboy3742 added a commit to freakboy3742/cpython that referenced this pull request Aug 5, 2024
freakboy3742 added a commit to freakboy3742/cpython that referenced this pull request Aug 5, 2024
freakboy3742 added a commit to freakboy3742/cpython that referenced this pull request Aug 5, 2024
freakboy3742 added a commit to freakboy3742/cpython that referenced this pull request Sep 6, 2024
freakboy3742 added a commit to freakboy3742/cpython that referenced this pull request Sep 9, 2024
freakboy3742 added a commit to freakboy3742/cpython that referenced this pull request Sep 9, 2024
freakboy3742 added a commit to freakboy3742/cpython that referenced this pull request Sep 9, 2024
freakboy3742 added a commit to freakboy3742/cpython that referenced this pull request Sep 9, 2024
freakboy3742 added a commit to freakboy3742/cpython that referenced this pull request Oct 9, 2024
freakboy3742 added a commit to freakboy3742/cpython that referenced this pull request Dec 13, 2024
freakboy3742 added a commit to freakboy3742/cpython that referenced this pull request Dec 13, 2024
freakboy3742 added a commit to freakboy3742/cpython that referenced this pull request Dec 13, 2024
freakboy3742 added a commit to freakboy3742/cpython that referenced this pull request Dec 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants