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

Issue 3061029: Disable collision-protect in parallel_emerge. (Closed)

Created:
10 years, 4 months ago by davidjames
Modified:
9 years, 4 months ago
Reviewers:
zbehan
CC:
chromium-os-reviews_chromium.org, Mandeep Singh Baines, anush, sosa
Base URL:
ssh://git@chromiumos-git/crosutils.git
Visibility:
Public.

Description

Disable collision-protect in parallel_emerge. collision-protect doesn't make sense for parallel_emerge, because we don't lock around merges. Also, if merge fails part-way through, it's strange to fail just because some files are lying around. This fixes an issue with the buildbots. TEST=Checked that collision-protect feature gets deleted by this. BUG=none

Patch Set 1 #

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

Messages

Total messages: 5 (0 generated)
davidjames
10 years, 4 months ago (2010-07-29 07:54:44 UTC) #1
zbehan
LGTM, thanks! On Thu, Jul 29, 2010 at 12:54 AM, <davidjames@chromium.org> wrote: > Reviewers: zbehan, ...
10 years, 4 months ago (2010-07-29 07:59:22 UTC) #2
Mandeep Singh Baines
davidjames@chromium.org (davidjames@chromium.org) wrote: > Reviewers: zbehan, > > Description: > Disable collision-protect in parallel_emerge. > ...
10 years, 4 months ago (2010-07-29 13:12:18 UTC) #3
davidjames
On 2010/07/29 13:12:18, Mandeep Singh Baines wrote: > mailto:davidjames@chromium.org (mailto:davidjames@chromium.org) wrote: > > Reviewers: zbehan, ...
10 years, 4 months ago (2010-07-29 15:04:52 UTC) #4
Mandeep Singh Baines
10 years, 4 months ago (2010-07-29 16:40:17 UTC) #5
davidjames@chromium.org (davidjames@chromium.org) wrote:
> On 2010/07/29 13:12:18, Mandeep Singh Baines wrote:
> >mailto:davidjames@chromium.org (mailto:davidjames@chromium.org) wrote:
> >> Reviewers: zbehan,
> >>
> >> Description:
> >> Disable collision-protect in parallel_emerge.
> >>
> >> collision-protect doesn't make sense for parallel_emerge, because
> >> we don't lock around merges. Also, if merge fails part-way through,
> >> it's strange to fail just because some files are lying around.
> 
> >I'm not following. Shouldn't each file be owned by exactly one package.
> 
> >Won't this mask bugs. If two packages are owning a file, we won't
> >notice it after this CL. This will result in non-determinstic build
> >depending on the order in which packages are merged.
> 
> Sorry, maybe I should have been more clear in the description.
> 
> Portage has two flags for doing collision protection: collision-protect and
> protect-owned. The protect-owned feature is enabled by default and is quite
> useful -- it checks to make sure that we don't have multiple
> packages that own
> the same file. The collision-protect feature goes beyond
> protect-owned and also
> protects files that aren't owned by any package. E.g. if you merge a
> package and
> then CTRL-C in the middle of the merge, and then merge again, the
> merge fails
> the second time if you have collision-protect, because
> collision-protect spotted
> that the old merge left some files around that don't belong to any
> package, and
> maybe you don't want to replace them. Unlike collision-protect,
> protect-owned
> does not cause problems here because it only protects files that
> actually belong
> to a real package.
> 

Ah. Thanks for the explanation:)

> http://codereview.chromium.org/3061029/show

Powered by Google App Engine
This is Rietveld 408576698