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

Issue 1316413003: [Android] Add a configurable environment for devil/. (Closed)

Created:
5 years, 3 months ago by jbudorick
Modified:
5 years, 2 months ago
CC:
chromium-reviews, jbudorick+watch_chromium.org, klundberg+watch_chromium.org, nednguyen, yfriedman+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Android] Add a configurable environment for devil/. BUG=476719 Committed: https://crrev.com/975fc02186d195c3baf6f0380fed06433c636670 Cr-Commit-Position: refs/heads/master@{#352359}

Patch Set 1 #

Total comments: 12

Patch Set 2 : dependency_manager implementation #

Total comments: 11

Patch Set 3 : perezju comments #

Patch Set 4 : #

Total comments: 6

Patch Set 5 : perezju comments 2 #

Patch Set 6 : rebase #

Patch Set 7 : fix presubmit on linux #

Patch Set 8 : fix linux presubmit, round 2 #

Patch Set 9 : fix linux presubmit, round 3 #

Patch Set 10 : forwarder + md5sum in devil_config.json #

Total comments: 2

Patch Set 11 : fix linux_android_rel_ng #

Patch Set 12 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+346 lines, -82 lines) Patch
M build/android/PRESUBMIT.py View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +25 lines, -7 lines 0 comments Download
M build/android/buildbot/bb_device_status_check.py View 1 2 3 4 5 6 7 8 9 2 chunks +3 lines, -0 lines 0 comments Download
M build/android/devil/android/apk_helper.py View 1 2 3 4 5 1 chunk +0 lines, -3 lines 0 comments Download
M build/android/devil/android/battery_utils_test.py View 1 2 1 chunk +2 lines, -4 lines 0 comments Download
M build/android/devil/android/device_temp_file_test.py View 1 2 1 chunk +2 lines, -4 lines 0 comments Download
M build/android/devil/android/device_utils.py View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +2 lines, -2 lines 0 comments Download
M build/android/devil/android/device_utils_test.py View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +17 lines, -15 lines 0 comments Download
M build/android/devil/android/logcat_monitor_test.py View 1 2 1 chunk +2 lines, -4 lines 0 comments Download
M build/android/devil/android/md5sum.py View 1 2 3 chunks +3 lines, -4 lines 0 comments Download
M build/android/devil/android/md5sum_test.py View 1 2 1 chunk +11 lines, -7 lines 0 comments Download
M build/android/devil/android/sdk/aapt.py View 1 2 2 chunks +5 lines, -3 lines 0 comments Download
M build/android/devil/android/sdk/adb_wrapper.py View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -2 lines 0 comments Download
M build/android/devil/android/sdk/dexdump.py View 1 2 1 chunk +3 lines, -2 lines 0 comments Download
M build/android/devil/android/sdk/shared_prefs_test.py View 1 2 1 chunk +2 lines, -4 lines 0 comments Download
M build/android/devil/android/sdk/split_select.py View 1 2 2 chunks +4 lines, -3 lines 0 comments Download
A build/android/devil/devil_env.py View 1 2 3 4 5 6 7 8 9 1 chunk +159 lines, -0 lines 0 comments Download
M build/android/devil/utils/lsusb.py View 1 chunk +1 line, -1 line 0 comments Download
M build/android/devil/utils/mock_calls.py View 1 2 1 chunk +2 lines, -4 lines 0 comments Download
M build/android/devil/utils/mock_calls_test.py View 1 2 1 chunk +2 lines, -3 lines 0 comments Download
A build/android/devil_config.json View 1 2 3 4 5 6 7 8 9 1 chunk +63 lines, -0 lines 0 comments Download
M build/android/provision_devices.py View 1 2 3 4 5 6 7 8 9 2 chunks +3 lines, -0 lines 0 comments Download
M build/android/pylib/forwarder.py View 1 2 4 chunks +6 lines, -6 lines 0 comments Download
M build/android/pylib/perf/test_runner.py View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -0 lines 0 comments Download
M build/android/pylintrc View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M build/android/test_runner.py View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +21 lines, -0 lines 0 comments Download
M tools/telemetry/catapult_base/dependency_manager/dependency_manager.py View 1 2 3 4 5 6 7 8 9 2 chunks +0 lines, -4 lines 0 comments Download

