Skip to content

gh-130384: Skip a test_getallocatedblocks test pre-condition on iOS. #130385

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

Conversation

freakboy3742
Copy link
Contributor

@freakboy3742 freakboy3742 commented Feb 20, 2025

#130007 introduced a change to the handling of C stack limits, which caused the test_sys.SysModuleTest.get_allocated_blocks() test to start failing in CI on iOS.

This PR skips the specific test precondition that is causing the test failure when running on iOS. This is based on the fact that the assertion appears to be a precondition that has some other "escape clauses" (like running on a free threading build), and is documented as asserting something that is "unlikely to happen in a normal test run". I don't know why iOS is causing the "unlikely" condition to happen reliably in CI... but it apparently does.

I'll be honest - I don't feel good about this PR. However, I don't have anywhere near enough knowledge or experience to understand what interaction of memory allocation and garbage collection would be causing this to only occur on iOS, and only in CI. I can't reproduce the problem locally, and it doesn't appear to be causing any larger issues with operation on iOS.

@freakboy3742
Copy link
Contributor Author

!buildbot iOS

@bedevere-bot
Copy link

🤖 New build scheduled with the buildbot fleet by @freakboy3742 for commit 9b311b3 🤖

Results will be shown at:

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

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

The builders matched are:

  • iOS ARM64 Simulator PR

@markshannon
Copy link
Member

The pre-condition is wrong #130384 (comment), so I think it would be fine to remove the precondition altogether.
But let's merge this for now, and restore the test when we fix sys.getallocatedblocks()

@markshannon markshannon merged commit 8a76eb8 into python:main Feb 24, 2025
49 checks passed
@freakboy3742 freakboy3742 deleted the skip-allocated-blocks-precondition branch February 24, 2025 22:12
seehwan pushed a commit to seehwan/cpython that referenced this pull request Apr 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip news tests Tests in the Lib/test dir
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants