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

Issue 694752 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Last visit > 30 days ago
Closed: Feb 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 1
Type: Bug



Sign in to add a comment

Unrooted device on Nexus 5X (3) webview bot

Project Member Reported by rnep...@chromium.org, Feb 21 2017

Issue description

There are a couple stretches of passing-failing-passing-failing.
https://build.chromium.org/p/chromium.perf/builders/Android%20Nexus5X%20Perf%20%283%29?numbuilds=200


 
Cc: zh...@chromium.org
Components: Tests>Telemetry
Actually, it looks like all tests on that particular device are failing with:


Traceback (most recent call last):
  RunBenchmark at /b/c/b/Android_Nexus5X_Perf__3_/src/third_party/catapult/telemetry/telemetry/internal/story_runner.py:364
    benchmark.ShouldTearDownStateAfterEachStorySetRun())
  Run at /b/c/b/Android_Nexus5X_Perf__3_/src/third_party/catapult/telemetry/telemetry/internal/story_runner.py:243
    _RunStoryAndProcessErrorIfNeeded(story, results, state, test)
  _RunStoryAndProcessErrorIfNeeded at /b/c/b/Android_Nexus5X_Perf__3_/src/third_party/catapult/telemetry/telemetry/internal/story_runner.py:80
    test.WillRunStory(state.platform)
  WillRunStory at /b/c/b/Android_Nexus5X_Perf__3_/src/third_party/catapult/telemetry/telemetry/web_perf/timeline_based_measurement.py:285
    platform.tracing_controller.StartTracing(self._tbm_options.config)
  StartTracing at /b/c/b/Android_Nexus5X_Perf__3_/src/third_party/catapult/telemetry/telemetry/core/tracing_controller.py:43
    self._tracing_controller_backend.StartTracing(tracing_config, timeout)
  StartTracing at /b/c/b/Android_Nexus5X_Perf__3_/src/third_party/catapult/telemetry/telemetry/internal/platform/tracing_controller_backend.py:91
    started = agent.StartAgentTracing(config, timeout)
  StartAgentTracing at /b/c/b/Android_Nexus5X_Perf__3_/src/third_party/catapult/telemetry/telemetry/internal/platform/tracing_agent/chrome_tracing_agent.py:121
    started_startup_tracing = self._StartStartupTracing(config)
  _StartStartupTracing at /b/c/b/Android_Nexus5X_Perf__3_/src/third_party/catapult/telemetry/telemetry/internal/platform/tracing_agent/chrome_tracing_agent.py:84
    self._CreateTraceConfigFile(config)
  _CreateTraceConfigFile at /b/c/b/Android_Nexus5X_Perf__3_/src/third_party/catapult/telemetry/telemetry/internal/platform/tracing_agent/chrome_tracing_agent.py:263
    self._CreateTraceConfigFileString(config), as_root=True)
  timeout_retry_wrapper at /b/c/b/Android_Nexus5X_Perf__3_/src/third_party/catapult/devil/devil/android/decorators.py:57
    retry_if_func=retry_if_func)
  Run at /b/c/b/Android_Nexus5X_Perf__3_/src/third_party/catapult/devil/devil/utils/timeout_retry.py:159
    error_log_func=error_log_func)
  JoinAll at /b/c/b/Android_Nexus5X_Perf__3_/src/third_party/catapult/devil/devil/utils/reraiser_thread.py:186
    self._JoinAll(watcher, timeout)
  _JoinAll at /b/c/b/Android_Nexus5X_Perf__3_/src/third_party/catapult/devil/devil/utils/reraiser_thread.py:158
    thread.ReraiseIfException()
  run at /b/c/b/Android_Nexus5X_Perf__3_/src/third_party/catapult/devil/devil/utils/reraiser_thread.py:81
    self._ret = self._func(*self._args, **self._kwargs)
  <lambda> at /b/c/b/Android_Nexus5X_Perf__3_/src/third_party/catapult/devil/devil/utils/timeout_retry.py:152
    child_thread = reraiser_thread.ReraiserThread(lambda: func(*args, **kwargs),
  impl at /b/c/b/Android_Nexus5X_Perf__3_/src/third_party/catapult/devil/devil/android/decorators.py:47
    return f(*args, **kwargs)
  WriteFile at /b/c/b/Android_Nexus5X_Perf__3_/src/third_party/catapult/devil/devil/android/device_utils.py:1650
    self.RunShellCommand(cmd, as_root=as_root, check_return=True)
  timeout_retry_wrapper at /b/c/b/Android_Nexus5X_Perf__3_/src/third_party/catapult/devil/devil/android/decorators.py:51
    return impl()
  impl at /b/c/b/Android_Nexus5X_Perf__3_/src/third_party/catapult/devil/devil/android/decorators.py:47
    return f(*args, **kwargs)
  RunShellCommand at /b/c/b/Android_Nexus5X_Perf__3_/src/third_party/catapult/devil/devil/android/device_utils.py:929
    output = handle_large_output(cmd, large_output)
  handle_large_output at /b/c/b/Android_Nexus5X_Perf__3_/src/third_party/catapult/devil/devil/android/device_utils.py:904
    return handle_large_command(cmd)
  handle_large_command at /b/c/b/Android_Nexus5X_Perf__3_/src/third_party/catapult/devil/devil/android/device_utils.py:886
    return handle_check_return(cmd)
  handle_check_return at /b/c/b/Android_Nexus5X_Perf__3_/src/third_party/catapult/devil/devil/android/device_utils.py:877
    return run(cmd)
  run at /b/c/b/Android_Nexus5X_Perf__3_/src/third_party/catapult/devil/devil/android/device_utils.py:873
    return self.adb.Shell(cmd)
  Shell at /b/c/b/Android_Nexus5X_Perf__3_/src/third_party/catapult/devil/devil/android/sdk/adb_wrapper.py:496
    command, output, status=status, device_serial=self._device_serial)
