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

Issue 1274723004: Converted Android Chromedriver buildbot scripts to recipes. (Closed)

Created:
5 years, 4 months ago by mikecase (-- gone --)
Modified:
4 years, 5 months ago
Reviewers:
samuong, bpastene, jbudorick
CC:
chromium-reviews, gmanikpure, jbudorick, kjellander-cc_chromium.org, samuong, stip+watch_chromium.org
Target Ref:
refs/heads/master
Project:
build
Visibility:
Public.

Description

Converted Android Chromedriver buildbot scripts to recipes. Initially adding only Android Chromedriver buildbot code to keep the CL size down. recipe_modules/chromedriver/api.py contains many of the same functions (converted to recipes) from... src/chrome/test/chromedriver/test/run_all_tests.py and src/chrome/test/chromedriver/run_buildbot_steps.py recipes/chromedriver.py is the android specific parts of the main() function from run_buildbot_steps.py plus some installation and device checking recipe steps. BUG= Committed: https://chromium.googlesource.com/chromium/tools/build/+/042328a7f55e8ea0373ff2fe4b366a268679ad89

Patch Set 1 #

Patch Set 2 : #

Total comments: 34

Patch Set 3 : Address most of the comments. #

Patch Set 4 : Saving CL for Move #

Patch Set 5 : Updated recipe module. Added more tests. #

Patch Set 6 : #

Patch Set 7 : #

Patch Set 8 : Fixed one of the docstrings #

Total comments: 39

Patch Set 9 : Changed to ONLY have Android support. Much smaller CL. #

Patch Set 10 : Converted Chromedriver buildbot scripts to recipes. #

Total comments: 16

Patch Set 11 : Updated with Johns comments #

Total comments: 10

Patch Set 12 : Addressed comments. Changed --log-dir to --log-path #

Patch Set 13 : Moved some mkdirs inside try blocks they should have been in #

Total comments: 8

Patch Set 14 : Fixed nits. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5518 lines, -0 lines) Patch
A scripts/slave/recipe_modules/chromedriver/__init__.py View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +16 lines, -0 lines 0 comments Download
A scripts/slave/recipe_modules/chromedriver/api.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +211 lines, -0 lines 0 comments Download
A scripts/slave/recipe_modules/chromedriver/example.py View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +108 lines, -0 lines 0 comments Download
A scripts/slave/recipe_modules/chromedriver/example.expected/Android_ChromeDriver_basic.json View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +708 lines, -0 lines 0 comments Download
A scripts/slave/recipe_modules/chromedriver/example.expected/Android_ChromeDriver_commit_already_in_logs.json View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +654 lines, -0 lines 0 comments Download
A scripts/slave/recipe_modules/chromedriver/example.expected/Android_ChromeDriver_download_logs_failure.json View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +697 lines, -0 lines 0 comments Download
A scripts/slave/recipe_modules/chromedriver/example.expected/Android_ChromeDriver_test_failure.json View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +695 lines, -0 lines 0 comments Download
M scripts/slave/recipe_modules/file/api.py View 1 2 3 4 5 6 7 8 9 10 1 chunk +14 lines, -0 lines 0 comments Download
M scripts/slave/recipe_modules/gsutil/api.py View 1 2 3 4 5 6 7 8 2 chunks +27 lines, -0 lines 0 comments Download
M scripts/slave/recipe_modules/gsutil/example.py View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -0 lines 0 comments Download
M scripts/slave/recipe_modules/gsutil/example.expected/basic.json View 1 2 3 4 5 6 7 8 1 chunk +28 lines, -0 lines 0 comments Download
A scripts/slave/recipes/chromedriver.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +117 lines, -0 lines 0 comments Download
A scripts/slave/recipes/chromedriver.expected/Android_ChromeDriver_Tests__dbg__basic.json View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1126 lines, -0 lines 0 comments Download
A scripts/slave/recipes/chromedriver.expected/Android_ChromeDriver_Tests__dbg__test_failure.json View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1113 lines, -0 lines 0 comments Download

