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

Issue 2262743002: DevTools: Run devtools tests in release mode (Closed)

Created:
4 years, 4 months ago by chenwilliam
Modified:
4 years, 3 months ago
Reviewers:
pfeldman, mmenke
CC:
allada, luoe, einbinder
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

DevTools: Run devtools tests in release mode This modifies our build process so regardless of whether debug_devtools is enabled a release mode version is built. People can opt out of using release mode by passing "--additional-drt-flag='--debug-devtools'" to run_layout_tests.py if they are trying to debug a layout test. This will decrease the time of our test suite by ~25% (20 seconds faster). Stats for running our tests: 16 process - debug mode: average 83 seconds (3 runs) 16 process - release mode: average 63 seconds (4 runs) Even in fully parallel, this speeds up our test from ~50 seconds to ~40 seconds, however fully parallel mode had a wide variance from 40 to 60 seconds between different runs. Tests included: inspector inspector-protocol inspector-enabled http/tests/inspector Committed: https://crrev.com/f629859fdf0b7588a6dc53c8653c67b6766a64da Cr-Commit-Position: refs/heads/master@{#415742}

Patch Set 1 #

Patch Set 2 : Add flag #

Total comments: 15

Patch Set 3 : Address CL feedback #

Patch Set 4 : Simplify build process #

Total comments: 10

Patch Set 5 : Minor BUILD.gn refactor #

Total comments: 3

Patch Set 6 : address CL feedback #

Total comments: 1

Patch Set 7 : Pull from master #

Unified diffs Side-by-side diffs Delta from patch set Stats (+168 lines, -123 lines) Patch
M chrome/browser/profiles/profile_io_data.cc View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M content/shell/browser/layout_test/layout_test_devtools_frontend.cc View 1 2 3 2 chunks +7 lines, -4 lines 0 comments Download
M content/shell/common/layout_test/layout_test_switches.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M content/shell/common/layout_test/layout_test_switches.cc View 1 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/devtools/BUILD.gn View 1 2 3 4 5 6 8 chunks +131 lines, -110 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/Runtime.js View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/formatter_worker.json View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/devtools/front_end/inspector.json View 1 2 3 4 1 chunk +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/devtools/scripts/concatenate_application_code.py View 1 2 1 chunk +0 lines, -3 lines 0 comments Download
A third_party/WebKit/Source/devtools/scripts/run_inspector_tests.sh View 1 2 3 1 chunk +17 lines, -0 lines 0 comments Download

Messages

