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

Issue 5513012: Be more selective about what packages we remove so that we can detect conflicts. (Closed)

Created:
10 years ago by davidjames
Modified:
9 years, 4 months ago
CC:
chromium-os-reviews_chromium.org, Mandeep Singh Baines, anush, sosa, kliegs
Visibility:
Public.

Description

Be more selective about what packages we remove so that we can detect conflicts. Right now, the preflight queue unmerges all changed packages prior to upgrading them. This is done to ensure that any lingering state from failed package uprevs is cleaned up. This change updates cros_mark_as_stable to be more selective. This both improves speed and allows for more conflicts to be detected. Change-Id: I3134918eb16b41e8882c8af1f1bdf9052bafd9ad BUG=chromium-os:10127 TEST=Test uprev. Run unit tests. Committed: http://chrome-svn/viewvc/chromeos?view=rev&revision=702f0e3

Patch Set 1 #

Total comments: 7

Patch Set 2 : Address review feedback. #

Patch Set 3 : Add explicit return None. #

Total comments: 4

Patch Set 4 : Re-upload #

Unified diffs Side-by-side diffs Delta from patch set Stats (+43 lines, -29 lines) Patch
M cros_mark_as_stable.py View 1 2 3 7 chunks +23 lines, -19 lines 0 comments Download
M cros_mark_as_stable_unittest.py View 1 7 chunks +20 lines, -10 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
davidjames
10 years ago (2010-12-08 22:26:01 UTC) #1
sosa
http://codereview.chromium.org/5513012/diff/1/cros_mark_as_stable.py File cros_mark_as_stable.py (left): http://codereview.chromium.org/5513012/diff/1/cros_mark_as_stable.py#oldcode327 cros_mark_as_stable.py:327: self.ebuild_path_no_revision = '%s-%s' % (self.ebuild_path_no_version, No. This is used ...
10 years ago (2010-12-09 19:09:04 UTC) #2
diandersAtChromium
Aside from "=" sign being created in the drop_file (see comments), seems OK to me. ...
10 years ago (2010-12-10 23:58:54 UTC) #3
davidjames
PTAL. > So the way that this is working is that it is only attempting ...
10 years ago (2010-12-21 19:48:29 UTC) #4
sosa
LGTM w/ some nits http://codereview.chromium.org/5513012/diff/14001/cros_mark_as_stable.py File cros_mark_as_stable.py (right): http://codereview.chromium.org/5513012/diff/14001/cros_mark_as_stable.py#newcode464 cros_mark_as_stable.py:464: stable_version_no_rev = '0.0.1' I'd prefer ...
10 years ago (2010-12-21 20:37:29 UTC) #5
davidjames
10 years ago (2010-12-21 20:46:32 UTC) #6
Pushing

http://codereview.chromium.org/5513012/diff/14001/cros_mark_as_stable.py
File cros_mark_as_stable.py (right):

http://codereview.chromium.org/5513012/diff/14001/cros_mark_as_stable.py#newc...
cros_mark_as_stable.py:464: stable_version_no_rev = '0.0.1'
On 2010/12/21 20:37:29, sosa wrote:
> I'd prefer to see an extra line after the else clause but it's up to you

I get what you mean now. Done.

http://codereview.chromium.org/5513012/diff/14001/cros_mark_as_stable.py#newc...
cros_mark_as_stable.py:560: revved_package_atoms = []
On 2010/12/21 20:37:29, sosa wrote:
> Optional nit: Maybe rename to new_atoms or new_revved_atoms since otherwise
it's
> unclear from the variable name whether this points to the old or new atoms.

Done.

Powered by Google App Engine
This is Rietveld 408576698