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

Issue 2224093003: Drop third_party/swiftshader/ from .gitignore (Closed)

Created:
4 years, 4 months ago by foolip
Modified:
4 years, 4 months ago
Reviewers:
capn, stevenjb, sugoi1
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Drop third_party/swiftshader/ from .gitignore It's no longer in DEPS, and its precense in .gitignore may be why it's still left in the checkout causing checklicenses failures. BUG=635880 TBR=stevenjb@chromium.org Committed: https://chromium.googlesource.com/chromium/src/+/341fac67de9500a95d8ed16545a9b0e1f859991d

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+0 lines, -1 line) Patch
M .gitignore View 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 16 (5 generated)
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/341fac67de9500a95d8ed16545a9b0e1f859991d Cr-Commit-Position: refs/heads/master@{#410647}
4 years, 4 months ago (2016-08-09 13:16:41 UTC) #2
foolip
Committed patchset #1 (id:1) manually as 341fac67de9500a95d8ed16545a9b0e1f859991d (presubmit successful).
4 years, 4 months ago (2016-08-09 13:17:39 UTC) #4
fs
On 2016/08/09 at 13:17:39, foolip wrote: > Committed patchset #1 (id:1) manually as 341fac67de9500a95d8ed16545a9b0e1f859991d (presubmit ...
4 years, 4 months ago (2016-08-15 13:39:18 UTC) #5
foolip
capn@, can you take care of this? I did this as sheriff to fix a ...
4 years, 4 months ago (2016-08-15 14:29:26 UTC) #7
capn
On 2016/08/15 14:29:26, foolip wrote: > capn@, can you take care of this? I did ...
4 years, 4 months ago (2016-08-15 15:29:59 UTC) #10
capn
On 2016/08/15 15:29:59, capn wrote: > Anyway, I'm currently doing a checkout from scratch to ...
4 years, 4 months ago (2016-08-15 15:44:34 UTC) #11
Peter Kasting
A revert of this CL (patchset #1 id:1) has been created in https://codereview.chromium.org/2250003002/ by pkasting@chromium.org. ...
4 years, 4 months ago (2016-08-16 03:12:16 UTC) #12
Peter Kasting
On 2016/08/15 15:29:59, capn wrote: > On 2016/08/15 14:29:26, foolip wrote: > > capn@, can ...
4 years, 4 months ago (2016-08-16 03:22:28 UTC) #13
capn
On 2016/08/16 03:22:28, Peter Kasting wrote: > On 2016/08/15 15:29:59, capn wrote: > > On ...
4 years, 4 months ago (2016-08-16 14:05:58 UTC) #14
Peter Kasting
On 2016/08/16 14:05:58, capn wrote: > On 2016/08/16 03:22:28, Peter Kasting wrote: > > On ...
4 years, 4 months ago (2016-08-16 18:48:01 UTC) #15
capn
4 years, 4 months ago (2016-08-16 19:55:19 UTC) #16
Message was sent while issue was closed.
On 2016/08/16 18:48:01, Peter Kasting wrote:
> On 2016/08/16 14:05:58, capn wrote:
> > On 2016/08/16 03:22:28, Peter Kasting wrote:
> > > On 2016/08/15 15:29:59, capn wrote:
> > > > On 2016/08/15 14:29:26, foolip wrote:
> > > > > capn@, can you take care of this? I did this as sheriff to fix a
> builder,
> > > and
> > > > if
> > > > > swiftshader DEPS need to be reverted again it needs to happen together
> > with
> > > > > .gitignore.
> > > > 
> > > > Yes, I'll take care of anything to properly get SwiftShader into
Chromium,
> > but
> > > > I'm slightly confused about what needs to happen here. Now that the
> > > SwiftShader
> > > > source code is in //third_party/swiftshader (the first attempt caused
> build
> > > > issues, which resulted in a revert and then caused checklicense
failures,
> > but
> > > > the second attempt seems to stick), shouldn't it not be in .gitignore?
> That
> > > is,
> > > > leave things the way they are now?
> > > 
> > > No.  The source is pulled into those directories via DEPS and is not
checked
> > > into them inside the Chromium repo.  Therefore, from git's perspective,
the
> > > entire directory is untracked.
> > > 
> > > In other words, third_party/XXX/ should be in .gitignore iff it is in
DEPS. 
> > It
> > > seems like your understanding is reversed from that.
> > > 
> > > I went ahead and created the revert here.
> > 
> > Ah, I see, these repos are nested. It thought they were separate, like how
> > Android handles external repos. Is it too late to suggest a directory
> structure
> > reorg? Anyway, thanks for taking the right action here and explaining the
core
> > issue.
> 
> What kind of reorg would you propose?  I'm not familiar with how Android does
> things.
> 
> We pull a lot of external repos into various third_party/ directories via DEPS
> and put them in .gitignore, so this situation is fairly common.

Basically if third_party/ was next to src/ and each project was from a separate
repository (instead of a bunch of them being in bundled in chromium/src), there
wouldn't be a need to add ones from DEPS to .gitignore (in fact there wouldn't
be a .gitignore at the top level). Anyway, besides involving a lot of work and
getting critique from people used to the current structure, there would be a few
downsides to switching to the way Android does things as well, like complicating
bisect across multiple repositories. :-(

So never mind. Having worked on Android for a while I was just confused about
how Chromium's .gitignore could have anything to do with SwiftShader. Makes
perfect sense now. It's even nicely mentioned in the docs, but, not clarified
"why":
https://www.chromium.org/developers/adding-3rd-party-libraries#TOC-Setting-up....
So I'll update that to avoid similar issues and confusion in the future.

Thanks again.

Powered by Google App Engine
This is Rietveld 408576698