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

Issue 14273023: Rebuild test history databases when starting up performance_ui_tests. (Closed)

Created:
7 years, 8 months ago by Elliot Glaysher
Modified:
7 years, 7 months ago
CC:
chromium-reviews, chrome-speed-team+watch_google.com, browser-components-watch_chromium.org, jeremy
Visibility:
Public.

Description

Rebuild test history databases when starting up performance_ui_tests. Previously, whenever the theme or history database format were modified, a large binary database or pak file had to be committed. This was only done intermittently, messing up some perf expectations. Since last June, this has added over 100 megabytes to our repository weight. By generating the SQLite databases and Cached Theme.pak files at startup of the one test suite that uses them, we're guaranteed that we'll always be using the current versions and won't add upgrade costs to our performance_ui_tests. We'll also not continuously add to new binary resources to the permanent git archive. BUG=111570

Patch Set 1 #

Patch Set 2 : Try to fix windows compile. #

Patch Set 3 : learn to spell #

Patch Set 4 : Speed up profile generation #

Total comments: 15

Patch Set 5 : Move PerfUITestSuite into own file. #

Patch Set 6 : Split some stuff into functions. #

Patch Set 7 : Rebase to ToT (and redo changes from TopSites to TopSitesImpl) #

Total comments: 2

Patch Set 8 : Fix the complex theme generation. #

Patch Set 9 : Fix complex theme usage on linux. PreferencesTemplate is wrong. #

Patch Set 10 : Merge with TopSitesLikelyImpl #

Patch Set 11 : Merge with TopSitesLikelyImpl #

Total comments: 5

Patch Set 12 : Rebase to ToT #

Patch Set 13 : Rebase to ToT #

