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

Issue 2541093004: [Android] Try harder to run every gtest within each try. (Closed)

Created:
4 years ago by jbudorick
Modified:
4 years ago
CC:
agrieve+watch_chromium.org, chromium-reviews, jbudorick+watch_chromium.org, mikecase+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Android] Try harder to run every gtest within each try. Gtests on Android get sharded into 256-test chunks to mitigate the latency of spinning up the VM while also allowing for reasonably balanced sharding across multiple attached devices. This can have adverse side effects when a test crashes, though, leaving the remaining tests in a given shard unrun. This is particularly problematic when a lot of tests crash, with dozens or hundreds of tests failing as UNKNOWN with no logs. This CL splits out a separate NOT_RUN status from UNKNOWN to differentiate between tests that were never run (or that we didn't see start) and tests that we believe started but for which we were unable to determine what happened. It then attempts to run any tests that come back with NOTRUN statuses within each try. BUG=646223 Committed: https://crrev.com/20a1d335f2cf1e97c16e1036bb427a448db84097 Cr-Commit-Position: refs/heads/master@{#435863}

Patch Set 1 #

Patch Set 2 : Add NOT_RUN result type. #

Patch Set 3 : Tweak NOTRUN handling. #

Total comments: 6

Patch Set 4 : mikecase comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -8 lines) Patch
M build/android/pylib/base/base_test_result.py View 1 2 1 chunk +16 lines, -1 line 0 comments Download
M build/android/pylib/local/device/local_device_gtest_run.py View 1 2 3 1 chunk +3 lines, -1 line 0 comments Download
M build/android/pylib/local/device/local_device_instrumentation_test_run.py View 1 chunk +1 line, -1 line 0 comments Download
M build/android/pylib/local/device/local_device_monkey_test_run.py View 1 chunk +1 line, -1 line 0 comments Download
M build/android/pylib/local/device/local_device_test_run.py View 1 2 3 3 chunks +6 lines, -4 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 26 (15 generated)
jbudorick
4 years ago (2016-12-01 14:57:06 UTC) #6
jbudorick
Split UNKNOWN into UNKNOWN and NOT_RUN. ptal
4 years ago (2016-12-01 16:37:10 UTC) #11
jbudorick
ok, ready for review again.
4 years ago (2016-12-01 18:58:04 UTC) #15
shenghuazhang
https://codereview.chromium.org/2541093004/diff/40001/build/android/pylib/base/base_test_result.py File build/android/pylib/base/base_test_result.py (right): https://codereview.chromium.org/2541093004/diff/40001/build/android/pylib/base/base_test_result.py#newcode38 build/android/pylib/base/base_test_result.py:38: ResultType.NOTRUN] Seems like the 'NOTRUN' ResultType isn't used by ...
4 years ago (2016-12-01 19:46:40 UTC) #16
mikecase (-- gone --)
question https://codereview.chromium.org/2541093004/diff/40001/build/android/pylib/local/device/local_device_gtest_run.py File build/android/pylib/local/device/local_device_gtest_run.py (right): https://codereview.chromium.org/2541093004/diff/40001/build/android/pylib/local/device/local_device_gtest_run.py#newcode426 build/android/pylib/local/device/local_device_gtest_run.py:426: not_run_tests = set(test).difference(set(r.GetName() for r in results)) Could ...
4 years ago (2016-12-01 20:42:08 UTC) #17
jbudorick
Thanks for the reviews! https://codereview.chromium.org/2541093004/diff/40001/build/android/pylib/base/base_test_result.py File build/android/pylib/base/base_test_result.py (right): https://codereview.chromium.org/2541093004/diff/40001/build/android/pylib/base/base_test_result.py#newcode38 build/android/pylib/base/base_test_result.py:38: ResultType.NOTRUN] On 2016/12/01 19:46:40, shenghuazhang ...
4 years ago (2016-12-02 01:45:21 UTC) #18
shenghuazhang
lgtm
4 years ago (2016-12-02 02:17:49 UTC) #19
mikecase (-- gone --)
lgtm
4 years ago (2016-12-02 02:25:33 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2541093004/60001
4 years ago (2016-12-02 02:27:18 UTC) #22
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years ago (2016-12-02 05:04:52 UTC) #24
commit-bot: I haz the power
4 years ago (2016-12-02 05:10:50 UTC) #26
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/20a1d335f2cf1e97c16e1036bb427a448db84097
Cr-Commit-Position: refs/heads/master@{#435863}

Powered by Google App Engine
This is Rietveld 408576698