Messages

Total messages: 28 (7 generated)
mikecase (-- gone --)
Adding recipe_modules/chromedriver/api.py which is essentially the converted chromedriver buildbot scripts and adding a recipe chromedriver_android.py ...
5 years, 4 months ago (2015-08-05 23:31:47 UTC) #2
luqui
I'm about half done with this review and my brain is out of juice. I'll ...
5 years, 4 months ago (2015-08-06 00:57:37 UTC) #3
luqui
https://codereview.chromium.org/1274723004/diff/20001/scripts/slave/recipe_modules/chromedriver/api.py File scripts/slave/recipe_modules/chromedriver/api.py (right): https://codereview.chromium.org/1274723004/diff/20001/scripts/slave/recipe_modules/chromedriver/api.py#newcode293 scripts/slave/recipe_modules/chromedriver/api.py:293: assert chromedriver_platform != 'android' Why? (answer in comment) I'm ...
5 years, 4 months ago (2015-08-06 20:52:59 UTC) #4
samuong
https://codereview.chromium.org/1274723004/diff/20001/scripts/slave/recipe_modules/chromedriver/api.py File scripts/slave/recipe_modules/chromedriver/api.py (right): https://codereview.chromium.org/1274723004/diff/20001/scripts/slave/recipe_modules/chromedriver/api.py#newcode293 scripts/slave/recipe_modules/chromedriver/api.py:293: assert chromedriver_platform != 'android' On 2015/08/06 20:52:58, luqui wrote: ...
5 years, 4 months ago (2015-08-06 21:58:39 UTC) #6
samuong
https://codereview.chromium.org/1274723004/diff/20001/scripts/slave/recipes/chromedriver/chromedriver_android.py File scripts/slave/recipes/chromedriver/chromedriver_android.py (right): https://codereview.chromium.org/1274723004/diff/20001/scripts/slave/recipes/chromedriver/chromedriver_android.py#newcode37 scripts/slave/recipes/chromedriver/chromedriver_android.py:37: 'package': 'org.chromium.chrome.shell', Don't forget we need to replace this ...
5 years, 3 months ago (2015-08-28 00:14:47 UTC) #7
mikecase (-- gone --)
Updated CL to have this replace the current auto-gen recipe. I compared the android chromedriver ...
4 years, 8 months ago (2016-04-04 21:46:42 UTC) #9
jbudorick
I got halfway through the api. This CL needs to be split up. There's far ...
4 years, 7 months ago (2016-05-04 18:10:44 UTC) #10
mikecase (-- gone --)
Updated CL to only support Android Chromedriver recipe. This makes is much smaller because all ...
4 years, 6 months ago (2016-06-16 17:55:08 UTC) #11
mikecase (-- gone --)
ping
4 years, 6 months ago (2016-06-21 22:46:59 UTC) #12
jbudorick
https://codereview.chromium.org/1274723004/diff/180001/scripts/slave/recipe_modules/chromedriver/api.py File scripts/slave/recipe_modules/chromedriver/api.py (right): https://codereview.chromium.org/1274723004/diff/180001/scripts/slave/recipe_modules/chromedriver/api.py#newcode48 scripts/slave/recipe_modules/chromedriver/api.py:48: nit: -1 blank line https://codereview.chromium.org/1274723004/diff/180001/scripts/slave/recipe_modules/chromedriver/api.py#newcode97 scripts/slave/recipe_modules/chromedriver/api.py:97: return {int(k): v ...
4 years, 6 months ago (2016-06-22 10:17:01 UTC) #13
mikecase (-- gone --)
https://codereview.chromium.org/1274723004/diff/180001/scripts/slave/recipe_modules/chromedriver/api.py File scripts/slave/recipe_modules/chromedriver/api.py (right): https://codereview.chromium.org/1274723004/diff/180001/scripts/slave/recipe_modules/chromedriver/api.py#newcode48 scripts/slave/recipe_modules/chromedriver/api.py:48: On 2016/06/22 at 10:17:01, jbudorick (EMEA til June 30) ...
4 years, 6 months ago (2016-06-23 19:14:35 UTC) #14
jbudorick
https://codereview.chromium.org/1274723004/diff/180001/scripts/slave/recipe_modules/chromedriver/api.py File scripts/slave/recipe_modules/chromedriver/api.py (right): https://codereview.chromium.org/1274723004/diff/180001/scripts/slave/recipe_modules/chromedriver/api.py#newcode204 scripts/slave/recipe_modules/chromedriver/api.py:204: if android_packages: On 2016/06/23 19:14:35, mikecase wrote: > On ...
4 years, 6 months ago (2016-06-24 13:31:09 UTC) #15
samuong
https://codereview.chromium.org/1274723004/diff/200001/scripts/slave/recipe_modules/chromedriver/api.py File scripts/slave/recipe_modules/chromedriver/api.py (right): https://codereview.chromium.org/1274723004/diff/200001/scripts/slave/recipe_modules/chromedriver/api.py#newcode142 scripts/slave/recipe_modules/chromedriver/api.py:142: '--log-dir', str(test_log_dir) run_py_tests.py and run_java_tests.py have a --log-path switch, ...
4 years, 6 months ago (2016-06-24 16:40:57 UTC) #16
mikecase (-- gone --)
https://codereview.chromium.org/1274723004/diff/200001/scripts/slave/recipe_modules/chromedriver/api.py File scripts/slave/recipe_modules/chromedriver/api.py (right): https://codereview.chromium.org/1274723004/diff/200001/scripts/slave/recipe_modules/chromedriver/api.py#newcode20 scripts/slave/recipe_modules/chromedriver/api.py:20: def get_chromedriver_platform(self, is_android): On 2016/06/24 at 13:31:09, jbudorick (EMEA ...
4 years, 6 months ago (2016-06-24 18:57:50 UTC) #17
mikecase (-- gone --)
ping
4 years, 5 months ago (2016-07-11 17:36:23 UTC) #18
jbudorick
lgtm w/ nit https://codereview.chromium.org/1274723004/diff/240001/scripts/slave/recipe_modules/chromedriver/api.py File scripts/slave/recipe_modules/chromedriver/api.py (right): https://codereview.chromium.org/1274723004/diff/240001/scripts/slave/recipe_modules/chromedriver/api.py#newcode150 scripts/slave/recipe_modules/chromedriver/api.py:150: self._generate_test_command( nit: indentation is off here. ...
4 years, 5 months ago (2016-07-11 17:53:48 UTC) #19
samuong
lgtm we talked about having the recipe install the chrome beta/stable apks over im, but ...
4 years, 5 months ago (2016-07-11 18:12:59 UTC) #20
mikecase (-- gone --)
https://codereview.chromium.org/1274723004/diff/240001/scripts/slave/recipe_modules/chromedriver/api.py File scripts/slave/recipe_modules/chromedriver/api.py (right): https://codereview.chromium.org/1274723004/diff/240001/scripts/slave/recipe_modules/chromedriver/api.py#newcode150 scripts/slave/recipe_modules/chromedriver/api.py:150: self._generate_test_command( On 2016/07/11 at 17:53:48, jbudorick wrote: > nit: ...
4 years, 5 months ago (2016-07-11 22:39:44 UTC) #21
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/1274723004/260001
4 years, 5 months ago (2016-07-11 22:42:14 UTC) #25
commit-bot: I haz the power
Committed patchset #14 (id:260001) as https://chromium.googlesource.com/chromium/tools/build/+/042328a7f55e8ea0373ff2fe4b366a268679ad89
4 years, 5 months ago (2016-07-11 22:46:15 UTC) #27
commit-bot: I haz the power
4 years, 5 months ago (2016-07-11 22:46:17 UTC) #28
Message was sent while issue was closed.
CQ bit was unchecked.

Powered by Google App Engine
This is Rietveld 408576698