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

Issue 10803002: Run Chrome Endure tests with network simulation via Web Page Replay. (Closed)

Created:
8 years, 5 months ago by fdeng1
Modified:
8 years, 3 months ago
CC:
chromium-reviews, dennis_jeffrey, anantha, dyu1, web-page-replay-dev_googlegroups.com, slamm_google, jochen (gone - plz use gerrit)
Visibility:
Public.

Description

Run Chrome Endure tests with network simulation via Web Page Replay. Previously Chrome Endure tests always connect to a live website which may change over time. This CL is to simulate the network via Web Page Replay. The idea is to use WPR to record webapp interactions of a test and replay them in the future runs of the test. Environment variables: WPR_RECORD: set this environment variable if you wan to record webapp interactions of tests via Web Page Replay. ENDURE_NO_WPR: set this value if you DO NOT want to run the endure tests against the Web Page Replay server. Examples: 1. ENDURE_NO_WPR=any_value python perf_endure.py perf_endure.ChromeEndureGmailTest Tests will connect to live site. 2. WPR_RECORD=any_value python perf_endure.py perf_endure.ChromeEndureGmailTest Web Page Replay will start in record mode and a Web Page Replay archive will be created. 3. python perf_endure.py perf_endure.ChromeEndureGmailTest By default, tests will run against Web Page Replay server. BUG=None TEST=ran all tests in perf_endure.py in three modes: record, replay, no web page replay NOTRY=true Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=155473

Patch Set 1 #

Patch Set 2 : #

Total comments: 8

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : Env var to control usage of WPR #

Total comments: 43

Patch Set 8 : Address Dennis' Comments #

Total comments: 19

Patch Set 9 : Address Dennis and Steve's comments #

Patch Set 10 : set self._num_of_iteration=1 when recording #

Patch Set 11 : Adjustments after patching Steve's CL #

Total comments: 8

Patch Set 12 : Address Nirnimesh's comments. #

Patch Set 13 : Fix so that offline tests will work/Address Nirnimesh's comments #

Total comments: 3

Patch Set 14 : Tests by default do not have WPR support. #

Total comments: 25

Patch Set 15 : Address Dennis' comments #

Total comments: 17

Patch Set 16 : Address Nirnimesh, Dennis, Steve's comments #

Total comments: 14

Patch Set 17 : Address more comments #

Patch Set 18 : Merge with master #

Unified diffs Side-by-side diffs Delta from patch set Stats (+184 lines, -1 line) Patch
A chrome/test/data/chrome_endure/webpagereplay/wpr_deterministic.js View 1 2 3 4 5 6 7 8 9 10 1 chunk +64 lines, -0 lines 0 comments Download
M chrome/test/functional/perf_endure.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 11 chunks +120 lines, -1 line 0 comments Download

Messages

