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

Issue 18323020: Updates the test runner script exit codes (Closed)

Created:
7 years, 5 months ago by gkanwar
Modified:
7 years, 5 months ago
CC:
chromium-reviews, craigdh+watch_chromium.org, bulach+watch_chromium.org, yfriedman+watch_chromium.org, ilevy-cc_chromium.org, klundberg+watch_chromium.org, frankf+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Updates the test runner script exit codes The script now returns exit codes based on what occurred in the test. Exit codes: 0 -- normal 1 -- fail/crash 88 -- warning In addition, the scripts now handle DeviceUnresponsiveError by returning a warning exit code overall, rather than silently moving on. BUG=170477, 258171 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=210749

Patch Set 1 #

Total comments: 12

Patch Set 2 : Changes exit_code tracking to a singleton paradigm #

Total comments: 2

Patch Set 3 : Removes exit_code module, makes sharder handle exit codes #

Total comments: 16

Patch Set 4 : Makes several minor fixes #

Total comments: 18

Patch Set 5 : Tweaks some docstrings, removes NORMAL_EXIT_CODE #

Total comments: 4

Patch Set 6 : Removes a PrintAnnotation call #

Patch Set 7 : Updates RunCmd in bb_utils to use WARNING_EXIT_CODE #

Patch Set 8 : Temporarily copies buildbot_report.py to buildbot #

Total comments: 3

Patch Set 9 : Fixes RunCmd in bb_utils #

Patch Set 10 : Renames buildbot_report to bb_annoations #

Patch Set 11 : Rebases onto master #

Patch Set 12 : Fixes bb_annotations, removes PrintAnnotation #

Patch Set 13 : Fixes a missing import in constants #

Patch Set 14 : Fixes Python dispatch issues in test_runner.py #

Unified diffs Side-by-side diffs Delta from patch set Stats (+143 lines, -134 lines) Patch
A + build/android/buildbot/bb_annotations.py View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -8 lines 0 comments Download
M build/android/buildbot/bb_device_steps.py View 1 2 3 4 5 6 7 8 9 10 11 11 chunks +13 lines, -13 lines 0 comments Download
M build/android/buildbot/bb_host_steps.py View 1 2 3 4 5 6 7 8 9 10 11 7 chunks +10 lines, -10 lines 0 comments Download
M build/android/buildbot/bb_utils.py View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +6 lines, -4 lines 0 comments Download
M build/android/pylib/base/base_test_result.py View 1 2 3 3 chunks +2 lines, -1 line 0 comments Download
M build/android/pylib/base/shard.py View 1 2 3 4 8 chunks +21 lines, -15 lines 0 comments Download
M build/android/pylib/base/shard_unittest.py View 1 2 3 4 4 chunks +11 lines, -5 lines 0 comments Download
M build/android/pylib/browsertests/dispatch.py View 1 2 3 4 5 2 chunks +14 lines, -8 lines 0 comments Download
M build/android/pylib/buildbot_report.py View 1 1 chunk +0 lines, -8 lines 0 comments Download
M build/android/pylib/constants.py View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +4 lines, -0 lines 0 comments Download
M build/android/pylib/gtest/dispatch.py View 1 2 3 4 8 chunks +24 lines, -12 lines 0 comments Download
M build/android/pylib/gtest/test_runner.py View 1 2 3 4 5 6 7 8 9 10 1 chunk +0 lines, -5 lines 0 comments Download
M build/android/pylib/host_driven/run_python_tests.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +4 lines, -1 line 0 comments Download
M build/android/pylib/instrumentation/dispatch.py View 1 2 1 chunk +1 line, -1 line 0 comments Download
M build/android/pylib/uiautomator/dispatch.py View 1 2 1 chunk +1 line, -1 line 0 comments Download
M build/android/pylib/utils/report_results.py View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +0 lines, -8 lines 0 comments Download
M build/android/run_monkey_test.py View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +5 lines, -1 line 0 comments Download
M build/android/test_runner.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 6 chunks +27 lines, -33 lines 0 comments Download

