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

Issue 656303003: Telemetry: Move Web Page Replay to the platform. (Closed)

Created:
6 years, 2 months ago by slamm
Modified:
6 years, 1 month ago
CC:
chromium-reviews, telemetry+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Telemetry: Step 1 of moving Web Page Replay to the platform. In this step, we move WPR down to platform without making any changes to the lifecycle nor where the input comes from. API and lifecycle cleanup to follow in a follow up patch. BUG=404771 Committed: https://crrev.com/2b4f9c4f7c8c47f6e19daac2845c47d3d1f3cd4e Cr-Commit-Position: refs/heads/master@{#301578}

Patch Set 1 #

Patch Set 2 : checkpoint #

Patch Set 3 : checkpoint #

Patch Set 4 : Keep existing replay lifecycle. (Will change in later CL.) #

Total comments: 12

Patch Set 5 : Address review comments. #

Patch Set 6 : Set the stage for moving Replay's browser_backend deps to the platform. #

Patch Set 7 : Remove UpdateReplay (unused) from network_controller API. #

Patch Set 8 : Move StopReplay to platform_backend (still tied to closing the browser). #

Patch Set 9 : Update a comment. #

Total comments: 9

Patch Set 10 : Add unittest stub. TODO comment indent. #

Patch Set 11 : Add network_controller_backend_unittest. #

Total comments: 6

Patch Set 12 : Remove NetworkController.StopReplay (not used yet). #

Total comments: 2

Patch Set 13 : UpdateWpr when reusing the browser. #

Patch Set 14 : Fix bug introduced when adding unit test. :-/ #

Patch Set 15 : Allow the browser to be used without replay. #

Patch Set 16 : Update --use-live-sites tests to not use private browser property. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+329 lines, -112 lines) Patch
M tools/telemetry/telemetry/core/backends/chrome/android_browser_finder.py View 1 2 3 1 chunk +3 lines, -7 lines 0 comments Download
M tools/telemetry/telemetry/core/backends/chrome/cros_browser_finder.py View 1 chunk +2 lines, -9 lines 0 comments Download
M tools/telemetry/telemetry/core/backends/chrome/cros_browser_with_oobe.py View 1 2 3 1 chunk +3 lines, -9 lines 0 comments Download
M tools/telemetry/telemetry/core/backends/chrome/desktop_browser_finder.py View 1 2 3 1 chunk +2 lines, -6 lines 0 comments Download
M tools/telemetry/telemetry/core/backends/chrome/ios_browser_finder.py View 1 2 3 1 chunk +2 lines, -6 lines 0 comments Download
M tools/telemetry/telemetry/core/browser.py View 1 3 4 5 6 7 4 chunks +1 line, -37 lines 0 comments Download
M tools/telemetry/telemetry/core/platform/__init__.py View 1 2 3 4 5 2 chunks +8 lines, -0 lines 0 comments Download
A tools/telemetry/telemetry/core/platform/network_controller.py View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +28 lines, -0 lines 0 comments Download
A tools/telemetry/telemetry/core/platform/network_controller_backend.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +107 lines, -0 lines 0 comments Download
A tools/telemetry/telemetry/core/platform/network_controller_backend_unittest.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +129 lines, -0 lines 0 comments Download
M tools/telemetry/telemetry/core/platform/platform_backend.py View 1 2 3 4 5 6 7 8 9 5 chunks +14 lines, -0 lines 0 comments Download
M tools/telemetry/telemetry/core/possible_browser.py View 2 chunks +0 lines, -9 lines 0 comments Download
M tools/telemetry/telemetry/core/webpagereplay.py View 1 2 3 4 2 chunks +1 line, -3 lines 0 comments Download
M tools/telemetry/telemetry/core/wpr_server.py View 1 2 3 2 chunks +6 lines, -7 lines 0 comments Download
M tools/telemetry/telemetry/page/page_runner.py View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +18 lines, -17 lines 0 comments Download
M tools/telemetry/telemetry/page/page_runner_unittest.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +5 lines, -2 lines 0 comments Download

Messages

