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

Issue 2164043002: Clean up steps in Chromedriver recipe. (Closed)

Created:
4 years, 5 months ago by mikecase (-- gone --)
Modified:
4 years, 5 months ago
CC:
chromium-reviews, infra-reviews+build_chromium.org, kjellander-cc_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/tools/build.git@master
Target Ref:
refs/heads/master
Project:
build
Visibility:
Public.

Description

Clean up steps in Chromedriver recipe. The tempfile recipe module creates a few messy looking steps and the steps on the Chromedriver bot look very confusing and unorganized. Adding nested steps for the test runs to clean things up. Additionally, changed the name of server_log to make it unique for every test run. It is currently always getting uploaded with the name server_log and just overwriting itself. BUG=627633 Committed: https://chromium.googlesource.com/chromium/tools/build/+/3e11cab002795b08e77622dd69fecddf72ee926e

Patch Set 1 #

Patch Set 2 : Give server_logs unique names #

Total comments: 2

Patch Set 3 : Use tempfile.tempdir #

Total comments: 2

Patch Set 4 : Clean up steps in Chromedriver recipe. #

Patch Set 5 : Fix expectation file error. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+960 lines, -633 lines) Patch
M scripts/slave/recipe_modules/chromedriver/__init__.py View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M scripts/slave/recipe_modules/chromedriver/api.py View 1 2 3 4 6 chunks +57 lines, -56 lines 0 comments Download
M scripts/slave/recipe_modules/chromedriver/example.py View 1 1 chunk +1 line, -1 line 0 comments Download
M scripts/slave/recipe_modules/chromedriver/example.expected/Android_ChromeDriver_basic.json View 1 2 3 35 chunks +153 lines, -89 lines 0 comments Download
M scripts/slave/recipe_modules/chromedriver/example.expected/Android_ChromeDriver_commit_already_in_logs.json View 1 2 3 34 chunks +150 lines, -78 lines 0 comments Download
M scripts/slave/recipe_modules/chromedriver/example.expected/Android_ChromeDriver_download_logs_failure.json View 1 2 3 4 35 chunks +153 lines, -89 lines 0 comments Download
M scripts/slave/recipe_modules/chromedriver/example.expected/Android_ChromeDriver_test_failure.json View 1 2 3 35 chunks +145 lines, -115 lines 0 comments Download
M scripts/slave/recipes/chromedriver.py View 1 1 chunk +1 line, -1 line 0 comments Download
M scripts/slave/recipes/chromedriver.expected/Android_ChromeDriver_Tests__dbg__basic.json View 1 2 3 35 chunks +153 lines, -89 lines 0 comments Download
M scripts/slave/recipes/chromedriver.expected/Android_ChromeDriver_Tests__dbg__test_failure.json View 1 2 3 35 chunks +145 lines, -115 lines 0 comments Download

Messages

Total messages: 20 (9 generated)
mikecase (-- gone --)
4 years, 5 months ago (2016-07-20 17:47:49 UTC) #2
mikecase (-- gone --)
Updated CL to give server_logs unique names (currently it just overwrites itself when uploaded)
4 years, 5 months ago (2016-07-20 20:55:41 UTC) #5
the real yoland
https://codereview.chromium.org/2164043002/diff/20001/scripts/slave/recipe_modules/chromedriver/api.py File scripts/slave/recipe_modules/chromedriver/api.py (right): https://codereview.chromium.org/2164043002/diff/20001/scripts/slave/recipe_modules/chromedriver/api.py#newcode149 scripts/slave/recipe_modules/chromedriver/api.py:149: server_log_dir = self.m.path.mkdtemp('server_log') you can still use temp_dir context ...
4 years, 5 months ago (2016-07-20 21:25:54 UTC) #6
mikecase (-- gone --)
https://codereview.chromium.org/2164043002/diff/20001/scripts/slave/recipe_modules/chromedriver/api.py File scripts/slave/recipe_modules/chromedriver/api.py (right): https://codereview.chromium.org/2164043002/diff/20001/scripts/slave/recipe_modules/chromedriver/api.py#newcode149 scripts/slave/recipe_modules/chromedriver/api.py:149: server_log_dir = self.m.path.mkdtemp('server_log') On 2016/07/20 at 21:25:54, the real ...
4 years, 5 months ago (2016-07-20 21:46:22 UTC) #7
jbudorick
https://codereview.chromium.org/2164043002/diff/40001/scripts/slave/recipe_modules/chromedriver/api.py File scripts/slave/recipe_modules/chromedriver/api.py (right): https://codereview.chromium.org/2164043002/diff/40001/scripts/slave/recipe_modules/chromedriver/api.py#newcode155 scripts/slave/recipe_modules/chromedriver/api.py:155: def run_java_tests(self, chromedriver, chrome=None, chrome_version_name=None, These two functions seem ...
4 years, 5 months ago (2016-07-20 21:49:22 UTC) #8
mikecase (-- gone --)
https://codereview.chromium.org/2164043002/diff/40001/scripts/slave/recipe_modules/chromedriver/api.py File scripts/slave/recipe_modules/chromedriver/api.py (right): https://codereview.chromium.org/2164043002/diff/40001/scripts/slave/recipe_modules/chromedriver/api.py#newcode155 scripts/slave/recipe_modules/chromedriver/api.py:155: def run_java_tests(self, chromedriver, chrome=None, chrome_version_name=None, On 2016/07/20 at 21:49:22, ...
4 years, 5 months ago (2016-07-20 22:50:20 UTC) #10
jbudorick
lgtm
4 years, 5 months ago (2016-07-20 22:51:04 UTC) #11
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/2164043002/60001
4 years, 5 months ago (2016-07-20 23:00:35 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: Build Presubmit on master.tryserver.infra (JOB_FAILED, https://build.chromium.org/p/tryserver.infra/builders/Build%20Presubmit/builds/6349)
4 years, 5 months ago (2016-07-20 23:09:59 UTC) #15
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/2164043002/80001
4 years, 5 months ago (2016-07-20 23:21:30 UTC) #18
commit-bot: I haz the power
4 years, 5 months ago (2016-07-20 23:26:08 UTC) #20
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/tools/build/+/3e11cab002795b08e776...

Powered by Google App Engine
This is Rietveld 408576698