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

Issue 5172003: The major change is refactoring to make functions more accessible for other modules. (Closed)

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

Description

The major change is refactoring to make functions more accessible for other modules. Besides changing a lot of _ to not _, I added lots of docstrings, moved things around, factored out the Marking component of the EBuildStableMarker (for use with other CL), and fixed the version logic. The versioning logic was too hacktastic. So I took a note from David's changes to take the information from pkgsplit rather than doing the ugly parsing I was doing before. This is much more robust in the case of no _r*'s and _rc or _alpha*, etc. This CL also adds the ability to test Push changes in 2 ways. One using --dryrun which allows someone to call it by not actually push to the remote server and two, a unit test for the Push method. Used in http://codereview.chromium.org/4798001/ BUG=chromiumos:8693 TEST=Ran unit tests and chrome mark as stable. Will run some more tests. Committed: http://chrome-svn/viewvc/chromeos?view=rev&revision=be485ce Committed: http://chrome-svn/viewvc/chromeos?view=rev&revision=3e68973

Patch Set 1 #

Patch Set 2 : white space #

Total comments: 1

Patch Set 3 : Rebase + remove \ #

Patch Set 4 : Fixes for push logic. #

Patch Set 5 : Remove print #

Patch Set 6 : Added dryrun option and tested with it #

Patch Set 7 : Move to using --dry-run #

Total comments: 1

Patch Set 8 : Add unittest for push #

Patch Set 9 : Fixed nit #

Patch Set 10 : Re-add option #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+226 lines, -205 lines) Patch
M cros_mark_as_stable.py View 1 2 3 4 5 6 7 8 9 19 chunks +152 lines, -143 lines 1 comment Download
M cros_mark_as_stable_unittest.py View 1 2 3 4 5 6 7 12 chunks +74 lines, -62 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
sosa
10 years, 1 month ago (2010-11-18 00:40:03 UTC) #1
davidjames
LGTM w/nit http://codereview.chromium.org/5172003/diff/2001/cros_mark_as_stable.py File cros_mark_as_stable.py (right): http://codereview.chromium.org/5172003/diff/2001/cros_mark_as_stable.py#newcode415 cros_mark_as_stable.py:415: Extra newline.
10 years, 1 month ago (2010-11-18 21:56:32 UTC) #2
sosa
PTAL. Fixes for the push issues are here. You can see these in diffs 3 ...
10 years, 1 month ago (2010-11-19 00:26:22 UTC) #3
sosa
PTAL added a dryrun flag
10 years, 1 month ago (2010-11-19 00:36:05 UTC) #4
sosa
PTAL, actually call git push --dry-run rather than not at all
10 years, 1 month ago (2010-11-19 00:43:44 UTC) #5
davidjames
Only got some nits here. Could you add a unit test for pushing, since that's ...
10 years, 1 month ago (2010-11-19 00:58:41 UTC) #6
sosa
PTAL Fixed nit and added unit test
10 years, 1 month ago (2010-11-19 01:20:49 UTC) #7
davidjames
Could you update the change description above to indicate the tests you mentioned over chat? ...
10 years, 1 month ago (2010-11-19 01:24:06 UTC) #8
sosa
Sure thing. Thanks for the review.
10 years, 1 month ago (2010-11-19 01:30:51 UTC) #9
davidjames
http://codereview.chromium.org/5172003/diff/35001/cros_mark_as_stable.py File cros_mark_as_stable.py (right): http://codereview.chromium.org/5172003/diff/35001/cros_mark_as_stable.py#newcode34 cros_mark_as_stable.py:34: 'Options to use with git-cl push using push command.') ...
10 years, 1 month ago (2010-11-19 18:17:27 UTC) #10
sosa
10 years, 1 month ago (2010-11-19 18:34:24 UTC) #11
I already am getting ready a CL for 2 and 3.  I'll work on 1, sorry about that.

On Fri, Nov 19, 2010 at 10:17 AM,  <davidjames@chromium.org> wrote:
>
> http://codereview.chromium.org/5172003/diff/35001/cros_mark_as_stable.py
> File cros_mark_as_stable.py (right):
>
>
http://codereview.chromium.org/5172003/diff/35001/cros_mark_as_stable.py#newc...
> cros_mark_as_stable.py:34: 'Options to use with git-cl push using push
> command.')
> Thanks! I know this is already submitted but I have two suggestions that
> we can address later:
>  1) Somehow I didn't notice that you had deleted this option. For future
> changes, could you mention all changes you make in the log message? That
> way I'll be able to review it.
>  2) Could you update --debug mode for cbuildbot.py to actually call
> cros_mark_as_stable.py push with the --dryrun option? That way, we'll
> get more testing for the options supplied to push.
>  3) Once you do (2) it'd be fine to remove push_options in both places
> (cbuildbot.py and cros_mark_as_stable.py)
>
> http://codereview.chromium.org/5172003/
>

Powered by Google App Engine
This is Rietveld 408576698