Total messages: 48 (9 generated)
slamm
checkpoint
6 years, 2 months ago (2014-10-16 17:25:09 UTC) #1
slamm
checkpoint
6 years, 2 months ago (2014-10-16 18:38:59 UTC) #2
slamm
Keep existing replay lifecycle. (Will change in later CL.)
6 years, 2 months ago (2014-10-16 20:56:29 UTC) #3
slamm
I am still going to add docs and NetworkControllerTest. However, the CL now works with ...
6 years, 2 months ago (2014-10-16 20:59:55 UTC) #5
chrishenry
https://codereview.chromium.org/656303003/diff/60001/tools/telemetry/telemetry/core/browser.py File tools/telemetry/telemetry/core/browser.py (right): https://codereview.chromium.org/656303003/diff/60001/tools/telemetry/telemetry/core/browser.py#newcode40 tools/telemetry/telemetry/core/browser.py:40: self._platform_backend.platform.network_controller.StartReplay( Can you add a TODO for what we ...
6 years, 2 months ago (2014-10-16 22:06:52 UTC) #6
slamm
Address review comments.
6 years, 2 months ago (2014-10-17 18:08:21 UTC) #7
slamm
https://codereview.chromium.org/656303003/diff/60001/tools/telemetry/telemetry/core/browser.py File tools/telemetry/telemetry/core/browser.py (right): https://codereview.chromium.org/656303003/diff/60001/tools/telemetry/telemetry/core/browser.py#newcode40 tools/telemetry/telemetry/core/browser.py:40: self._platform_backend.platform.network_controller.StartReplay( On 2014/10/16 22:06:52, chrishenry wrote: > Can you ...
6 years, 2 months ago (2014-10-17 18:08:48 UTC) #8
slamm
Set the stage for moving Replay's browser_backend deps to the platform.
6 years, 2 months ago (2014-10-17 22:39:50 UTC) #9
slamm
Remove UpdateReplay (unused) from network_controller API.
6 years, 2 months ago (2014-10-17 22:44:02 UTC) #10
slamm
Move StopReplay to platform_backend (still tied to closing the browser.
6 years, 2 months ago (2014-10-17 23:01:30 UTC) #11
slamm
Update a comment.
6 years, 2 months ago (2014-10-17 23:13:18 UTC) #12
chrishenry
https://codereview.chromium.org/656303003/diff/160001/tools/telemetry/telemetry/core/platform/network_controller_backend.py File tools/telemetry/telemetry/core/platform/network_controller_backend.py (right): https://codereview.chromium.org/656303003/diff/160001/tools/telemetry/telemetry/core/platform/network_controller_backend.py#newcode1 tools/telemetry/telemetry/core/platform/network_controller_backend.py:1: # Copyright 2014 The Chromium Authors. All rights reserved. ...
6 years, 2 months ago (2014-10-17 23:26:51 UTC) #13
slamm
Add unittest stub. TODO comment indent.
6 years, 2 months ago (2014-10-17 23:50:54 UTC) #14
slamm
https://codereview.chromium.org/656303003/diff/160001/tools/telemetry/telemetry/core/platform/network_controller_backend.py File tools/telemetry/telemetry/core/platform/network_controller_backend.py (right): https://codereview.chromium.org/656303003/diff/160001/tools/telemetry/telemetry/core/platform/network_controller_backend.py#newcode1 tools/telemetry/telemetry/core/platform/network_controller_backend.py:1: # Copyright 2014 The Chromium Authors. All rights reserved. ...
6 years, 2 months ago (2014-10-17 23:51:10 UTC) #15
chrishenry
Looks fine to me, please ping after you have test, and I'll take a (hopefully) ...
6 years, 2 months ago (2014-10-18 00:00:34 UTC) #16
slamm
Add network_controller_backend_unittest.
6 years, 2 months ago (2014-10-20 22:22:28 UTC) #17
slamm
Added unit tests (and fixed a bug). PTAL.
6 years, 2 months ago (2014-10-20 22:24:33 UTC) #19
chrishenry
https://codereview.chromium.org/656303003/diff/200001/tools/telemetry/telemetry/core/platform/network_controller.py File tools/telemetry/telemetry/core/platform/network_controller.py (right): https://codereview.chromium.org/656303003/diff/200001/tools/telemetry/telemetry/core/platform/network_controller.py#newcode1 tools/telemetry/telemetry/core/platform/network_controller.py:1: # Copyright 2014 The Chromium Authors. All rights reserved. ...
6 years, 2 months ago (2014-10-20 22:49:36 UTC) #20
slamm
https://codereview.chromium.org/656303003/diff/200001/tools/telemetry/telemetry/core/platform/network_controller.py File tools/telemetry/telemetry/core/platform/network_controller.py (right): https://codereview.chromium.org/656303003/diff/200001/tools/telemetry/telemetry/core/platform/network_controller.py#newcode1 tools/telemetry/telemetry/core/platform/network_controller.py:1: # Copyright 2014 The Chromium Authors. All rights reserved. ...
6 years, 2 months ago (2014-10-20 23:18:14 UTC) #21
chrishenry
lgtm https://codereview.chromium.org/656303003/diff/200001/tools/telemetry/telemetry/core/platform/network_controller.py File tools/telemetry/telemetry/core/platform/network_controller.py (right): https://codereview.chromium.org/656303003/diff/200001/tools/telemetry/telemetry/core/platform/network_controller.py#newcode22 tools/telemetry/telemetry/core/platform/network_controller.py:22: def StopReplay(self): Can we at least move this ...
6 years, 2 months ago (2014-10-20 23:50:22 UTC) #22
slamm
https://codereview.chromium.org/656303003/diff/200001/tools/telemetry/telemetry/core/platform/network_controller.py File tools/telemetry/telemetry/core/platform/network_controller.py (right): https://codereview.chromium.org/656303003/diff/200001/tools/telemetry/telemetry/core/platform/network_controller.py#newcode22 tools/telemetry/telemetry/core/platform/network_controller.py:22: def StopReplay(self): On 2014/10/20 23:50:22, chrishenry wrote: > Can ...
6 years, 2 months ago (2014-10-21 02:13:32 UTC) #23
nednguyen
https://codereview.chromium.org/656303003/diff/200001/tools/telemetry/telemetry/core/platform/network_controller.py File tools/telemetry/telemetry/core/platform/network_controller.py (right): https://codereview.chromium.org/656303003/diff/200001/tools/telemetry/telemetry/core/platform/network_controller.py#newcode22 tools/telemetry/telemetry/core/platform/network_controller.py:22: def StopReplay(self): On 2014/10/21 02:13:32, slamm wrote: > On ...
6 years, 2 months ago (2014-10-21 02:19:52 UTC) #24
slamm
https://codereview.chromium.org/656303003/diff/200001/tools/telemetry/telemetry/core/platform/network_controller.py File tools/telemetry/telemetry/core/platform/network_controller.py (right): https://codereview.chromium.org/656303003/diff/200001/tools/telemetry/telemetry/core/platform/network_controller.py#newcode22 tools/telemetry/telemetry/core/platform/network_controller.py:22: def StopReplay(self): On 2014/10/21 02:19:52, nednguyen wrote: > On ...
6 years, 2 months ago (2014-10-23 23:08:28 UTC) #25
nednguyen
LGTM https://codereview.chromium.org/656303003/diff/220001/tools/telemetry/telemetry/page/page_runner.py File tools/telemetry/telemetry/page/page_runner.py (left): https://codereview.chromium.org/656303003/diff/220001/tools/telemetry/telemetry/page/page_runner.py#oldcode92 tools/telemetry/telemetry/page/page_runner.py:92: if page.archive_path and self._last_archive_path != page.archive_path: Where does ...
6 years, 2 months ago (2014-10-24 15:03:33 UTC) #26
slamm
https://codereview.chromium.org/656303003/diff/220001/tools/telemetry/telemetry/page/page_runner.py File tools/telemetry/telemetry/page/page_runner.py (left): https://codereview.chromium.org/656303003/diff/220001/tools/telemetry/telemetry/page/page_runner.py#oldcode92 tools/telemetry/telemetry/page/page_runner.py:92: if page.archive_path and self._last_archive_path != page.archive_path: On 2014/10/24 15:03:33, ...
6 years, 1 month ago (2014-10-27 16:39:59 UTC) #27
slamm
I have added a method to update replay when the browser is already existing. This ...
6 years, 1 month ago (2014-10-27 20:10:45 UTC) #28
slamm
Fix bug with NetworkControllerBackend._ReplayServer
6 years, 1 month ago (2014-10-27 20:47:38 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/656303003/260001
6 years, 1 month ago (2014-10-27 20:52:42 UTC) #31
slamm
Allow the browser to be used without replay.
6 years, 1 month ago (2014-10-27 22:22:57 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/656303003/280001
6 years, 1 month ago (2014-10-27 22:27:47 UTC) #34
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel/builds/3724)
6 years, 1 month ago (2014-10-27 23:41:27 UTC) #36
chromium-reviews
I am working on fixing the broken unit test. The page_runner unit test is accessing ...
6 years, 1 month ago (2014-10-27 23:56:51 UTC) #37
slamm
Update --use-live-sites tests to not use private browser property.
6 years, 1 month ago (2014-10-28 00:33:19 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/656303003/300001
6 years, 1 month ago (2014-10-28 00:36:41 UTC) #40
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/656303003/300001
6 years, 1 month ago (2014-10-28 04:25:58 UTC) #43
commit-bot: I haz the power
Committed patchset #16 (id:300001)
6 years, 1 month ago (2014-10-28 06:50:10 UTC) #44
commit-bot: I haz the power
Patchset 16 (id:??) landed as https://crrev.com/2b4f9c4f7c8c47f6e19daac2845c47d3d1f3cd4e Cr-Commit-Position: refs/heads/master@{#301578}
6 years, 1 month ago (2014-10-28 06:50:58 UTC) #45
Sébastien Marchand
I got the following stack trace if I try this CL locally: Traceback (most recent ...
6 years, 1 month ago (2014-11-05 17:31:03 UTC) #47
Sébastien Marchand
6 years, 1 month ago (2014-11-05 17:33:06 UTC) #48
Message was sent while issue was closed.
Sorry, replied on the wrong CL...

Powered by Google App Engine
This is Rietveld 408576698