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

Issue 11666023: Move android buildbot test logic into python (Closed)

Created:
7 years, 12 months ago by Isaac (away)
Modified:
7 years, 11 months ago
CC:
chromium-reviews, ilevy+watch_chromium.org, bulach, Yaron, peter+watch_chromium.org, klundberg+watch_chromium.org, frankf
Visibility:
Public.

Description

Move android buildbot test logic into python Our bash scripts were getting complicated an unwieldy. In this commit I port the test logic into python, as a precursor to moving the rest of the file. I also move the step selection logic into python which offers the following advantages: - Less files to maintain, easier to change something globally. - Paves way to moving most factory_properties into 'slave_properties' argument I added. This will let us change parameters like buildtype (make vs. ninja) without a waterfall restart. This also moves configuration into a single place. Also: - Refactor test runners to not require envsetup. - Adding test report step BUG=153707, 163476, 168518 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=175698

Patch Set 1 : #

Patch Set 2 : Step renames, minor tweaks #

Patch Set 3 : #

Total comments: 20

Patch Set 4 : Rebase (sandbox unit tests added), add pylint and unit test to presubmit checks, misc cleanup #

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : Reupload to fix copy detection on PRESUBMIT.py #

Total comments: 6

Patch Set 8 : addr cmp comments, renamed step names to lowercase #

Patch Set 9 : rebase #

Patch Set 10 : fix fyi bot step #