Total messages: 41 (18 generated)
chenwilliam
https://codereview.chromium.org/2262743002/diff/20001/third_party/WebKit/Source/devtools/BUILD.gn File third_party/WebKit/Source/devtools/BUILD.gn (right): https://codereview.chromium.org/2262743002/diff/20001/third_party/WebKit/Source/devtools/BUILD.gn#newcode380 third_party/WebKit/Source/devtools/BUILD.gn:380: action("supported_css_properties_release") { I copied the actions for SupportedCSSProperties and ...
4 years, 4 months ago (2016-08-19 23:52:40 UTC) #4
allada
Can we maybe do this as a --devtools-directory="path/to/devtools" instead? Then we could specify the path ...
4 years, 4 months ago (2016-08-20 00:54:49 UTC) #6
pfeldman
https://codereview.chromium.org/2262743002/diff/20001/content/shell/browser/layout_test/layout_test_devtools_frontend.cc File content/shell/browser/layout_test/layout_test_devtools_frontend.cc (right): https://codereview.chromium.org/2262743002/diff/20001/content/shell/browser/layout_test/layout_test_devtools_frontend.cc#newcode55 content/shell/browser/layout_test/layout_test_devtools_frontend.cc:55: bool isDebugDevTools = base::CommandLine::ForCurrentProcess()->HasSwitch( use_underscore_notation https://codereview.chromium.org/2262743002/diff/20001/content/shell/browser/layout_test/layout_test_devtools_frontend.cc#newcode64 content/shell/browser/layout_test/layout_test_devtools_frontend.cc:64: #if defined(DEBUG_DEVTOOLS) ...
4 years, 4 months ago (2016-08-24 00:36:05 UTC) #8
chenwilliam
https://codereview.chromium.org/2262743002/diff/20001/content/shell/browser/layout_test/layout_test_devtools_frontend.cc File content/shell/browser/layout_test/layout_test_devtools_frontend.cc (right): https://codereview.chromium.org/2262743002/diff/20001/content/shell/browser/layout_test/layout_test_devtools_frontend.cc#newcode55 content/shell/browser/layout_test/layout_test_devtools_frontend.cc:55: bool isDebugDevTools = base::CommandLine::ForCurrentProcess()->HasSwitch( On 2016/08/24 00:36:04, pfeldman wrote: ...
4 years, 4 months ago (2016-08-24 22:53:40 UTC) #10
chenwilliam
PTAL. I simplified our debug and release builds. I also cleaned up BUILD.gn and made ...
4 years, 3 months ago (2016-08-29 17:48:37 UTC) #11
pfeldman
https://codereview.chromium.org/2262743002/diff/60001/third_party/WebKit/Source/devtools/BUILD.gn File third_party/WebKit/Source/devtools/BUILD.gn (left): https://codereview.chromium.org/2262743002/diff/60001/third_party/WebKit/Source/devtools/BUILD.gn#oldcode131 third_party/WebKit/Source/devtools/BUILD.gn:131: response_file_contents = rebase_path(static_files, root_build_dir) Why is this no longer ...
4 years, 3 months ago (2016-08-29 20:57:22 UTC) #12
chenwilliam
I wasn't sure if you were suggesting any code changes, so I left a couple ...
4 years, 3 months ago (2016-08-29 22:45:33 UTC) #13
pfeldman
lgtm https://codereview.chromium.org/2262743002/diff/60001/third_party/WebKit/Source/devtools/BUILD.gn File third_party/WebKit/Source/devtools/BUILD.gn (right): https://codereview.chromium.org/2262743002/diff/60001/third_party/WebKit/Source/devtools/BUILD.gn#newcode88 third_party/WebKit/Source/devtools/BUILD.gn:88: generated_modules = [ generated_bundled_modules https://codereview.chromium.org/2262743002/diff/60001/third_party/WebKit/Source/devtools/BUILD.gn#newcode258 third_party/WebKit/Source/devtools/BUILD.gn:258: generated_remote_modules = ...
4 years, 3 months ago (2016-08-30 21:07:40 UTC) #14
chenwilliam
https://codereview.chromium.org/2262743002/diff/60001/third_party/WebKit/Source/devtools/BUILD.gn File third_party/WebKit/Source/devtools/BUILD.gn (right): https://codereview.chromium.org/2262743002/diff/60001/third_party/WebKit/Source/devtools/BUILD.gn#newcode88 third_party/WebKit/Source/devtools/BUILD.gn:88: generated_modules = [ On 2016/08/30 21:07:40, pfeldman wrote: > ...
4 years, 3 months ago (2016-08-30 22:21:21 UTC) #15
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/2262743002/80001
4 years, 3 months ago (2016-08-30 22:22:38 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/249702)
4 years, 3 months ago (2016-08-30 22:30:15 UTC) #20
chenwilliam
mmenke@: please OWNER review chrome/browser/profiles/profile_io_data.cc
4 years, 3 months ago (2016-08-30 23:03:35 UTC) #22
mmenke
https://codereview.chromium.org/2262743002/diff/80001/chrome/browser/profiles/profile_io_data.cc File chrome/browser/profiles/profile_io_data.cc (right): https://codereview.chromium.org/2262743002/diff/80001/chrome/browser/profiles/profile_io_data.cc#newcode226 chrome/browser/profiles/profile_io_data.cc:226: *path = debug_path.AppendASCII(relative_path); Maybe *path = inspector_dir.AppendASCII("debug").AppendASCII(relative_path);? One other ...
4 years, 3 months ago (2016-08-31 00:04:29 UTC) #23
mmenke
https://codereview.chromium.org/2262743002/diff/80001/chrome/browser/profiles/profile_io_data.cc File chrome/browser/profiles/profile_io_data.cc (right): https://codereview.chromium.org/2262743002/diff/80001/chrome/browser/profiles/profile_io_data.cc#newcode226 chrome/browser/profiles/profile_io_data.cc:226: *path = debug_path.AppendASCII(relative_path); Also, will this result in leaving ...
4 years, 3 months ago (2016-08-31 00:38:40 UTC) #24
chenwilliam
mmenke@, PTAL. https://codereview.chromium.org/2262743002/diff/80001/chrome/browser/profiles/profile_io_data.cc File chrome/browser/profiles/profile_io_data.cc (right): https://codereview.chromium.org/2262743002/diff/80001/chrome/browser/profiles/profile_io_data.cc#newcode226 chrome/browser/profiles/profile_io_data.cc:226: *path = debug_path.AppendASCII(relative_path); On 2016/08/31 00:04:29, mmenke ...
4 years, 3 months ago (2016-08-31 00:53:06 UTC) #25
mmenke
LGTM https://codereview.chromium.org/2262743002/diff/100001/chrome/browser/profiles/profile_io_data.cc File chrome/browser/profiles/profile_io_data.cc (right): https://codereview.chromium.org/2262743002/diff/100001/chrome/browser/profiles/profile_io_data.cc#newcode225 chrome/browser/profiles/profile_io_data.cc:225: // Use the non-bundled and non-minified devtools app ...
4 years, 3 months ago (2016-08-31 01:04:36 UTC) #26
mmenke
On 2016/08/31 01:04:36, mmenke wrote: > LGTM > > https://codereview.chromium.org/2262743002/diff/100001/chrome/browser/profiles/profile_io_data.cc > File chrome/browser/profiles/profile_io_data.cc (right): > ...
4 years, 3 months ago (2016-08-31 01:07:09 UTC) #27
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/2262743002/100001
4 years, 3 months ago (2016-08-31 01:10:07 UTC) #30
commit-bot: I haz the power
Try jobs failed on following builders: ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/builds/61293) mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, ...
4 years, 3 months ago (2016-08-31 01:12:54 UTC) #32
chenwilliam
I agree there should be a better home for this code. I'll take a look ...
4 years, 3 months ago (2016-08-31 01:16:12 UTC) #33
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/2262743002/120001
4 years, 3 months ago (2016-08-31 18:47:55 UTC) #36
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 3 months ago (2016-08-31 20:41:51 UTC) #38
commit-bot: I haz the power
4 years, 3 months ago (2016-08-31 20:43:31 UTC) #40
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/f629859fdf0b7588a6dc53c8653c67b6766a64da
Cr-Commit-Position: refs/heads/master@{#415742}

Powered by Google App Engine
This is Rietveld 408576698