Bug 157965 - Simulator launch fails intermittently due to failure in checking simulator boot status
Summary: Simulator launch fails intermittently due to failure in checking simulator bo...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: WebKit Local Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Aakash Jain
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-05-20 18:11 PDT by Aakash Jain
Modified: 2016-05-24 18:05 PDT (History)
5 users (show)

See Also:


Attachments
Proposed patch (1.90 KB, patch)
2016-05-20 18:15 PDT, Aakash Jain
no flags Details | Formatted Diff | Diff
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+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Aakash Jain 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
Comment 1 Aakash Jain 2016-05-20 18:15:15 PDT
Created attachment 279530 [details]
Proposed patch
Comment 2 Alexey Proskuryakov 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.
Comment 3 WebKit Commit Bot 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>
Comment 4 WebKit Commit Bot 2016-05-21 12:20:33 PDT
All reviewed patches have been landed.  Closing bug.
Comment 5 Aakash Jain 2016-05-23 11:31:23 PDT
Created attachment 279570 [details]
Proposed patch for improving log message