WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
171293
webkitpy: Teardown iOS Simulators on exit if managed Simulators are still running
https://bugs.webkit.org/show_bug.cgi?id=171293
Summary
webkitpy: Teardown iOS Simulators on exit if managed Simulators are still run...
Jonathan Bedard
Reported
2017-04-25 14:46:56 PDT
Currently, if an exception is thrown while booting the simulators, the simulators will not be torn down. Perform simulator tear-down at exit to avoid this issue.
Attachments
Patch
(8.86 KB, patch)
2017-04-25 14:48 PDT
,
Jonathan Bedard
no flags
Details
Formatted Diff
Diff
Patch
(6.90 KB, patch)
2017-04-26 12:29 PDT
,
Jonathan Bedard
no flags
Details
Formatted Diff
Diff
Patch for landing
(6.88 KB, patch)
2017-04-26 13:08 PDT
,
Jonathan Bedard
no flags
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2017-04-25 14:48:19 PDT
<
rdar://problem/31821689
>
Jonathan Bedard
Comment 2
2017-04-25 14:48:59 PDT
Created
attachment 308149
[details]
Patch
Aakash Jain
Comment 3
2017-04-26 12:04:01 PDT
Comment on
attachment 308149
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=308149&action=review
Overall looks fine. Couple of comments below.
> Tools/Scripts/webkitpy/port/ios_simulator.py:187 > + def _teardown_managed_simulators():
Please consider adding a comment that this method will be called multiple times in a run. or add a log.debug statement.
> Tools/Scripts/webkitpy/port/ios_simulator.py:224 > + atexit.register(IOSSimulatorPort._teardown_managed_simulators)
You can consider moving this register() one line above. What if _createSimulatorApps() failed (with exception) after creating couple of simulators. We still want the cleanup.
> Tools/Scripts/webkitpy/port/ios_simulator.py:-240 > - return
I would prefer to keep the check for _using_dedicated_simulators inside the method (_quit_ios_simulator), instead of adding the responsibility to the callers. It is very easy to miss the check for the callers.
> Tools/Scripts/webkitpy/port/ios_simulator.py:-255 > - pass
Please separate this change in another patch as this is unrelated to other changes.
> Tools/Scripts/webkitpy/port/ios_simulator.py:343 > + # Maybe this should delete all devices that we've created?
we shouldn't need this change after reverting _quit_ios_simulator behavior.
Jonathan Bedard
Comment 4
2017-04-26 12:29:30 PDT
Created
attachment 308273
[details]
Patch
Aakash Jain
Comment 5
2017-04-26 12:44:07 PDT
Comment on
attachment 308273
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=308273&action=review
looks good to me.
> Tools/ChangeLog:9 > + thrown while booting. Make some IOSSimulatorPort functions into static methods and register
Nit: two spaces.
> Tools/Scripts/webkitpy/port/ios_simulator.py:221 > self._createSimulatorApps()
unrelated, but we can consider removing _createSimulatorApps() and moving its code here. We don't need two methods _create_simulators() and _createSimulatorApps().
Jonathan Bedard
Comment 6
2017-04-26 13:08:56 PDT
Created
attachment 308277
[details]
Patch for landing
WebKit Commit Bot
Comment 7
2017-04-26 13:23:35 PDT
Comment on
attachment 308277
[details]
Patch for landing Clearing flags on attachment: 308277 Committed
r215824
: <
http://trac.webkit.org/changeset/215824
>
WebKit Commit Bot
Comment 8
2017-04-26 13:23:37 PDT
All reviewed patches have been landed. Closing bug.
Jonathan Bedard
Comment 9
2017-05-09 15:53:51 PDT
Remove FIFO code in <
https://bugs.webkit.org/show_bug.cgi?id=171891
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug