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

Issue 705567 link

Starred by 2 users

Issue metadata

Status: Archived
Owner:
Last visit > 30 days ago
Closed: Jun 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 3
Type: Bug



Sign in to add a comment

Enable gn check for chrome/browser/chromeos

Project Member Reported by sky@chromium.org, Mar 27 2017

Issue description

gn check does not run against c/b/chromeos currently (controlled by top-level .gn). Turning it on results in a ton of warnings. We should fix the warnings and turn on gn check to verify deps are correct and there aren't any lingering build issues.
 
Components: UI>Shell
Putting into ash triage queue.
Cc: -steve...@chromium.org
Owner: steve...@chromium.org
Status: Assigned (was: Untriaged)
Steven, who does work on gn issues nowadays? Can you please triage? Thanks!
Cc: afakhry@chromium.org dpranke@chromium.org abodenha@chromium.org
Labels: Hotlist-CrOS-Gardener Hotlist-GoodFirstBug
Status: Available (was: Assigned)
Anyone willing and able? It can sit on my plate, but it will sit here for a while.

dpranke@ is super helpful about answering any questions for anyone who picks this up.

Comment 4 by sjg@chromium.org, May 16 2017

Cc: sjg@chromium.org
Are there any more details available? What is gn check?

"gn check" is a command that verifies all the #includes in your cc files match with the allowed dependencies in your BUILD.gn files. c/b/chromeos has a bunch of temporary exclusions that need to be cleaned up.

You can run "gn check" from the command line. Just point it at your out directory.

Comment 6 by sjg@chromium.org, May 17 2017

Owner: sjg@chromium.org
Will take this for the next starter, if that's OK.

Comment 7 by sjg@chromium.org, May 24 2017

Owner: bmgordon@chromium.org
Ben, this should give you an oppty to try out building Chrome
Status: Started (was: Available)
I'm getting started on this.  The biggest problem seems to be a cyclic dependency between //chrome/browser:browser and //chrome/browser/chromeos:chromeos.  Do you have any pointers for how to break the cycle?

Comment 9 by sky@chromium.org, May 25 2017

In some cases we allow cyclic dependencies. See
gn's allow_circular_includes_from. We use it in chrome/browser/BUILD.gn for
one.
Project Member

Comment 10 by bugdroid1@chromium.org, Jun 7 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/42137002fceb08c470f330b1b6a93bea7a0cd0f7

commit 42137002fceb08c470f330b1b6a93bea7a0cd0f7
Author: Earl Ou <shunhsingou@chromium.org>
Date: Wed Jun 07 06:07:19 2017

Move arc_tracing_agent.* to content/public

arc_tracing_agent.h is used in //chrome/browser/chromeos/arc. Move both
files to content/public to export it correctly.

BUG= 705567 

Change-Id: Ica7b880bfcd8d1ab02732f4c9ca8462b3e05ad8e
Reviewed-on: https://chromium-review.googlesource.com/523483
Reviewed-by: Alex Moshchuk <alexmos@chromium.org>
Reviewed-by: Luis Hector Chavez <lhchavez@chromium.org>
Reviewed-by: Oystein Eftevaag <oysteine@chromium.org>
Commit-Queue: Shun-Hsing Ou <shunhsingou@chromium.org>
Cr-Commit-Position: refs/heads/master@{#477560}
[delete] https://crrev.com/6a40e94018f930fd154f12a309b0a211e9e5f915/chrome/browser/chromeos/arc/tracing/DEPS
[modify] https://crrev.com/42137002fceb08c470f330b1b6a93bea7a0cd0f7/chrome/browser/chromeos/arc/tracing/arc_tracing_bridge.h
[modify] https://crrev.com/42137002fceb08c470f330b1b6a93bea7a0cd0f7/content/browser/BUILD.gn
[modify] https://crrev.com/42137002fceb08c470f330b1b6a93bea7a0cd0f7/content/browser/tracing/tracing_controller_impl.cc
[modify] https://crrev.com/42137002fceb08c470f330b1b6a93bea7a0cd0f7/content/public/browser/BUILD.gn
[rename] https://crrev.com/42137002fceb08c470f330b1b6a93bea7a0cd0f7/content/public/browser/arc_tracing_agent.cc
[rename] https://crrev.com/42137002fceb08c470f330b1b6a93bea7a0cd0f7/content/public/browser/arc_tracing_agent.h

Status: Fixed (was: Started)
Not sure where the bugdroid comment went, but I submitted http://crrev.com/c/516565 yesterday to enable gn check.
Woo hoo! Thanks for taking care of this.

Comment 13 by sjg@google.com, Jul 5 2017

Labels: Team-BLD

Comment 14 by dchan@chromium.org, Jan 22 2018

Status: Archived (was: Fixed)

Sign in to add a comment