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

Issue 3798003: Robustify and speed up cros_mark_all_as_stable. (Closed)

Created:
10 years, 2 months ago by David James
Modified:
9 years, 7 months ago
Reviewers:
sosa
CC:
chromium-os-reviews_chromium.org, Mandeep Singh Baines, anush, sosa
Visibility:
Public.

Description

Robustify and speed up cros_mark_all_as_stable. What's new? - cros_mark_all_as_stable is now in Python and has unit tests. - We now detect and report coding errors that can cause incorrect behavior. E.g., if 9999 ebuild or stable ebuild can't be found, we report a hard failure so that developers will know about the problem. - We now check that git hashes we report actually match up with the right repository. - Unified diff of changes are now printed to stdout, so that developers can see a list of the changes and debug any problems. - cros_mark_all_as_stable now takes 2.5 seconds to run. BUG=chromium-os:7795 TEST=Manually examined diff output from run of cros_mark_all_as_stable on full repository. Change-Id: I762597c9b94e5f8e8171b83c966ad54e21a65c1b Committed: http://chrome-svn/viewvc/chromeos?view=rev&revision=6be0f08

Patch Set 1 #

Total comments: 33

Patch Set 2 : Address feedback #

Patch Set 3 : More nits #

Total comments: 25

Patch Set 4 : Address review feedback #

Total comments: 2

Patch Set 5 : Move where we initialize the stable branch so that we verify we have >= 1 change #

Patch Set 6 : Check no changes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+262 lines, -229 lines) Patch
M bin/cbuildbot.py View 2 3 4 5 2 chunks +2 lines, -6 lines 0 comments Download
M bin/cbuildbot_unittest.py View 2 chunks +4 lines, -4 lines 0 comments Download
M cros_mark_all_as_stable View 1 1 chunk +0 lines, -104 lines 0 comments Download
M cros_mark_as_stable.py View 1 2 3 4 8 chunks +170 lines, -54 lines 0 comments Download
M cros_mark_as_stable_unittest.py View 1 2 3 7 chunks +86 lines, -61 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
David James
10 years, 2 months ago (2010-10-15 04:25:01 UTC) #1
sosa
Mostly nits to start off with. Sorry I haven't gotten to it completely yet. Was ...
10 years, 2 months ago (2010-10-16 00:08:29 UTC) #2
David James
PTAL http://codereview.chromium.org/3798003/diff/1/2 File cros_mark_all_as_stable (right): http://codereview.chromium.org/3798003/diff/1/2#newcode1 cros_mark_all_as_stable:1: #!/bin/bash On 2010/10/16 00:08:29, sosa wrote: > Why ...
10 years, 2 months ago (2010-10-20 23:15:33 UTC) #3
sosa
http://codereview.chromium.org/3798003/diff/11001/12001 File bin/cbuildbot.py (left): http://codereview.chromium.org/3798003/diff/11001/12001#oldcode199 bin/cbuildbot.py:199: '--commit_ids="%s"' % commit_str, Why did you take this out? ...
10 years, 2 months ago (2010-10-21 00:06:15 UTC) #4
David James
PTAL http://codereview.chromium.org/3798003/diff/11001/12001 File bin/cbuildbot.py (left): http://codereview.chromium.org/3798003/diff/11001/12001#oldcode199 bin/cbuildbot.py:199: '--commit_ids="%s"' % commit_str, On 2010/10/21 00:06:16, sosa wrote: ...
10 years, 2 months ago (2010-10-21 07:06:47 UTC) #5
sosa
LGTM w/ nits http://codereview.chromium.org/3798003/diff/11001/12004 File cros_mark_as_stable.py (right): http://codereview.chromium.org/3798003/diff/11001/12004#newcode148 cros_mark_as_stable.py:148: for root, dirs, files in os.walk(overlay): ...
10 years, 2 months ago (2010-10-21 17:10:57 UTC) #6
sosa
10 years, 2 months ago (2010-10-21 20:14:37 UTC) #7
Hey David, I just realized that --all will fail to push if there are no changes
to push.  Can you add some logic either in Push or Commit that either doesn't
create a stabilizing branch if there are no ebuilds to rev (in the current logic
you could do this by deleting the branch OR change push to check to see if there
are any commits in the branch.

Powered by Google App Engine
This is Rietveld 408576698