Messages

Total messages: 24 (0 generated)
gkanwar
7 years, 5 months ago (2013-07-03 21:07:29 UTC) #1
frankf
https://codereview.chromium.org/18323020/diff/1/build/android/pylib/base/shard.py File build/android/pylib/base/shard.py (left): https://codereview.chromium.org/18323020/diff/1/build/android/pylib/base/shard.py#oldcode157 build/android/pylib/base/shard.py:157: test_collection.add(test) This decreases robustness. Currently, if we catch this ...
7 years, 5 months ago (2013-07-03 21:26:37 UTC) #2
gkanwar
https://codereview.chromium.org/18323020/diff/1/build/android/pylib/base/shard.py File build/android/pylib/base/shard.py (left): https://codereview.chromium.org/18323020/diff/1/build/android/pylib/base/shard.py#oldcode157 build/android/pylib/base/shard.py:157: test_collection.add(test) On 2013/07/03 21:26:37, frankf wrote: > This decreases ...
7 years, 5 months ago (2013-07-03 23:15:18 UTC) #3
gkanwar
On 2013/07/03 23:15:18, gkanwar wrote: > https://codereview.chromium.org/18323020/diff/1/build/android/pylib/base/shard.py > File build/android/pylib/base/shard.py (left): > > https://codereview.chromium.org/18323020/diff/1/build/android/pylib/base/shard.py#oldcode157 > ...
7 years, 5 months ago (2013-07-04 00:25:33 UTC) #4
frankf
https://codereview.chromium.org/18323020/diff/1/build/android/pylib/base/shard.py File build/android/pylib/base/shard.py (left): https://codereview.chromium.org/18323020/diff/1/build/android/pylib/base/shard.py#oldcode157 build/android/pylib/base/shard.py:157: test_collection.add(test) Ah, it makes sense. On 2013/07/03 23:15:18, gkanwar ...
7 years, 5 months ago (2013-07-04 00:46:19 UTC) #5
frankf
https://codereview.chromium.org/18323020/diff/3002/build/android/pylib/buildbot_report.py File build/android/pylib/buildbot_report.py (left): https://codereview.chromium.org/18323020/diff/3002/build/android/pylib/buildbot_report.py#oldcode49 build/android/pylib/buildbot_report.py:49: def PrintStepResultIfNeeded(options, result): On second look, we use --buildbot-step-failure ...
7 years, 5 months ago (2013-07-04 01:22:35 UTC) #6
gkanwar
https://codereview.chromium.org/18323020/diff/7001/build/android/test_runner.py File build/android/test_runner.py (right): https://codereview.chromium.org/18323020/diff/7001/build/android/test_runner.py#newcode413 build/android/test_runner.py:413: returned_exit_code = exit_code.GetExitCode() On 2013/07/04 00:46:19, frankf wrote: > ...
7 years, 5 months ago (2013-07-08 18:50:24 UTC) #7
frankf
https://codereview.chromium.org/18323020/diff/20001/build/android/pylib/buildbot_report.py File build/android/pylib/buildbot_report.py (right): https://codereview.chromium.org/18323020/diff/20001/build/android/pylib/buildbot_report.py#newcode5 build/android/pylib/buildbot_report.py:5: """Helper functions to print buildbot messages.""" Let's move this ...
7 years, 5 months ago (2013-07-08 19:13:43 UTC) #8
frankf
https://codereview.chromium.org/18323020/diff/20001/build/android/pylib/gtest/dispatch.py File build/android/pylib/gtest/dispatch.py (right): https://codereview.chromium.org/18323020/diff/20001/build/android/pylib/gtest/dispatch.py#newcode189 build/android/pylib/gtest/dispatch.py:189: report_results.PrintAnnotation(test_results) Also, we don't need to call this anymore. ...
7 years, 5 months ago (2013-07-08 19:23:28 UTC) #9
gkanwar
https://codereview.chromium.org/18323020/diff/20001/build/android/pylib/buildbot_report.py File build/android/pylib/buildbot_report.py (right): https://codereview.chromium.org/18323020/diff/20001/build/android/pylib/buildbot_report.py#newcode5 build/android/pylib/buildbot_report.py:5: """Helper functions to print buildbot messages.""" On 2013/07/08 19:13:43, ...
7 years, 5 months ago (2013-07-08 21:17:07 UTC) #10
frankf
lgtm with nits. So, as follow up to this, we need to change the upstream ...
7 years, 5 months ago (2013-07-08 23:59:12 UTC) #11
gkanwar
On 2013/07/08 23:59:12, frankf wrote: > lgtm with nits. > > So, as follow up ...
7 years, 5 months ago (2013-07-09 00:06:10 UTC) #12
gkanwar
https://codereview.chromium.org/18323020/diff/30001/build/android/pylib/browsertests/dispatch.py File build/android/pylib/browsertests/dispatch.py (right): https://codereview.chromium.org/18323020/diff/30001/build/android/pylib/browsertests/dispatch.py#newcode96 build/android/pylib/browsertests/dispatch.py:96: report_results.PrintAnnotation(test_results) On 2013/07/08 23:59:12, frankf wrote: > Remove this. ...
7 years, 5 months ago (2013-07-09 00:06:29 UTC) #13
gkanwar
Isaac -- Frank suggested that I copy buildbot_report.py into the buildbot directory (instead of moving) ...
7 years, 5 months ago (2013-07-09 00:28:52 UTC) #14
frankf
https://codereview.chromium.org/18323020/diff/25017/build/android/buildbot/bb_utils.py File build/android/buildbot/bb_utils.py (right): https://codereview.chromium.org/18323020/diff/25017/build/android/buildbot/bb_utils.py#newcode12 build/android/buildbot/bb_utils.py:12: import buildbot_report I think the convention is bb_*. It ...
7 years, 5 months ago (2013-07-09 00:37:56 UTC) #15
gkanwar
https://codereview.chromium.org/18323020/diff/25017/build/android/buildbot/bb_utils.py File build/android/buildbot/bb_utils.py (right): https://codereview.chromium.org/18323020/diff/25017/build/android/buildbot/bb_utils.py#newcode53 build/android/buildbot/bb_utils.py:53: if code != constants.WARNING_EXIT_CODE and flunk_on_failure: On 2013/07/09 00:37:56, ...
7 years, 5 months ago (2013-07-09 00:47:42 UTC) #16
Isaac (away)
lgtm
7 years, 5 months ago (2013-07-09 00:52:49 UTC) #17
gkanwar
On 2013/07/09 00:52:49, Isaac wrote: > lgtm Isaac -- did you see Frank's comment about ...
7 years, 5 months ago (2013-07-09 00:54:40 UTC) #18
Isaac (away)
On 2013/07/09 00:54:40, gkanwar wrote: > On 2013/07/09 00:52:49, Isaac wrote: > > lgtm > ...
7 years, 5 months ago (2013-07-09 01:18:00 UTC) #19
gkanwar
On 2013/07/09 01:18:00, Isaac wrote: > On 2013/07/09 00:54:40, gkanwar wrote: > > On 2013/07/09 ...
7 years, 5 months ago (2013-07-09 01:20:57 UTC) #20
gkanwar
On 2013/07/09 01:20:57, gkanwar wrote: > On 2013/07/09 01:18:00, Isaac wrote: > > On 2013/07/09 ...
7 years, 5 months ago (2013-07-09 17:12:28 UTC) #21
gkanwar
On 2013/07/09 17:12:28, gkanwar wrote: > On 2013/07/09 01:20:57, gkanwar wrote: > > On 2013/07/09 ...
7 years, 5 months ago (2013-07-09 20:34:32 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gkanwar@google.com/18323020/55018
7 years, 5 months ago (2013-07-09 20:34:54 UTC) #23
commit-bot: I haz the power
7 years, 5 months ago (2013-07-10 04:57:11 UTC) #24
Message was sent while issue was closed.
Change committed as 210749

Powered by Google App Engine
This is Rietveld 408576698