Unified diffs Side-by-side diffs Delta from patch set Stats (+406 lines, -542 lines) Patch
M chrome/browser/history/history_types.h View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/history/history_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +0 lines, -28 lines 0 comments Download
M chrome/browser/history/top_sites.h View 1 2 3 4 5 6 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/browser/history/top_sites_cache.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/history/top_sites_impl.h View 1 2 3 4 5 6 3 chunks +7 lines, -3 lines 0 comments Download
M chrome/browser/history/top_sites_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 5 chunks +43 lines, -7 lines 0 comments Download
M chrome/browser/history/top_sites_likely_impl.h View 1 2 3 4 5 6 7 8 9 3 chunks +7 lines, -3 lines 0 comments Download
M chrome/browser/history/top_sites_likely_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 5 chunks +43 lines, -7 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 6 chunks +24 lines, -45 lines 0 comments Download
D chrome/test/data/profiles/profile_with_complex_theme/Default/Cookies View 0 chunks +-1 lines, --1 lines 0 comments Download
D chrome/test/data/profiles/profile_with_complex_theme/Default/Extensions/mblmlcbknbnfebdfjnolmcapmdofhmme/1.1/Cached Theme.pak View 0 chunks +-1 lines, --1 lines 0 comments Download
D chrome/test/data/profiles/profile_with_complex_theme/Default/Full Text Index View 0 chunks +-1 lines, --1 lines 0 comments Download
D chrome/test/data/profiles/profile_with_complex_theme/Default/History View 0 chunks +-1 lines, --1 lines 0 comments Download
D chrome/test/data/profiles/profile_with_complex_theme/Default/History Index 2013-01 View 0 chunks +-1 lines, --1 lines 0 comments Download
D chrome/test/data/profiles/profile_with_complex_theme/Default/History Index 2013-01-journal View 0 chunks +-1 lines, --1 lines 0 comments Download
D chrome/test/data/profiles/profile_with_complex_theme/Default/History Provider Cache View 0 chunks +-1 lines, --1 lines 0 comments Download
D chrome/test/data/profiles/profile_with_complex_theme/Default/History-journal View 0 chunks +-1 lines, --1 lines 0 comments Download
M chrome/test/data/profiles/profile_with_complex_theme/Default/PreferencesTemplate View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -1 line 0 comments Download
D chrome/test/data/profiles/profile_with_complex_theme/Default/Visited Links View 0 chunks +-1 lines, --1 lines 0 comments Download
D chrome/test/data/profiles/profile_with_default_theme/Default/Archived History View 0 chunks +-1 lines, --1 lines 0 comments Download
D chrome/test/data/profiles/profile_with_default_theme/Default/Archived History-journal View 0 chunks +-1 lines, --1 lines 0 comments Download
D chrome/test/data/profiles/profile_with_default_theme/Default/Favicons View 0 chunks +-1 lines, --1 lines 0 comments Download
D chrome/test/data/profiles/profile_with_default_theme/Default/Favicons-journal View 0 chunks +-1 lines, --1 lines 0 comments Download
D chrome/test/data/profiles/profile_with_default_theme/Default/History View 0 chunks +-1 lines, --1 lines 0 comments Download
D chrome/test/data/profiles/profile_with_default_theme/Default/History Index 2013-02 View 0 chunks +-1 lines, --1 lines 0 comments Download
D chrome/test/data/profiles/profile_with_default_theme/Default/History Index 2013-02-journal View 0 chunks +-1 lines, --1 lines 0 comments Download
D chrome/test/data/profiles/profile_with_default_theme/Default/History Provider Cache View 0 chunks +-1 lines, --1 lines 0 comments Download
D chrome/test/data/profiles/profile_with_default_theme/Default/History-journal View 0 chunks +-1 lines, --1 lines 0 comments Download
D chrome/test/data/profiles/profile_with_default_theme/Default/Top Sites View 0 chunks +-1 lines, --1 lines 0 comments Download
D chrome/test/data/profiles/profile_with_default_theme/Default/Top Sites-journal View 0 chunks +-1 lines, --1 lines 0 comments Download
D chrome/test/data/profiles/profile_with_default_theme/Default/Visited Links View 0 chunks +-1 lines, --1 lines 0 comments Download
D chrome/test/data/profiles/profile_with_default_theme/README.txt View 1 chunk +0 lines, -12 lines 0 comments Download
M chrome/test/perf/feature_startup_test.cc View 1 2 3 4 5 6 7 8 4 chunks +11 lines, -12 lines 0 comments Download
A chrome/test/perf/generate_profile.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +29 lines, -0 lines 0 comments Download
A + chrome/test/perf/generate_profile.cc View 1 2 3 4 9 chunks +35 lines, -73 lines 0 comments Download
A chrome/test/perf/perf_ui_test_suite.h View 1 2 3 4 5 6 7 1 chunk +45 lines, -0 lines 0 comments Download
A chrome/test/perf/perf_ui_test_suite.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +149 lines, -0 lines 0 comments Download
A + chrome/test/perf/run_all_perfuitests.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +3 lines, -6 lines 0 comments Download
M chrome/test/perf/startup_test.cc View 1 2 3 4 5 6 7 8 9 10 11 12 7 chunks +18 lines, -14 lines 0 comments Download
M chrome/test/ui/ui_test.h View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +0 lines, -13 lines 0 comments Download
M chrome/test/ui/ui_test.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +2 lines, -27 lines 0 comments Download
D chrome/tools/profiles/generate_profile.cc View 1 chunk +0 lines, -310 lines 0 comments Download

Messages

