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

Issue 572123002: Installs test CA to android devices as part of browser startup so that apps can be tested with prox… (Closed)

Created:
6 years, 3 months ago by wuhu
Modified:
5 years, 10 months ago
CC:
chromium-reviews, telemetry+watch_chromium.org, navabi, hjd
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Installs test CA to android devices as part of browser startup so that apps can be tested with proxy HTTPS server without code changes. BUG=412826 Committed: https://crrev.com/f28d9cace2df4a9dcaa992c4df5b85e3b2674dbb Cr-Commit-Position: refs/heads/master@{#296619} Committed: https://crrev.com/10eb77a2c2843664e7d55d8a4535d66b7f95d9c8 Cr-Commit-Position: refs/heads/master@{#297653}

Patch Set 1 #

Total comments: 8

Patch Set 2 : code cleanup per Ned's recommendtions #

Total comments: 2

Patch Set 3 : calling functions directly to install/remove cert #

Total comments: 4

Patch Set 4 : generates CA cert per run #

Total comments: 8

Patch Set 5 : update #

Patch Set 6 : resolve merge conflict #

Patch Set 7 : use tempdir #

Total comments: 3

Patch Set 8 : update #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+32 lines, -3 lines) Patch
M tools/telemetry/telemetry/core/backends/chrome/android_browser_backend.py View 1 2 3 4 5 6 7 7 chunks +31 lines, -0 lines 1 comment Download
M tools/telemetry/telemetry/core/webpagereplay.py View 1 2 3 1 chunk +1 line, -3 lines 0 comments Download

Messages

