Skip to content

iOS testbed fails to start on completely clean Xcode install machine #130292

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

Closed
freakboy3742 opened this issue Feb 19, 2025 · 0 comments
Closed
Labels
3.13 bugs and security fixes 3.14 bugs and security fixes OS-ios type-bug An unexpected behavior, bug, or error

Comments

@freakboy3742
Copy link
Contributor

freakboy3742 commented Feb 19, 2025

Bug report

Bug description:

The iOS testbed contains tooling to tail the log of a simulator while a test suite runs. It identifies the simulator by generating an initial list of simulators; and then polling until that list increases by one entry. To do this, it uses the command xcrun simctl --set testing list -j

However, on a complete clean development machine, there are no testing devices yet, and xcrun simctl --set testing list -j returns an error code of 1, rather than an empty list.

Github Actions CI is one example of this configuration. A workaround is to manually create the ~/Library/Developer/XCTestDevices folder.

CPython versions tested on:

CPython main branch

Operating systems tested on:

Other

Linked PRs

@freakboy3742 freakboy3742 added 3.13 bugs and security fixes 3.14 bugs and security fixes OS-ios type-bug An unexpected behavior, bug, or error labels Feb 19, 2025
freakboy3742 added a commit that referenced this issue Feb 25, 2025
…130388)

Adds error handling when there are no pre-existing test simulators.
miss-islington pushed a commit to miss-islington/cpython that referenced this issue Feb 25, 2025
…bed (pythonGH-130388)

Adds error handling when there are no pre-existing test simulators.
(cherry picked from commit 99088ab)

Co-authored-by: Russell Keith-Magee <[email protected]>
freakboy3742 added a commit that referenced this issue Feb 25, 2025
…tbed (GH-130388) (#130532)

Adds error handling when there are no pre-existing test simulators.
(cherry picked from commit 99088ab)

Co-authored-by: Russell Keith-Magee <[email protected]>
freakboy3742 added a commit to freakboy3742/cpython that referenced this issue Feb 25, 2025
…bed (python#130388)

Adds error handling when there are no pre-existing test simulators.
freakboy3742 added a commit to freakboy3742/cpython that referenced this issue Feb 25, 2025
…OS testbed (pythonGH-130388) (python#130532)

Adds error handling when there are no pre-existing test simulators.
(cherry picked from commit 99088ab)

Co-authored-by: Russell Keith-Magee <[email protected]>
freakboy3742 added a commit to freakboy3742/cibuildwheel that referenced this issue Feb 25, 2025
henryiii pushed a commit to pypa/cibuildwheel that referenced this issue Mar 11, 2025
* Add support for building iOS wheels.

* Replace use of system() in test binary module.

* Restored the 'minimal' approach of the minimal examples.

* Split out platform details into standalone pages, and expand iOS platform details.

* More doc corrections.

* Bump support package to include fix for python/cpython#130292

* Ensure iOS tests are all run on the same xdist worker.

* More iOS documentation tweaks.

* Factor out common xcode version test utility.

* Simplify iOS to a single platform with an expanded interpretation of arch.

* I guess I should update the iOS tests as well...

* Additional safety for missing iOS test output.

* Remove DYLD_LIBRARY_PATH from the iOS environment.

* Make test-sources mandatory for iOS builds.

* Updates and clarifications to documentation.

* Clarify what a slice is.

* Normalize use of underscores in platform name.

* Modify auto target to be matching CPU only.

* Use consistent ordering of platforms in examples.

* Use consistent naming in iOS archiectures.

* Placate the linter.

* Miscellaneous cleanups picked up by @joerick's review.

* Correct the list of expected wheels.

* Correct which 'native' we're actually checking.

* Correct the docs links so they're all relative.

* Correct the identification of free threaded builds.

* Use target instead of host to describe the platform we're building for.

* Rework iOS test to remove issue with log completeness.

* Convert errors to FatalError

Co-authored-by: Matthieu Darbois <[email protected]>
Co-authored-by: Joe Rickerby <[email protected]>

* Removed a repeated check for a valid python.

* Update bin/update_pythons.py to update iOS support packages.

* Document that iOS CI is available on other platforms.

* Restore a comment needed for some platforms.

* Small cleanups identified in code review

Co-authored-by: Joe Rickerby <[email protected]>

* Simplify logic to appease linter.

* Modify dependency constraint handling to use new API.

* Cosmetic change to trigger a CI rebuild.

---------

Co-authored-by: Matthieu Darbois <[email protected]>
Co-authored-by: Joe Rickerby <[email protected]>
freakboy3742 added a commit to freakboy3742/cpython that referenced this issue Mar 16, 2025
…OS testbed (pythonGH-130388) (python#130532)

Adds error handling when there are no pre-existing test simulators.
(cherry picked from commit 99088ab)

Co-authored-by: Russell Keith-Magee <[email protected]>
freakboy3742 added a commit to freakboy3742/cpython that referenced this issue Mar 16, 2025
…OS testbed (pythonGH-130388) (python#130532)

Adds error handling when there are no pre-existing test simulators.
(cherry picked from commit 99088ab)

Co-authored-by: Russell Keith-Magee <[email protected]>
freakboy3742 added a commit to freakboy3742/cpython that referenced this issue Mar 16, 2025
…S testbed (pythonGH-130388) (python#130532)

Adds error handling when there are no pre-existing test simulators.
(cherry picked from commit 99088ab)

Co-authored-by: Russell Keith-Magee <[email protected]>
seehwan pushed a commit to seehwan/cpython that referenced this issue Apr 16, 2025
…bed (python#130388)

Adds error handling when there are no pre-existing test simulators.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.13 bugs and security fixes 3.14 bugs and security fixes OS-ios type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

1 participant