Total messages: 25 (0 generated)
Elliot Glaysher
7 years, 8 months ago (2013-04-26 22:50:04 UTC) #1
Paweł Hajdan Jr.
Overall, great change! https://codereview.chromium.org/14273023/diff/2006/chrome/test/perf/generate_profile.cc File chrome/test/perf/generate_profile.cc (right): https://codereview.chromium.org/14273023/diff/2006/chrome/test/perf/generate_profile.cc#newcode63 chrome/test/perf/generate_profile.cc:63: inline float RandomFloat() { nit: Is ...
7 years, 8 months ago (2013-04-26 23:19:32 UTC) #2
Randy Smith (Not in Mondays)
I'm very psyched you're doing this; thank you! Do you have specific areas you'd like ...
7 years, 7 months ago (2013-04-29 18:49:13 UTC) #3
Elliot Glaysher
ptal rdsmith: the point of test_support_ui_runner is to provide the main() which kicks up the ...
7 years, 7 months ago (2013-04-29 21:41:35 UTC) #4
tonyg
Awesome change. Just curious if this will work with the reference builds?
7 years, 7 months ago (2013-04-30 02:33:12 UTC) #5
Randy Smith (Not in Mondays)
On 2013/04/29 21:41:35, Elliot Glaysher wrote: > ptal > > rdsmith: the point of test_support_ui_runner ...
7 years, 7 months ago (2013-04-30 15:57:28 UTC) #6
Elliot Glaysher
On 2013/04/30 02:33:12, tonyg wrote: > Awesome change. Just curious if this will work with ...
7 years, 7 months ago (2013-04-30 17:51:27 UTC) #7
tonyg
On 2013/04/30 17:51:27, Elliot Glaysher wrote: > On 2013/04/30 02:33:12, tonyg wrote: > > Awesome ...
7 years, 7 months ago (2013-04-30 17:53:59 UTC) #8
Randy Smith (Not in Mondays)
Ok, I think this looks basically good. I reviewed the whole patch, but focussed on ...
7 years, 7 months ago (2013-04-30 21:27:36 UTC) #9
Elliot Glaysher
On 2013/04/30 17:53:59, tonyg wrote: > There are reference builds of chrome checked in. At ...
7 years, 7 months ago (2013-04-30 21:55:03 UTC) #10
jeremy
No review comments but just an FYI - I'm working on moving startup_test.cc to Telemetry. ...
7 years, 7 months ago (2013-05-01 10:44:22 UTC) #11
Elliot Glaysher
+ sky: changes to TopSites/History + yoz: setup of extension code in perf_ui_test Changes: - ...
7 years, 7 months ago (2013-05-03 19:25:58 UTC) #12
Randy Smith (Not in Mondays)
LGTM with nit below. Your plan around the performance ratchet also SGTM. Thanks! https://codereview.chromium.org/14273023/diff/63001/chrome/test/perf/perf_ui_test_suite.cc File ...
7 years, 7 months ago (2013-05-03 20:11:47 UTC) #13
Elliot Glaysher
+ yoz, sky: as above (I appear to have forgotten that just putting +person in ...
7 years, 7 months ago (2013-05-06 20:02:46 UTC) #14
Yoyo Zhou
mostly LGTM https://codereview.chromium.org/14273023/diff/63001/chrome/test/perf/perf_ui_test_suite.cc File chrome/test/perf/perf_ui_test_suite.cc (right): https://codereview.chromium.org/14273023/diff/63001/chrome/test/perf/perf_ui_test_suite.cc#newcode134 chrome/test/perf/perf_ui_test_suite.cc:134: // Build the "Cached Theme.pak" file in ...
7 years, 7 months ago (2013-05-06 20:31:02 UTC) #15
Elliot Glaysher
https://codereview.chromium.org/14273023/diff/63001/chrome/test/perf/perf_ui_test_suite.cc File chrome/test/perf/perf_ui_test_suite.cc (right): https://codereview.chromium.org/14273023/diff/63001/chrome/test/perf/perf_ui_test_suite.cc#newcode134 chrome/test/perf/perf_ui_test_suite.cc:134: // Build the "Cached Theme.pak" file in the template. ...
7 years, 7 months ago (2013-05-06 20:43:22 UTC) #16
sky
Brett wrote this stuff, so: sky->brettw
7 years, 7 months ago (2013-05-06 22:14:40 UTC) #17
Paweł Hajdan Jr.
LGTM with comments. https://codereview.chromium.org/14273023/diff/63001/chrome/test/perf/generate_profile.h File chrome/test/perf/generate_profile.h (right): https://codereview.chromium.org/14273023/diff/63001/chrome/test/perf/generate_profile.h#newcode25 chrome/test/perf/generate_profile.h:25: const base::FilePath& dst_dir); nit: Add WARN_UNUSED_RESULT ...
7 years, 7 months ago (2013-05-06 23:46:04 UTC) #18
Elliot Glaysher
ping: brettw
7 years, 7 months ago (2013-05-08 23:33:45 UTC) #19
Randy Smith (Not in Mondays)
On 2013/05/08 23:33:45, Elliot Glaysher wrote: > ping: brettw Brett's got a lot of filters ...
7 years, 7 months ago (2013-05-09 00:10:40 UTC) #20
brettw
owners lgtm
7 years, 7 months ago (2013-05-09 23:44:06 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/erg@chromium.org/14273023/92001
7 years, 7 months ago (2013-05-10 16:31:01 UTC) #22
commit-bot: I haz the power
Can't process patch for file chrome/test/data/profiles/profile_with_default_theme/Default/History Index 2013-02-journal. Unexpected git diff output name Index 2013-02-journal ...
7 years, 7 months ago (2013-05-10 16:31:04 UTC) #23
Elliot Glaysher
sky: could you stamp generate_profile?
7 years, 7 months ago (2013-05-10 16:35:49 UTC) #24
sky
7 years, 7 months ago (2013-05-10 19:20:54 UTC) #25
LGTM

Powered by Google App Engine
This is Rietveld 408576698