Total messages: 37 (9 generated)
wuhu
Please review when you have time. Thanks.
6 years, 3 months ago (2014-09-16 01:26:27 UTC) #2
nednguyen
https://codereview.chromium.org/572123002/diff/1/tools/telemetry/telemetry/core/backends/chrome/android_browser_backend.py File tools/telemetry/telemetry/core/backends/chrome/android_browser_backend.py (right): https://codereview.chromium.org/572123002/diff/1/tools/telemetry/telemetry/core/backends/chrome/android_browser_backend.py#newcode28 tools/telemetry/telemetry/core/backends/chrome/android_browser_backend.py:28: os.pardir, os.pardir, os.pardir)) Use telemetry.core.util.GetChromiumSrcDir() instead. https://codereview.chromium.org/572123002/diff/1/tools/telemetry/telemetry/core/backends/chrome/android_browser_backend.py#newcode35 tools/telemetry/telemetry/core/backends/chrome/android_browser_backend.py:35: signal.signal(signal.SIGINT, ...
6 years, 3 months ago (2014-09-16 16:21:45 UTC) #3
wuhu
See comments below. Thanks https://codereview.chromium.org/572123002/diff/1/tools/telemetry/telemetry/core/backends/chrome/android_browser_backend.py File tools/telemetry/telemetry/core/backends/chrome/android_browser_backend.py (right): https://codereview.chromium.org/572123002/diff/1/tools/telemetry/telemetry/core/backends/chrome/android_browser_backend.py#newcode35 tools/telemetry/telemetry/core/backends/chrome/android_browser_backend.py:35: signal.signal(signal.SIGINT, signal.SIG_DFL) On 2014/09/16 16:21:45, ...
6 years, 3 months ago (2014-09-16 17:42:58 UTC) #4
slamm
https://codereview.chromium.org/572123002/diff/1/tools/telemetry/telemetry/core/backends/chrome/android_browser_backend.py File tools/telemetry/telemetry/core/backends/chrome/android_browser_backend.py (right): https://codereview.chromium.org/572123002/diff/1/tools/telemetry/telemetry/core/backends/chrome/android_browser_backend.py#newcode35 tools/telemetry/telemetry/core/backends/chrome/android_browser_backend.py:35: signal.signal(signal.SIGINT, signal.SIG_DFL) On 2014/09/16 17:42:58, wuhu wrote: > On ...
6 years, 3 months ago (2014-09-16 18:02:18 UTC) #6
wuhu
Thanks Steve, that makes things a lot simpler. I'll modify adb_install_cert to throw appropriate exceptions ...
6 years, 3 months ago (2014-09-16 19:58:33 UTC) #7
slamm
https://codereview.chromium.org/572123002/diff/40001/tools/telemetry/telemetry/core/backends/chrome/android_browser_backend.py File tools/telemetry/telemetry/core/backends/chrome/android_browser_backend.py (right): https://codereview.chromium.org/572123002/diff/40001/tools/telemetry/telemetry/core/backends/chrome/android_browser_backend.py#newcode246 tools/telemetry/telemetry/core/backends/chrome/android_browser_backend.py:246: def _InstallTestCA(self): _InstallTestCA -> _InstallTestCa Treat "CA" like a ...
6 years, 3 months ago (2014-09-17 00:54:02 UTC) #8
wuhu
Thanks for the feedback, changes have been made.
6 years, 3 months ago (2014-09-17 20:03:15 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/572123002/60001
6 years, 3 months ago (2014-09-18 00:55:19 UTC) #11
commit-bot: I haz the power
No LGTM from a valid reviewer yet. Only full committers are accepted. Even if an ...
6 years, 3 months ago (2014-09-18 00:55:25 UTC) #13
nednguyen
https://codereview.chromium.org/572123002/diff/20001/tools/telemetry/telemetry/core/backends/chrome/android_browser_backend.py File tools/telemetry/telemetry/core/backends/chrome/android_browser_backend.py (right): https://codereview.chromium.org/572123002/diff/20001/tools/telemetry/telemetry/core/backends/chrome/android_browser_backend.py#newcode28 tools/telemetry/telemetry/core/backends/chrome/android_browser_backend.py:28: REPLAY_DIR = os.path.join( Please make this constant and the ...
6 years, 3 months ago (2014-09-18 01:18:28 UTC) #14
wuhu
Ned, I think you commented on patch 2 instead of 4 :)
6 years, 3 months ago (2014-09-18 01:27:07 UTC) #15
nednguyen
https://codereview.chromium.org/572123002/diff/60001/tools/telemetry/telemetry/core/backends/chrome/android_browser_backend.py File tools/telemetry/telemetry/core/backends/chrome/android_browser_backend.py (right): https://codereview.chromium.org/572123002/diff/60001/tools/telemetry/telemetry/core/backends/chrome/android_browser_backend.py#newcode27 tools/telemetry/telemetry/core/backends/chrome/android_browser_backend.py:27: import adb_install_cert #pylint: disable=F0401 nits: lack a space between ...
6 years, 3 months ago (2014-09-22 19:38:56 UTC) #16
wuhu
Please see comments below. Will update with a new patch to address the issues raised. ...
6 years, 3 months ago (2014-09-22 20:43:54 UTC) #17
nednguyen
https://codereview.chromium.org/572123002/diff/60001/tools/telemetry/telemetry/core/backends/chrome/android_browser_backend.py File tools/telemetry/telemetry/core/backends/chrome/android_browser_backend.py (right): https://codereview.chromium.org/572123002/diff/60001/tools/telemetry/telemetry/core/backends/chrome/android_browser_backend.py#newcode206 tools/telemetry/telemetry/core/backends/chrome/android_browser_backend.py:206: 'webpagereplay_logs', 'testca.pem') On 2014/09/22 20:43:53, wuhu wrote: > On ...
6 years, 3 months ago (2014-09-22 21:16:58 UTC) #18
slamm
https://codereview.chromium.org/572123002/diff/60001/tools/telemetry/telemetry/core/backends/chrome/android_browser_backend.py File tools/telemetry/telemetry/core/backends/chrome/android_browser_backend.py (right): https://codereview.chromium.org/572123002/diff/60001/tools/telemetry/telemetry/core/backends/chrome/android_browser_backend.py#newcode206 tools/telemetry/telemetry/core/backends/chrome/android_browser_backend.py:206: 'webpagereplay_logs', 'testca.pem') On 2014/09/22 21:16:58, nednguyen wrote: > On ...
6 years, 3 months ago (2014-09-22 21:29:02 UTC) #19
nednguyen
LGTM Please wait for Slamm's approval.
6 years, 3 months ago (2014-09-24 23:53:55 UTC) #20
slamm
LGTM... after some minor changes. https://codereview.chromium.org/572123002/diff/120001/tools/telemetry/telemetry/core/backends/chrome/android_browser_backend.py File tools/telemetry/telemetry/core/backends/chrome/android_browser_backend.py (right): https://codereview.chromium.org/572123002/diff/120001/tools/telemetry/telemetry/core/backends/chrome/android_browser_backend.py#newcode201 tools/telemetry/telemetry/core/backends/chrome/android_browser_backend.py:201: self._ca_cert_path = os.path.join(tempfile.mkdtemp(), Keep ...
6 years, 3 months ago (2014-09-25 00:03:00 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/572123002/140001
6 years, 3 months ago (2014-09-25 00:20:25 UTC) #23
commit-bot: I haz the power
Committed patchset #8 (id:140001) as d004b781792cf292fad5960a601f5be6e45623cb
6 years, 3 months ago (2014-09-25 01:49:50 UTC) #24
commit-bot: I haz the power
Patchset 8 (id:??) landed as https://crrev.com/f28d9cace2df4a9dcaa992c4df5b85e3b2674dbb Cr-Commit-Position: refs/heads/master@{#296619}
6 years, 3 months ago (2014-09-25 01:50:45 UTC) #25
dtu
http://chromegw/i/chromium.perf/builders/Android%20Nexus7v2%20Perf/builds/1720 Traceback (most recent call last): <module> at tools/perf/run_benchmark:25 sys.exit(test_runner.main()) main at tools/telemetry/telemetry/test_runner.py:382 return command().Run(options) ...
6 years, 3 months ago (2014-09-25 03:09:38 UTC) #26
nednguyen
A revert of this CL (patchset #8 id:140001) has been created in https://codereview.chromium.org/606533002/ by nednguyen@google.com. ...
6 years, 3 months ago (2014-09-25 03:48:43 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/572123002/140001
6 years, 2 months ago (2014-10-01 16:30:15 UTC) #29
commit-bot: I haz the power
Committed patchset #8 (id:140001) as 2a330387534b178b0f7e259023b75344eeb5ca1a
6 years, 2 months ago (2014-10-01 16:31:34 UTC) #30
commit-bot: I haz the power
Patchset 8 (id:??) landed as https://crrev.com/10eb77a2c2843664e7d55d8a4535d66b7f95d9c8 Cr-Commit-Position: refs/heads/master@{#297653}
6 years, 2 months ago (2014-10-01 16:32:14 UTC) #31
hjd
+cc: Armand This CL seems to have broken the bot here: http://build.chromium.org/p/chromium.perf.fyi/builders/android_webview_aosp_perf This is the ...
6 years, 2 months ago (2014-10-01 18:05:01 UTC) #33
nednguyen
On 2014/10/01 18:05:01, hjd wrote: > +cc: Armand > > This CL seems to have ...
6 years, 2 months ago (2014-10-01 18:13:03 UTC) #34
tonyg
6 years, 2 months ago (2014-10-01 19:51:41 UTC) #36
Message was sent while issue was closed.
A revert of this CL (patchset #8 id:140001) has been created in
https://codereview.chromium.org/617263004/ by tonyg@chromium.org.

The reason for reverting is: Userdebug build perf bots are still missing
dependencies:
ImportError: No module named OpenSSL

Also, we'll need to gracefully degrade on user builds:
CertInstallError: Cert Install Failed.

Powered by Google App Engine
This is Rietveld 408576698