New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 756030 link

Starred by 1 user

Issue metadata

Status: Duplicate
Owner: ----
Closed: Aug 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 1
Type: Bug-Regression



Sign in to add a comment

[CFM Test Automation] autotest runs result in XML RPC failures (multimedia_xmlrpc_server)

Project Member Reported by kitching@chromium.org, Aug 16 2017

Issue description

Device used:

Guado running 9765.30.0 test image


Steps to reproduce:

test_that --autotest_dir=/work/chromiumos/src/third_party/autotest/files/ <device_ip> enterprise_CFM_MeetAppSanity


RPC errors are shown:

08/16 10:58:38.246 INFO |        server_job:0214| 	FAIL	enterprise_CFM_MeetAppSanity	enterprise_CFM_MeetAppSanity	timestamp=1502899118	localtime=Aug 16 10:58:38	RPC error: cfm.enroll_device
  Traceback (most recent call last):
    File "./multimedia_xmlrpc_server.py", line 89, in _dispatch
      return func(*params)
    File "/usr/local/autotest/cros/multimedia/cfm_facade_native.py", line 46, in enroll_device
      self._PWD)
    File "/usr/local/autotest/common_lib/cros/enrollment.py", line 37, in RemoraEnrollment
      SwitchToRemora(browser)
    File "/usr/local/autotest/common_lib/cros/enrollment.py", line 25, in SwitchToRemora
      lambda: _ExecuteOobeCmd(browser,
    File "/usr/local/autotest/common_lib/cros/chrome.py", line 276, in wait_for_browser_restart
      utils.poll_for_condition(lambda: pid != _cri.GetChromePid(), timeout=60)
    File "/usr/local/autotest/common_lib/utils.py", line 2738, in poll_for_condition
      raise TimeoutError(desc)
  TimeoutError: Timed out waiting for unnamed condition



Workaround:

After manually starting the multimedia_xmlrpc_server.py script on the target device, and moving focus back to Chrome (Ctrl+Alt+F1), the test is able to continue and successfully get data back from the RPC calls.

$ /usr/local/autotest/cros/multimedia/multimedia_xmlrpc_server.py

[Note that in the case of a test that requires a reboot (i.e. any that involve enrollment), it's not easy to control the invocation of multimedia_xmlrpc_server.py, and so it's still resulting in undefined behaviour.]
 
autoserv.DEBUG
118 KB Download
Mergedinto: 756203
Status: Duplicate (was: Untriaged)
The enterprise_CFM_* tests are failing in the lab since 9765.22.0:

https://wmatrix.googleplex.com/platform/unfiltered?platforms=guado&tests=enterprise_%2A,login_CryptohomeIncognito&days_back=5&builds=R61-9765.*

Autotest logs show a stack trace ending in:
  DevtoolsTargetCrashException: Devtools target crashed

Which looks like it has already been reported in bug #756203.

Sign in to add a comment