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

Issue 703692 link

Starred by 2 users

Issue metadata

Status: Untriaged
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 1
Type: Bug



Sign in to add a comment

Support stack symbolization for Telemetry test for Android swarming

Project Member Reported by nedngu...@google.com, Mar 21 2017

Issue description

These are guidelines from bpastene@:
"
In short, what's needed for stack trace symbolization is the logcats and tombstones generated on the device during the test. Consequently, the perf swarming tests need to capture these things from the device and either:
a) symbolize them within the swarming test.
or
b) upload/isolate them and have a subsequent recipe step download and symbolize them.

This is precisely what Emily outlined in the doc: https://docs.google.com/document/d/1CAHzQlCueCZUNNDiCK9HwjNWBm6wjut5012K3PTVoAQ/edit#heading=h.bumchbgwledy

Regardless of which option you chose, you'll need to add logic to the perf tests to capture the logcats and tombstones from the device. (From reading the doc, it sounded like Emily was thinking of creating some type of test wrapper to do this.) For reference, functional android swarming tests capture logcats via a background monitor that gets spawned at the beginning of the test which collects the logs into a file that swarming then isolates at the end of the test. (example) So you could potentially reuse some of the functionality there."


 
Cc: rnep...@chromium.org
Couple more pointers: The android test_runner has the --logcat-output-file arg that will dump the logcats from all devices for the duration of the test in that file: https://cs.chromium.org/chromium/src/build/android/test_runner.py?rcl=2665368b5aeaa70dbc5d6f270a202e9b4c98d6b6&l=244

This is how we (used) to collect logcats for each functional swarming test. It would throw it in the $ISOLATED_OUTDIR and swarming would automatically isolate everything in there after a test: https://chromium.googlesource.com/chromium/src/+/e428ea9a94c51f8f16af35dac2d03ec97793a100/tools/mb/mb.py#1093

However, perf's swarming tests run telemetry directly, hence the need for some type of wrapper.
Project Member

Comment 3 by sheriffbot@chromium.org, Jul 21 2017

Labels: Hotlist-Google
Cc: crouleau@chromium.org
Note that we really need a simple way to do stack symbolization across *all* test automation frameworks, so it would be great if any solution to this were implemented in a way that we could use it directly for other frameworks or as a example for other implementations.
Components: Test>Telemetry
Components: -Speed>Telemetry

Sign in to add a comment