Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(350)

Issue 1514453007: Show more stack trace in instrumentation tests. (Closed)

Created:
5 years ago by Peter Wen
Modified:
5 years ago
Reviewers:
Yaron, jbudorick
CC:
chromium-reviews, klundberg+watch_chromium.org, mikecase+watch_chromium.org, yfriedman+watch_chromium.org, jbudorick+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Show more stack trace in instrumentation tests. When unknown exceptions are raised during instrumentation tests, catch the exception and output its stack trace as part of the log rather than just displaying 'CRASHED' or 'UNKNOWN' statuses. This should also show up in buildbot logs. BUG=567841 Committed: https://crrev.com/e6e09ec25d398d954fe93865b681f711a1c22322 Cr-Commit-Position: refs/heads/master@{#365586}

Patch Set 1 #

Patch Set 2 : Testing only. #

Patch Set 3 : rebase #

Patch Set 4 : Sanity check. #

Patch Set 5 : Remove VM death. #

Patch Set 6 : Add more violations. #

Patch Set 7 : Add back more violations. #

Patch Set 8 : Add command-line flag. #

Total comments: 6

Patch Set 9 : Send test names. #

Total comments: 5

Patch Set 10 : Better imports. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+46 lines, -1 line) Patch
M build/android/pylib/instrumentation/instrumentation_test_instance_test.py View 1 2 3 4 5 6 7 8 1 chunk +19 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/ChromeStrictMode.java View 1 2 3 4 5 6 7 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/test/android/javatests/src/org/chromium/chrome/test/ChromeActivityTestCaseBase.java View 1 2 3 4 5 6 7 8 9 3 chunks +24 lines, -1 line 0 comments Download

Messages

Total messages: 17 (6 generated)
Peter Wen
This CL adds an unhandled exception handler to Chrome instrumentation tests and sends the stack ...
5 years ago (2015-12-11 20:54:32 UTC) #3
jbudorick
https://codereview.chromium.org/1514453007/diff/140001/build/android/pylib/instrumentation/instrumentation_test_instance.py File build/android/pylib/instrumentation/instrumentation_test_instance.py (right): https://codereview.chromium.org/1514453007/diff/140001/build/android/pylib/instrumentation/instrumentation_test_instance.py#newcode107 build/android/pylib/instrumentation/instrumentation_test_instance.py:107: test_class = bundle.get('class', '') or test_class nit if this ...
5 years ago (2015-12-11 21:04:30 UTC) #4
Peter Wen
Thanks for the quick initial review! PTAL. https://codereview.chromium.org/1514453007/diff/140001/build/android/pylib/instrumentation/instrumentation_test_instance.py File build/android/pylib/instrumentation/instrumentation_test_instance.py (right): https://codereview.chromium.org/1514453007/diff/140001/build/android/pylib/instrumentation/instrumentation_test_instance.py#newcode107 build/android/pylib/instrumentation/instrumentation_test_instance.py:107: test_class = ...
5 years ago (2015-12-11 22:07:21 UTC) #5
jbudorick
build/ lgtm https://codereview.chromium.org/1514453007/diff/160001/chrome/test/android/javatests/src/org/chromium/chrome/test/ChromeActivityTestCaseBase.java File chrome/test/android/javatests/src/org/chromium/chrome/test/ChromeActivityTestCaseBase.java (right): https://codereview.chromium.org/1514453007/diff/160001/chrome/test/android/javatests/src/org/chromium/chrome/test/ChromeActivityTestCaseBase.java#newcode77 chrome/test/android/javatests/src/org/chromium/chrome/test/ChromeActivityTestCaseBase.java:77: import java.lang.Thread.UncaughtExceptionHandler; Do we have to import ...
5 years ago (2015-12-11 22:25:06 UTC) #6
Peter Wen
What do you think about adding "--strict-mode=testing" as a follow-up CL after this lands, John? ...
5 years ago (2015-12-14 16:29:36 UTC) #7
jbudorick
adding --strict-mode=testing sgtm. there are a couple of different ways to do that, though. https://codereview.chromium.org/1514453007/diff/160001/chrome/test/android/javatests/src/org/chromium/chrome/test/ChromeActivityTestCaseBase.java ...
5 years ago (2015-12-15 02:02:04 UTC) #8
Peter Wen
On 2015/12/15 02:02:04, jbudorick wrote: > adding --strict-mode=testing sgtm. there are a couple of different ...
5 years ago (2015-12-16 16:02:13 UTC) #9
Yaron
lgtm
5 years ago (2015-12-16 17:15:05 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1514453007/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1514453007/180001
5 years ago (2015-12-16 18:11:13 UTC) #13
commit-bot: I haz the power
Committed patchset #10 (id:180001)
5 years ago (2015-12-16 19:20:19 UTC) #15
commit-bot: I haz the power
5 years ago (2015-12-16 19:21:30 UTC) #17
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/e6e09ec25d398d954fe93865b681f711a1c22322
Cr-Commit-Position: refs/heads/master@{#365586}

Powered by Google App Engine
This is Rietveld 408576698