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

Issue 2709523005: [Telemetry] Switch RunShellCommand clients to check_return=True (Closed)

Created:
3 years, 10 months ago by perezju
Modified:
3 years, 9 months ago
Reviewers:
nednguyen, jbudorick
CC:
catapult-reviews_chromium.org, telemetry-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
catapult
Visibility:
Public.

Description

[Telemetry] Switch RunShellCommand clients to check_return=True In all files where check_return was missing within /telemetry: - enable check_return=True, - pass the command as a list (rather than a string) where appropriate, - replace calls to RunShellCommand with higher level commands (e.g. RemovePath) where appropriate. BUG=chromium:628617 Review-Url: https://codereview.chromium.org/2709523005 Committed: https://chromium.googlesource.com/external/github.com/catapult-project/catapult/+/a75c463e8416e25de8c1d70ec210a1de89ea19a5

Patch Set 1 #

Total comments: 2

Patch Set 2 : fix errors #

Total comments: 13

Patch Set 3 : rebase #

Patch Set 4 : john's comments #

Patch Set 5 : revert change in chown command #

Unified diffs Side-by-side diffs Delta from patch set Stats (+103 lines, -65 lines) Patch
M telemetry/telemetry/core/android_action_runner.py View 1 2 3 6 chunks +20 lines, -13 lines 0 comments Download
M telemetry/telemetry/internal/backends/chrome/android_browser_backend.py View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M telemetry/telemetry/internal/platform/android_platform_backend.py View 1 2 3 4 11 chunks +39 lines, -24 lines 0 comments Download
M telemetry/telemetry/internal/platform/profiler/android_prebuilt_profiler_helper.py View 1 chunk +2 lines, -1 line 0 comments Download
M telemetry/telemetry/internal/platform/profiler/android_traceview_profiler.py View 1 2 2 chunks +13 lines, -8 lines 0 comments Download
M telemetry/telemetry/internal/platform/profiler/java_heap_profiler.py View 1 2 2 chunks +7 lines, -5 lines 0 comments Download
M telemetry/telemetry/internal/platform/profiler/netlog_profiler.py View 1 2 1 chunk +1 line, -1 line 0 comments Download
M telemetry/telemetry/internal/platform/profiler/perf_profiler.py View 1 2 1 chunk +3 lines, -3 lines 0 comments Download
M telemetry/telemetry/internal/platform/profiler/tcmalloc_heap_profiler.py View 1 2 1 chunk +11 lines, -5 lines 0 comments Download
M telemetry/telemetry/internal/platform/profiler/tcpdump_profiler.py View 1 2 2 chunks +5 lines, -3 lines 0 comments Download
M telemetry/telemetry/internal/platform/profiler/v8_profiler.py View 1 2 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 36 (23 generated)
perezju
3 years, 10 months ago (2017-02-21 12:11:54 UTC) #4
nednguyen
lgtm
3 years, 10 months ago (2017-02-21 13:41:01 UTC) #7
perezju
check_return already proving useful to catch bugs in the existing code base. PTAL https://codereview.chromium.org/2709523005/diff/20001/telemetry/telemetry/internal/platform/android_platform_backend.py File ...
3 years, 10 months ago (2017-02-21 15:56:44 UTC) #12
nednguyen
Fail sooner & harder FTW! Stil lgtm https://codereview.chromium.org/2709523005/diff/20001/telemetry/telemetry/internal/platform/android_platform_backend.py File telemetry/telemetry/internal/platform/android_platform_backend.py (right): https://codereview.chromium.org/2709523005/diff/20001/telemetry/telemetry/internal/platform/android_platform_backend.py#newcode674 telemetry/telemetry/internal/platform/android_platform_backend.py:674: logging.warning('- %s', ...
3 years, 10 months ago (2017-02-21 16:00:14 UTC) #13
jbudorick
There appear to be quite a few device path manipulations using os.path rather than posixpath. ...
3 years, 10 months ago (2017-02-21 16:11:18 UTC) #18
perezju
https://codereview.chromium.org/2709523005/diff/20001/telemetry/telemetry/internal/platform/android_platform_backend.py File telemetry/telemetry/internal/platform/android_platform_backend.py (right): https://codereview.chromium.org/2709523005/diff/20001/telemetry/telemetry/internal/platform/android_platform_backend.py#newcode674 telemetry/telemetry/internal/platform/android_platform_backend.py:674: logging.warning('- %s', filepath) On 2017/02/21 16:00:14, nednguyen wrote: > ...
3 years, 10 months ago (2017-02-21 16:12:33 UTC) #19
perezju
From the latest try job: command: chown -R 10074.10074 /data/data/com.google.android.apps.chrome/app_chrome exit status: 10 output: - ...
3 years, 10 months ago (2017-02-21 16:33:08 UTC) #20
jbudorick
Re chown: I'd probably use -R on versions that support it & fall back to ...
3 years, 10 months ago (2017-02-21 16:38:07 UTC) #21
perezju
https://codereview.chromium.org/2709523005/diff/20001/telemetry/telemetry/internal/platform/android_platform_backend.py File telemetry/telemetry/internal/platform/android_platform_backend.py (right): https://codereview.chromium.org/2709523005/diff/20001/telemetry/telemetry/internal/platform/android_platform_backend.py#newcode674 telemetry/telemetry/internal/platform/android_platform_backend.py:674: logging.warning('- %s', filepath) On 2017/02/21 16:38:07, jbudorick wrote: > ...
3 years, 10 months ago (2017-02-21 16:50:03 UTC) #24
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/2709523005/80001
3 years, 10 months ago (2017-02-21 17:37:46 UTC) #29
commit-bot: I haz the power
Try jobs failed on following builders: Catapult Windows Tryserver on master.tryserver.client.catapult (JOB_FAILED, https://build.chromium.org/p/tryserver.client.catapult/builders/Catapult%20Windows%20Tryserver/builds/6444)
3 years, 10 months ago (2017-02-21 17:42:13 UTC) #31
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/2709523005/80001
3 years, 9 months ago (2017-02-27 09:10:02 UTC) #33
commit-bot: I haz the power
3 years, 9 months ago (2017-02-27 09:47:12 UTC) #36
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/external/github.com/catapult-project/catapu...

Powered by Google App Engine
This is Rietveld 408576698