Messages

Total messages: 40 (11 generated)
jbudorick
nednguyen: fyi, because I plan to use this (or whatever comes of it) in telemetry ...
5 years, 3 months ago (2015-09-09 23:47:07 UTC) #2
mikecase (-- gone --)
https://codereview.chromium.org/1316413003/diff/1/build/android/devil/env/android_sdk_config.py File build/android/devil/env/android_sdk_config.py (right): https://codereview.chromium.org/1316413003/diff/1/build/android/devil/env/android_sdk_config.py#newcode18 build/android/devil/env/android_sdk_config.py:18: or os.environ.get(DEVIL_ANDROID_SDK_ROOT)) I think this could be a little ...
5 years, 3 months ago (2015-09-10 00:54:16 UTC) #3
nednguyen
+Kari since we are taking a similar strategy here.
5 years, 3 months ago (2015-09-10 02:39:02 UTC) #5
perezju
https://codereview.chromium.org/1316413003/diff/1/build/android/devil/android/battery_utils_test.py File build/android/devil/android/battery_utils_test.py (right): https://codereview.chromium.org/1316413003/diff/1/build/android/devil/android/battery_utils_test.py#newcode23 build/android/devil/android/battery_utils_test.py:23: sys.path.append(devil.env.dependencies.pymock_path) +1!! Love how this looks. https://codereview.chromium.org/1316413003/diff/1/build/android/devil/env/__init__.py File build/android/devil/env/__init__.py ...
5 years, 3 months ago (2015-09-10 09:45:49 UTC) #6
aiolos (Not reviewing)
https://codereview.chromium.org/1316413003/diff/1/build/android/devil/env/android_sdk_config.py File build/android/devil/env/android_sdk_config.py (right): https://codereview.chromium.org/1316413003/diff/1/build/android/devil/env/android_sdk_config.py#newcode17 build/android/devil/env/android_sdk_config.py:17: return (self._configured.get('root_path') You could use the dependency_manager instead. You ...
5 years, 3 months ago (2015-09-10 12:25:50 UTC) #8
jbudorick
Rewrote the entire CL w/ dependency_manager. https://codereview.chromium.org/1316413003/diff/1/build/android/devil/env/__init__.py File build/android/devil/env/__init__.py (right): https://codereview.chromium.org/1316413003/diff/1/build/android/devil/env/__init__.py#newcode13 build/android/devil/env/__init__.py:13: On 2015/09/10 at ...
5 years, 3 months ago (2015-09-12 02:31:05 UTC) #9
perezju
https://codereview.chromium.org/1316413003/diff/20001/build/android/devil/android/battery_utils_test.py File build/android/devil/android/battery_utils_test.py (right): https://codereview.chromium.org/1316413003/diff/20001/build/android/devil/android/battery_utils_test.py#newcode23 build/android/devil/android/battery_utils_test.py:23: devil_env.InitializeForTests() I don't like having to add this bit ...
5 years, 3 months ago (2015-09-14 09:13:58 UTC) #10
jbudorick
https://codereview.chromium.org/1316413003/diff/20001/build/android/devil/android/battery_utils_test.py File build/android/devil/android/battery_utils_test.py (right): https://codereview.chromium.org/1316413003/diff/20001/build/android/devil/android/battery_utils_test.py#newcode23 build/android/devil/android/battery_utils_test.py:23: devil_env.InitializeForTests() On 2015/09/14 at 09:13:58, perezju wrote: > I ...
5 years, 3 months ago (2015-09-14 13:12:39 UTC) #11
jbudorick
Addressed perezju's comments. ptal
5 years, 3 months ago (2015-09-14 16:02:17 UTC) #12
perezju
awesome, lgtm, just a couple of comments https://codereview.chromium.org/1316413003/diff/60001/build/android/devil/devil_env.py File build/android/devil/devil_env.py (right): https://codereview.chromium.org/1316413003/diff/60001/build/android/devil/devil_env.py#newcode60 build/android/devil/devil_env.py:60: config_files=[next_config_file.name] + ...
5 years, 3 months ago (2015-09-14 16:15:06 UTC) #13
jbudorick
https://codereview.chromium.org/1316413003/diff/60001/build/android/devil/devil_env.py File build/android/devil/devil_env.py (right): https://codereview.chromium.org/1316413003/diff/60001/build/android/devil/devil_env.py#newcode60 build/android/devil/devil_env.py:60: config_files=[next_config_file.name] + (config_files or [])) On 2015/09/14 at 16:15:06, ...
5 years, 3 months ago (2015-09-14 17:45:39 UTC) #14
jbudorick
aiolos: ping
5 years, 3 months ago (2015-09-15 23:41:00 UTC) #15
aiolos (Not reviewing)
Sorry about that. I got back from France last night, and today has been Telemetry ...
5 years, 3 months ago (2015-09-16 00:16:27 UTC) #16
jbudorick
On 2015/09/16 at 00:16:27, aiolos wrote: > Sorry about that. I got back from France ...
5 years, 3 months ago (2015-09-16 00:19:04 UTC) #17
aiolos (Not reviewing)
The assert that you're running into in the dependency_manager was there for landing to make ...
5 years, 3 months ago (2015-09-16 03:37:54 UTC) #18
jbudorick
https://codereview.chromium.org/1316413003/diff/60001/build/android/devil/devil_env.py File build/android/devil/devil_env.py (right): https://codereview.chromium.org/1316413003/diff/60001/build/android/devil/devil_env.py#newcode60 build/android/devil/devil_env.py:60: config_files=[next_config_file.name] + (config_files or [])) On 2015/09/16 at 03:37:54, ...
5 years, 3 months ago (2015-09-18 15:08:20 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1316413003/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1316413003/100001
5 years, 3 months ago (2015-09-18 15:08:54 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/101522)
5 years, 3 months ago (2015-09-18 15:19:52 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1316413003/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1316413003/160001
5 years, 3 months ago (2015-09-18 17:33:55 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_android_rel_ng/builds/71025)
5 years, 3 months ago (2015-09-18 19:50:09 UTC) #29
jbudorick
aiolos: ptal https://codereview.chromium.org/1316413003/diff/180001/build/android/test_runner.py File build/android/test_runner.py (right): https://codereview.chromium.org/1316413003/diff/180001/build/android/test_runner.py#newcode132 build/android/test_runner.py:132: devil_dynamic_config = devil_env.GenerateDynamicConfig(devil_dynamic_deps) As written, the dynamic ...
5 years, 2 months ago (2015-09-29 13:28:58 UTC) #30
jbudorick
aiolos: ping (the red linux_android_rel_ng runs are from an unrelated failure in the webview instrumentation ...
5 years, 2 months ago (2015-09-30 12:24:37 UTC) #31
aiolos (Not reviewing)
Still LGTM, regardless of whether you move over to using specific file locations in devil_env ...
5 years, 2 months ago (2015-10-02 22:44:47 UTC) #32
jbudorick
On 2015/10/02 22:44:47, aiolos wrote: > Still LGTM, regardless of whether you move over to ...
5 years, 2 months ago (2015-10-05 15:48:36 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1316413003/220001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1316413003/220001
5 years, 2 months ago (2015-10-05 15:49:32 UTC) #36
aiolos (Not reviewing)
On 2015/10/05 15:48:36, jbudorick wrote: > On 2015/10/02 22:44:47, aiolos wrote: > > Still LGTM, ...
5 years, 2 months ago (2015-10-05 15:58:46 UTC) #37
commit-bot: I haz the power
Committed patchset #12 (id:220001)
5 years, 2 months ago (2015-10-05 18:31:21 UTC) #38
commit-bot: I haz the power
Patchset 12 (id:??) landed as https://crrev.com/975fc02186d195c3baf6f0380fed06433c636670 Cr-Commit-Position: refs/heads/master@{#352359}
5 years, 2 months ago (2015-10-05 18:32:04 UTC) #39
jbudorick
5 years, 2 months ago (2015-10-05 21:41:00 UTC) #40
Message was sent while issue was closed.
A revert of this CL (patchset #12 id:220001) has been created in
https://codereview.chromium.org/1390613002/ by jbudorick@chromium.org.

The reason for reverting is: breaks on non-default output directories..

Powered by Google App Engine
This is Rietveld 408576698