GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||
GeezerVison is showing github.com — gh-129200: Add locking to the iOS testbed startup sequence. by freakboy3742 · Pull Request #130564 · python/cpython Conversation
|
|
!buildbot iOS |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
🤖 New build scheduled with the buildbot fleet by @freakboy3742 for commit bc647db 🤖 Results will be shown at: https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F130564%2Fmerge The command will test the builders whose names match following regular expression: The builders matched are:
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| class SimulatorLock: | ||
| # An fcntl-based filesystem lock that can be used to ensure that | ||
| def __init__(self, timeout): | ||
| self.filename = Path(tempfile.gettempdir()) / "python-ios-testbed" |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Does the lock need to be system-wide rather than just for a particular user? If so, the use of tempfile.gettempdir() can be problematic here. As documented, it checks first for a TMPDIR environment variable and it appears that usually on macOS TMPDIR is set to a user-specific temp directory, for example:
>>> tempfile.gettempdir()
'/var/folders/sn/0m4rnbyj2z1byjs68sz838300000gn/T'
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
As best as I can make out, the lock only needs to be per user. If I start a simulator on one user's account, then use Fast User Switching to move to a second user's account, the simulator on the first user's account doesn't show on the second.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Thanks @freakboy3742 for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…thonGH-130564) Add a lock to ensure that only one iOS testbed per user can start at a time, so that the simulator discovery process doesn't collide between instances. (cherry picked from commit 9211b3d) Co-authored-by: Russell Keith-Magee <[email protected]>
|
GH-130657 is a backport of this pull request to the 3.13 branch. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…H-130564) (#130657) Add a lock to ensure that only one iOS testbed per user can start at a time, so that the simulator discovery process doesn't collide between instances. (cherry picked from commit 9211b3d) Co-authored-by: Russell Keith-Magee <[email protected]>
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.