Patch Set 11 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+580 lines, -392 lines) Patch
A build/android/PRESUBMIT.py View 1 2 3 4 5 6 1 chunk +34 lines, -0 lines 0 comments Download
M build/android/buildbot/bb_asan_builder.sh View 1 2 3 1 chunk +4 lines, -11 lines 0 comments Download
M build/android/buildbot/bb_asan_tests.sh View 1 2 3 1 chunk +4 lines, -16 lines 0 comments Download
M build/android/buildbot/bb_clang_builder.sh View 1 2 3 1 chunk +4 lines, -9 lines 0 comments Download
M build/android/buildbot/bb_fyi_builder.sh View 1 2 3 1 chunk +4 lines, -14 lines 0 comments Download
M build/android/buildbot/bb_fyi_tester.sh View 1 2 3 1 chunk +4 lines, -17 lines 0 comments Download
M build/android/buildbot/bb_main_builder.sh View 1 2 3 1 chunk +4 lines, -16 lines 0 comments Download
M build/android/buildbot/bb_main_clobber.sh View 1 2 3 1 chunk +4 lines, -15 lines 0 comments Download
M build/android/buildbot/bb_main_tester.sh View 1 2 3 1 chunk +4 lines, -19 lines 0 comments Download
M build/android/buildbot/bb_perf_builder.sh View 1 2 3 1 chunk +4 lines, -10 lines 0 comments Download
M build/android/buildbot/bb_perf_gn_tests.sh View 1 2 3 1 chunk +4 lines, -13 lines 0 comments Download
A build/android/buildbot/bb_run_bot.py View 1 2 3 4 5 6 7 8 9 10 1 chunk +190 lines, -0 lines 0 comments Download
A build/android/buildbot/bb_tests.py View 1 2 3 4 5 6 7 8 9 10 1 chunk +244 lines, -0 lines 0 comments Download
M build/android/buildbot/bb_try_builder.sh View 1 2 3 1 chunk +4 lines, -16 lines 0 comments Download
M build/android/buildbot/bb_try_clang_builder.sh View 1 2 3 1 chunk +4 lines, -9 lines 0 comments Download
M build/android/buildbot/bb_try_fyi_builder.sh View 1 2 3 1 chunk +4 lines, -3 lines 0 comments Download
M build/android/buildbot/bb_try_fyi_tester.sh View 1 2 3 1 chunk +4 lines, -3 lines 0 comments Download
M build/android/buildbot/bb_try_tester.sh View 1 2 3 1 chunk +4 lines, -18 lines 0 comments Download
M build/android/buildbot/bb_webkit_latest_builder.sh View 1 2 3 1 chunk +4 lines, -15 lines 0 comments Download
M build/android/buildbot/bb_webkit_latest_tester.sh View 1 2 3 1 chunk +4 lines, -18 lines 0 comments Download
M build/android/buildbot/bb_webkit_latest_webkit_tester.sh View 1 2 3 1 chunk +4 lines, -16 lines 0 comments Download
M build/android/buildbot/buildbot_functions.sh View 1 2 3 4 5 6 7 8 9 10 5 chunks +3 lines, -151 lines 0 comments Download
A build/android/buildbot/tests/bb_run_bot_test.py View 1 2 3 4 5 6 7 1 chunk +30 lines, -0 lines 0 comments Download
M build/android/pylib/constants.py View 1 chunk +3 lines, -1 line 0 comments Download
M build/android/pylib/instrumentation/apk_info.py View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -1 line 0 comments Download
M build/android/pylib/utils/test_options_parser.py View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 15 (0 generated)
Isaac (away)
Moved to new issue number as I've managed to break rietveld on the old one.
7 years, 12 months ago (2012-12-24 21:49:19 UTC) #1
Isaac (away)
+Marcus
7 years, 12 months ago (2012-12-27 19:25:42 UTC) #2
frankf
https://chromiumcodereview.appspot.com/11666023/diff/2003/build/android/buildbot/bb_run_tests.py File build/android/buildbot/bb_run_tests.py (right): https://chromiumcodereview.appspot.com/11666023/diff/2003/build/android/buildbot/bb_run_tests.py#newcode37 build/android/buildbot/bb_run_tests.py:37: 'ContentShellTest', There's a lot of redundancy here. Why can't ...
7 years, 12 months ago (2012-12-27 19:57:46 UTC) #3
Isaac (away)
frankf to cc Some responses inline. https://chromiumcodereview.appspot.com/11666023/diff/2003/build/android/buildbot/bb_run_tests.py File build/android/buildbot/bb_run_tests.py (right): https://chromiumcodereview.appspot.com/11666023/diff/2003/build/android/buildbot/bb_run_tests.py#newcode37 build/android/buildbot/bb_run_tests.py:37: 'ContentShellTest', On 2012/12/27 ...
7 years, 12 months ago (2012-12-27 22:23:03 UTC) #4
frankf
https://chromiumcodereview.appspot.com/11666023/diff/2003/build/android/buildbot/bb_run_tests.py File build/android/buildbot/bb_run_tests.py (right): https://chromiumcodereview.appspot.com/11666023/diff/2003/build/android/buildbot/bb_run_tests.py#newcode92 build/android/buildbot/bb_run_tests.py:92: RunCmd(['build/android/run_tests.py'] + args) OK, let's keep this CL simple, ...
7 years, 12 months ago (2012-12-27 22:33:26 UTC) #5
Isaac (away)
https://chromiumcodereview.appspot.com/11666023/diff/2003/build/android/buildbot/bb_run_tests.py File build/android/buildbot/bb_run_tests.py (right): https://chromiumcodereview.appspot.com/11666023/diff/2003/build/android/buildbot/bb_run_tests.py#newcode110 build/android/buildbot/bb_run_tests.py:110: buildbot_report.PrintNamedStep('Instrumentation tests for %s' % test.name) On 2012/12/27 22:33:26, ...
7 years, 12 months ago (2012-12-27 22:55:20 UTC) #6
frankf
https://chromiumcodereview.appspot.com/11666023/diff/2003/build/android/buildbot/bb_run_tests.py File build/android/buildbot/bb_run_tests.py (right): https://chromiumcodereview.appspot.com/11666023/diff/2003/build/android/buildbot/bb_run_tests.py#newcode110 build/android/buildbot/bb_run_tests.py:110: buildbot_report.PrintNamedStep('Instrumentation tests for %s' % test.name) It's needed to ...
7 years, 12 months ago (2012-12-27 23:06:10 UTC) #7
Isaac (away)
https://chromiumcodereview.appspot.com/11666023/diff/2003/build/android/buildbot/bb_run_tests.py File build/android/buildbot/bb_run_tests.py (right): https://chromiumcodereview.appspot.com/11666023/diff/2003/build/android/buildbot/bb_run_tests.py#newcode110 build/android/buildbot/bb_run_tests.py:110: buildbot_report.PrintNamedStep('Instrumentation tests for %s' % test.name) On 2012/12/27 23:06:10, ...
7 years, 12 months ago (2012-12-28 05:31:48 UTC) #8
xusydoc (do not use)
In general it looks good, but I'm in tune enough with the android side of ...
7 years, 11 months ago (2013-01-04 17:09:21 UTC) #9
Isaac (away)
https://codereview.chromium.org/11666023/diff/2003/build/android/buildbot/buildbot_functions.sh File build/android/buildbot/buildbot_functions.sh (right): https://codereview.chromium.org/11666023/diff/2003/build/android/buildbot/buildbot_functions.sh#newcode25 build/android/buildbot/buildbot_functions.sh:25: --slave-properties=*) On 2013/01/04 17:09:21, xusydoc (do not use) wrote: ...
7 years, 11 months ago (2013-01-04 17:21:37 UTC) #10
Isaac (away)
OK let's do it this way: Chase: Could you do the review for buildbot / ...
7 years, 11 months ago (2013-01-05 22:37:55 UTC) #11
cmp
lgtm with nits xusydoc, this seems like a decent stopgap that we could use for ...
7 years, 11 months ago (2013-01-09 02:16:27 UTC) #12
Isaac (away)
Done and submitting. https://codereview.chromium.org/11666023/diff/45001/build/android/buildbot/tests/bb_run_bot_test.py File build/android/buildbot/tests/bb_run_bot_test.py (right): https://codereview.chromium.org/11666023/diff/45001/build/android/buildbot/tests/bb_run_bot_test.py#newcode8 build/android/buildbot/tests/bb_run_bot_test.py:8: import subprocess On 2013/01/09 02:16:28, cmp ...
7 years, 11 months ago (2013-01-09 03:10:15 UTC) #13
Isaac (away)
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=175698
7 years, 11 months ago (2013-01-09 03:50:15 UTC) #14
bulach
7 years, 11 months ago (2013-01-09 16:15:20 UTC) #15
Message was sent while issue was closed.
just want to say THANKS!!!! long live python and for a 2013 with less bash
gotchas! :)

Powered by Google App Engine
This is Rietveld 408576698