Total messages: 33 (0 generated)
fdeng1
Hi Dennis and Nirnimesh, This is the CL I created to run chrome endure tests ...
8 years, 5 months ago (2012-07-18 04:19:43 UTC) #1
Nirnimesh
https://chromiumcodereview.appspot.com/10803002/diff/1003/chrome/test/data/chrome_endure/deterministic.js File chrome/test/data/chrome_endure/deterministic.js (right): https://chromiumcodereview.appspot.com/10803002/diff/1003/chrome/test/data/chrome_endure/deterministic.js#newcode1 chrome/test/data/chrome_endure/deterministic.js:1: (function () { license header? Add comments about this ...
8 years, 5 months ago (2012-07-18 19:41:18 UTC) #2
fdeng
Thank you for the comments Nirnimesh. I'll address them. Fang On Wed, Jul 18, 2012 ...
8 years, 5 months ago (2012-07-18 23:05:42 UTC) #3
fdeng1
Hi Dennis and Nirnimesh, I restructured the perf.WebPageReplay. Now we have perf.BaseWebPageReplay and its subclasses ...
8 years, 5 months ago (2012-07-24 00:05:49 UTC) #4
dennis_jeffrey
Yay! I'm really excited to have the Chrome Endure tests start using WebPageReplay! https://chromiumcodereview.appspot.com/10803002/diff/2007/chrome/test/data/chrome_endure/deterministic.js File ...
8 years, 5 months ago (2012-07-24 00:39:34 UTC) #5
fdeng1
Hi Dennis, Thanks for the comments. I've addressed them. I observed some interesting differences between ...
8 years, 5 months ago (2012-07-24 04:30:05 UTC) #6
dennis_jeffrey
Just 2 more minor comments. https://chromiumcodereview.appspot.com/10803002/diff/16001/chrome/test/functional/perf.py File chrome/test/functional/perf.py (right): https://chromiumcodereview.appspot.com/10803002/diff/16001/chrome/test/functional/perf.py#newcode1770 chrome/test/functional/perf.py:1770: # Initialize Web Page ...
8 years, 5 months ago (2012-07-24 21:03:19 UTC) #7
slamm_google
I am thinking this can all be reorganized into something simpler. I will share another ...
8 years, 5 months ago (2012-07-25 17:20:48 UTC) #8
fdeng1
Hi Steve, Thanks for your reply. Do you have any recommendation on how to make ...
8 years, 5 months ago (2012-07-25 22:53:28 UTC) #9
slamm_google
I will post a CL shortly. I hit some unexpected merge conflicts. -slamm On Wed, ...
8 years, 5 months ago (2012-07-25 23:25:51 UTC) #10
fdeng1
Hi Dennis, Nirnimesh, I made some adjustment after patching Steve's CL. Please take a look. ...
8 years, 4 months ago (2012-08-01 00:54:19 UTC) #11
Nirnimesh
https://chromiumcodereview.appspot.com/10803002/diff/20004/chrome/test/functional/perf_endure.py File chrome/test/functional/perf_endure.py (right): https://chromiumcodereview.appspot.com/10803002/diff/20004/chrome/test/functional/perf_endure.py#newcode566 chrome/test/functional/perf_endure.py:566: logging.info('The Web Page Replay server started.') Too much logging. ...
8 years, 4 months ago (2012-08-01 01:02:59 UTC) #12
fdeng1
https://chromiumcodereview.appspot.com/10803002/diff/20004/chrome/test/functional/perf_endure.py File chrome/test/functional/perf_endure.py (right): https://chromiumcodereview.appspot.com/10803002/diff/20004/chrome/test/functional/perf_endure.py#newcode566 chrome/test/functional/perf_endure.py:566: logging.info('The Web Page Replay server started.') On 2012/08/01 01:03:00, ...
8 years, 4 months ago (2012-08-01 17:14:57 UTC) #13
dennis_jeffrey
https://chromiumcodereview.appspot.com/10803002/diff/20004/chrome/test/functional/perf_endure.py File chrome/test/functional/perf_endure.py (right): https://chromiumcodereview.appspot.com/10803002/diff/20004/chrome/test/functional/perf_endure.py#newcode640 chrome/test/functional/perf_endure.py:640: self._StartReplayServerIfNecessary(archive_name) On 2012/08/01 17:14:57, fdeng1 wrote: > When starting ...
8 years, 4 months ago (2012-08-01 18:35:54 UTC) #14
fdeng1
https://chromiumcodereview.appspot.com/10803002/diff/20004/chrome/test/functional/perf_endure.py File chrome/test/functional/perf_endure.py (right): https://chromiumcodereview.appspot.com/10803002/diff/20004/chrome/test/functional/perf_endure.py#newcode640 chrome/test/functional/perf_endure.py:640: self._StartReplayServerIfNecessary(archive_name) I just talked to Dennis and we came ...
8 years, 4 months ago (2012-08-01 18:37:31 UTC) #15
fdeng1
Hi Dennis and Nirnimesh, I've addressed Nirnimesh's comments on moving some wpr related code into ...
8 years, 4 months ago (2012-08-02 22:57:30 UTC) #16
fdeng1
https://chromiumcodereview.appspot.com/10803002/diff/23007/chrome/test/functional/perf_endure.py File chrome/test/functional/perf_endure.py (right): https://chromiumcodereview.appspot.com/10803002/diff/23007/chrome/test/functional/perf_endure.py#newcode164 chrome/test/functional/perf_endure.py:164: return False Change this function so that by default, ...
8 years, 4 months ago (2012-08-03 16:47:05 UTC) #17
dennis_jeffrey
https://chromiumcodereview.appspot.com/10803002/diff/23007/chrome/test/functional/perf_endure.py File chrome/test/functional/perf_endure.py (right): https://chromiumcodereview.appspot.com/10803002/diff/23007/chrome/test/functional/perf_endure.py#newcode69 chrome/test/functional/perf_endure.py:69: self._use_wpr = self._NeedReplayServer() As discussed offline, let's follow this ...
8 years, 4 months ago (2012-08-03 19:39:54 UTC) #18
fdeng1
Hi Dennis, I addressed your comments. Please take a look. Thanks, Fang https://chromiumcodereview.appspot.com/10803002/diff/23007/chrome/test/functional/perf_endure.py File chrome/test/functional/perf_endure.py ...
8 years, 4 months ago (2012-08-06 20:58:24 UTC) #19
slamm_google
I had to re-add some comments because one of the recent patches was deleted. :-/ ...
8 years, 4 months ago (2012-08-06 20:58:44 UTC) #20
dennis_jeffrey
https://chromiumcodereview.appspot.com/10803002/diff/27005/chrome/test/functional/perf_endure.py File chrome/test/functional/perf_endure.py (right): https://chromiumcodereview.appspot.com/10803002/diff/27005/chrome/test/functional/perf_endure.py#newcode71 chrome/test/functional/perf_endure.py:71: logging.info('Web Page Replay is turned off as ENDURE_NO_WPR is ...
8 years, 4 months ago (2012-08-06 21:33:46 UTC) #21
fdeng
Steve, I am sorry for that, I was cleaning some patches. I didn't notice there ...
8 years, 4 months ago (2012-08-06 21:34:21 UTC) #22
Nirnimesh
http://chromiumcodereview.appspot.com/10803002/diff/27005/chrome/test/functional/perf_endure.py File chrome/test/functional/perf_endure.py (right): http://chromiumcodereview.appspot.com/10803002/diff/27005/chrome/test/functional/perf_endure.py#newcode67 chrome/test/functional/perf_endure.py:67: # Parse the environment variable for the usage of ...
8 years, 4 months ago (2012-08-06 21:36:45 UTC) #23
slamm_google
On Mon, Aug 6, 2012 at 2:33 PM, <dennisjeffrey@chromium.org> wrote: > > https://chromiumcodereview.**appspot.com/10803002/diff/** > 27005/chrome/test/functional/**perf_endure.py<https://chromiumcodereview.appspot.com/10803002/diff/27005/chrome/test/functional/perf_endure.py> ...
8 years, 4 months ago (2012-08-06 21:56:55 UTC) #24
fdeng
Hi, Steve, I take a look at replay.py, and I am thinking to modify the ...
8 years, 4 months ago (2012-08-06 22:25:41 UTC) #25
slamm_google
I built on this and published a CL for review: http://chromiumcodereview.appspot.com/10829202/ -slamm On Mon, Aug ...
8 years, 4 months ago (2012-08-06 22:52:02 UTC) #26
fdeng1
Hi, I've addressed the comments. I get rid of record_endure.py. Now recording mode is controlled ...
8 years, 4 months ago (2012-08-07 02:56:56 UTC) #27
Nirnimesh
LGTM. Thanks for all the iterations. https://chromiumcodereview.appspot.com/10803002/diff/22010/chrome/test/functional/perf_endure.py File chrome/test/functional/perf_endure.py (right): https://chromiumcodereview.appspot.com/10803002/diff/22010/chrome/test/functional/perf_endure.py#newcode21 chrome/test/functional/perf_endure.py:21: it will append ...
8 years, 4 months ago (2012-08-07 17:17:34 UTC) #28
dennis_jeffrey
LGTM with a nit. Please hold off on submitting until all of the following are ...
8 years, 4 months ago (2012-08-07 19:42:09 UTC) #29
slamm_google
LGTM with some minor comments. http://chromiumcodereview.appspot.com/10803002/diff/22010/chrome/test/functional/perf_endure.py File chrome/test/functional/perf_endure.py (right): http://chromiumcodereview.appspot.com/10803002/diff/22010/chrome/test/functional/perf_endure.py#newcode74 chrome/test/functional/perf_endure.py:74: # It must be ...
8 years, 4 months ago (2012-08-07 20:00:43 UTC) #30
fdeng
Dennis, Nirnimesh and Steve, Thanks for your comments. I addressed them. As Dennis said, I ...
8 years, 4 months ago (2012-08-07 21:24:18 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fdeng@chromium.org/10803002/37001
8 years, 3 months ago (2012-09-07 20:42:13 UTC) #32
commit-bot: I haz the power
8 years, 3 months ago (2012-09-07 20:42:28 UTC) #33
Change committed as 155473

Powered by Google App Engine
This is Rietveld 408576698