RESOLVED FIXED157965
Simulator launch fails intermittently due to failure in checking simulator boot status
https://bugs.webkit.org/show_bug.cgi?id=157965
Summary Simulator launch fails intermittently due to failure in checking simulator bo...
Aakash Jain
Reported 2016-05-20 18:11:01 PDT
see <rdar://problem/26402404> e.g.: CalledProcessError raised: Command '['xcrun', 'simctl', 'spawn', u'C2F98E0E-D6DF-48B1-BA58-B530ABFB7FF7', 'launchctl', 'print', 'system']' returned non-zero exit status -6 Traceback (most recent call last): File "~/OpenSource/Tools/Scripts/webkitpy/layout_tests/run_webkit_tests.py", line 77, in main run_details = run(port, options, args, stderr) File "~/OpenSource/Tools/Scripts/webkitpy/layout_tests/run_webkit_tests.py", line 409, in run run_details = manager.run(args) File "~/OpenSource/Tools/Scripts/webkitpy/layout_tests/controllers/manager.py", line 205, in run if not self._set_up_run(tests_to_run): File "~/OpenSource/Tools/Scripts/webkitpy/layout_tests/controllers/manager.py", line 179, in _set_up_run self._port.setup_test_run() File "~/OpenSource/Tools/Scripts/webkitpy/port/ios.py", line 239, in setup_test_run Simulator.wait_until_device_is_booted(self.testing_device(i).udid) File "~/OpenSource/Tools/Scripts/webkitpy/xcode/simulator.py", line 281, in wait_until_device_is_booted state = subprocess.check_output(['xcrun', 'simctl', 'spawn', udid, 'launchctl', 'print', 'system']).strip() File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 573, in check_output raise CalledProcessError(retcode, cmd, output=output) CalledProcessError: Command '['xcrun', 'simctl', 'spawn', u'C2F98E0E-D6DF-48B1-BA58-B530ABFB7FF7', 'launchctl', 'print', 'system']' returned non-zero exit status -6
Attachments
Proposed patch (1.90 KB, patch)
2016-05-20 18:15 PDT, Aakash Jain
no flags
Proposed patch for improving log message (1.33 KB, patch)
2016-05-23 11:31 PDT, Aakash Jain
aakash_jain: review+
aakash_jain: commit-queue+
Aakash Jain
Comment 1 2016-05-20 18:15:15 PDT
Created attachment 279530 [details] Proposed patch
Alexey Proskuryakov
Comment 2 2016-05-21 11:58:22 PDT
Comment on attachment 279530 [details] Proposed patch View in context: https://bugs.webkit.org/attachment.cgi?id=279530&action=review > Tools/Scripts/webkitpy/xcode/simulator.py:286 > + _log.warn("Error in checking Simulator boot status.") This message will be fairly confusing in the logs, because it's unclear what the consequence is. I would add "Will retry in 1 second." after this.
WebKit Commit Bot
Comment 3 2016-05-21 12:20:28 PDT
Comment on attachment 279530 [details] Proposed patch Clearing flags on attachment: 279530 Committed r201244: <http://trac.webkit.org/changeset/201244>
WebKit Commit Bot
Comment 4 2016-05-21 12:20:33 PDT
All reviewed patches have been landed. Closing bug.
Aakash Jain
Comment 5 2016-05-23 11:31:23 PDT
Created attachment 279570 [details] Proposed patch for improving log message
Note You need to log in before you can comment on or make changes to this bug.