New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 610332 link

Starred by 1 user

Issue metadata

Status: Archived
Owner:
Closed: Dec 2016
Cc:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 2
Type: Bug



Sign in to add a comment

Telemetry overwrites --vmodule flag in session_manager when launching browser on CrOS

Project Member Reported by cylee@google.com, May 9 2016

Issue description

I found this problem when testing on CrOS with telemetry.
The vmodule parameter added in /etc/chrome_dev.conf is handled in session manager, but telemetry appends another --vmodule flag so overwrites the original one:
https://code.google.com/p/chromium/codesearch#chromium/src/third_party/catapult/telemetry/telemetry/internal/backends/chrome/cros_browser_backend.py&l=70

If I read the code correct, telemetry calls EnableChromeTesting() with the overriding --vmodule flag https://code.google.com/p/chromium/codesearch#chromium/src/third_party/catapult/telemetry/telemetry/internal/backends/chrome/cros_browser_backend.py&l=105
The flag is then passed as extra_args at
https://chromium.googlesource.com/chromiumos/platform/login_manager/+/master/session_manager_impl.cc#257
when launching the browser.

Multiple --vmodule flag should be merged in session_manager before launching the browser
 

Comment 1 by cylee@chromium.org, May 9 2016

Cc: cylee@chromium.org derat@chromium.org nednguyen@chromium.org
Labels: -OS-Mac OS-Chrome
Cc: achuith@chromium.org

Comment 3 by derat@chromium.org, May 9 2016

Alternately, it may be cleaner to make Chrome's logging handle multiple --vmodule flags. I'm not sure if that's easy to do, though.

Comment 4 by cylee@google.com, May 9 2016

Yes it's cleaner, but base::CommandLine in chrome wasn't designed for multiple values. Doing the change is not hard, but whether the re-design would be accept. (In the past only the last value is remembered, should I remember all occurrence for all flags?)
On the other hand, it's not so clean if I only take "--vmodule" as a special case.
Status: Untriaged (was: Unconfirmed)
Project Member

Comment 6 by sheriffbot@chromium.org, Jun 2 2016

Labels: Hotlist-Google

Comment 7 by kcwu@chromium.org, Nov 28 2016

Cc: kcwu@chromium.org
Another idea, handle that in telemetry's GetBrowserStartupArgs().

Since telemetry is hacking the command line argument (get existing args and append more), it is reasonable that it is telemetry's responsibility to handle vmodule correctly.

And the code change is probably just simple list and string operations in python.

Yes, it could be done in telemetry, but it's simply not the right place. It ought to be handled either by session_manager or chrome.

Comment 9 by cylee@google.com, Nov 28 2016

Following achuith's suggestion #8, I modified session_manager to handle multiple vmodule
https://chromium-review.googlesource.com/#/c/414660/
Labels: -Pri-3 Pri-2
Owner: cylee@chromium.org
Status: Started (was: Untriaged)
Thank you Cheng-Yu! Added some comments on the CL.

Comment 11 by cylee@chromium.org, Nov 29 2016

Cc: deanliao@chromium.org bccheng@chromium.org
add some folks who might be interested in this 
Project Member

Comment 12 by bugdroid1@chromium.org, Dec 1 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromiumos/platform2/+/ee47b0783cd90cf0b13024db116022622df3967f

commit ee47b0783cd90cf0b13024db116022622df3967f
Author: Cheng-Yu Lee <cylee@chromium.org>
Date: Mon Nov 28 19:21:21 2016

login: Combine multiple --vmodule flags when starting chrome.

In the past only one of --vmodule got applied if multiple are given.
It causes problem if --vmodule was specified in multiple places
(e.g., Telemetry).

BUG= chromium:610332 
TEST=manually tested to ensure --vmodule from telemetry is merged

Change-Id: I583eaf0c292134b76d72543c0a0216ccb0ef2c77
Reviewed-on: https://chromium-review.googlesource.com/414660
Commit-Ready: Cheng-Yu Lee <cylee@chromium.org>
Tested-by: Cheng-Yu Lee <cylee@chromium.org>
Reviewed-by: Achuith Bhandarkar <achuith@chromium.org>
Reviewed-by: Cheng-Yu Lee <cylee@chromium.org>
Reviewed-by: Dan Erat <derat@chromium.org>

[modify] https://crrev.com/ee47b0783cd90cf0b13024db116022622df3967f/login_manager/browser_job_unittest.cc
[modify] https://crrev.com/ee47b0783cd90cf0b13024db116022622df3967f/login_manager/browser_job.cc

Status: Fixed (was: Started)

Comment 14 by dchan@google.com, Mar 4 2017

Labels: VerifyIn-58

Comment 15 by dchan@google.com, Apr 17 2017

Labels: VerifyIn-59

Comment 16 by dchan@google.com, May 30 2017

Labels: VerifyIn-60
Labels: VerifyIn-61

Comment 18 by dchan@chromium.org, Oct 14 2017

Status: Archived (was: Fixed)

Sign in to add a comment