AdbShellCommandFailedError: (device: 00cafdbc3e83d370) shell command run via adb failed on the device:
  command: echo -n '{"trace_config": {"excluded_categories": ["*"], "included_categories": ["v8", "webkit.console", "renderer.scheduler", "blink.console", "disabled-by-default-memory-infra"], "memory_dump_config": {"triggers": []}, "record_mode": "record-as-much-as-possible"}}' > /data/local/chrome-trace-config.json
  exit status: 1
  output:
  - /system/bin/sh: can't create /data/local/chrome-trace-config.json: Permission denied


Zhenw@, do you know anything about this error when trying to write the chrome trace config file?

Comment 2 by zh...@chromium.org, Feb 21 2017

Cc: rnep...@chromium.org
Does that device has root access?
Components: -Tests>Telemetry Infra>Labs
Summary: Fail to write chrome tracing file to device on Nexus5x webview perfbot (was: failed memory.long_running_idle_gmail_tbmv2 failing on webview perf bot)
Nope, according to provision devices it is the one device that isn't rooted. Routing to HWOps. 

C   38.924s ProvisionDevice(00cafdbc3e83d370)  (TimeoutThread-1-for-ProvisionDevice(00cafdbc3e83d370)) Exception on EnableRoot(00cafdbc3e83d370, retries=3, timeout=30), attempt 1 of 4: CommandFailedError('(device: 00cafdbc3e83d370) Cannot enable root in user builds.',)


The device with id 00cafdbc3e83d370 on build57-b1 needs to be flashed with a rooted version.

Thanks for the help Zhen!
Summary: Unrooted device on Nexus 5X (3) webview bot (was: Fail to write chrome tracing file to device on Nexus5x webview perfbot)

Comment 5 by pschm...@google.com, Feb 21 2017

Owner: pschmidt@chromium.org
Status: Assigned (was: Untriaged)
Status: Fixed (was: Assigned)
Fixed.  I wonder how this happened?

Checking 00706ba5898326e4....
bullhead-userdebug 6.0 MDB08O 2379248 dev-keys
Checking 00497c1989bb1ee6....
bullhead-userdebug 6.0 MDB08O 2379248 dev-keys
Checking 00e2164b278fb20b....
bullhead-userdebug 6.0 MDB08O 2379248 dev-keys
Checking 00b88e248060cd28....
bullhead-userdebug 6.0 MDB08O 2379248 dev-keys
Checking 00b675f2273fbc0b....
bullhead-userdebug 6.0 MDB08O 2379248 dev-keys
Checking 00b3512549c11418....
bullhead-userdebug 6.0 MDB08O 2379248 dev-keys
Checking 00cafdbc3e83d370....
bullhead-userdebug 6.0 MDB08O 2379248 dev-keys

Sign in to add a comment