Commit Graph

14 Commits

Author SHA1 Message Date
Chris Sosa
3e689730e4 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

Review URL: http://codereview.chromium.org/5172003

Change-Id: I6d1231c6f46d8cc2e5fb57d04f2d3417cfbfb4f8
2010-11-19 07:29:10 -08:00
Chris Sosa
c8d611583a Revert "The major change is refactoring to make functions more accessible for other modules."
This reverts commit be485ced43.

TBR=

Change-Id: I43d753d7e5171bba81ee39fab81a7b831b4711ae
2010-11-18 18:10:51 -08:00
Chris Sosa
be485ced43 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.

Review URL: http://codereview.chromium.org/5172003

Change-Id: I4319dcd3a4235474ecfd61c680a5242bab5bd00b
2010-11-18 17:33:07 -08:00
Chris Sosa
9b054f0f88 Revert "The major change is refactoring to make functions more accessible for other modules."
This reverts commit 118629dae8.

Revert "Remove _ to fix tree."

This reverts commit a74ee71048.

Revert "Missed tracking branch to re-open tree."

This reverts commit 0b9f24e9be.

TBR=davidjames

Change-Id: Ic7057cd2a01e192ec78dd729a1f3eac7835b96c7
2010-11-18 15:57:20 -08:00
Chris Sosa
118629dae8 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.

Used in http://codereview.chromium.org/4798001/

BUG=chromiumos:8693
TEST=Ran unit tests and chrome mark as stable.  Will run some more tests.

Review URL: http://codereview.chromium.org/5172003

Change-Id: Id6ef9a480591d1a28352f360c6d076564b43e318
2010-11-18 14:35:59 -08:00
Chris Sosa
de285e0238 Add 0.0.1 logic to new cros_mark.
Change-Id: I413d21dd60ce822af65d5c7c22fd2dba67858d43

BUG=6113
TEST=Ran unit tests and also created my own 9999 ebuild and ran with --all and
saw 0.0.1-r1.ebuild get created in stabilizing_branch

Review URL: http://codereview.chromium.org/4449001
2010-11-04 13:03:33 -07:00
Chris Sosa
6b6f35ec65 Always pass board to cros_mark_as_stable.
Change-Id: I9a724e4e20b8945fdaa1dc53afdddf2477a5bbab

BUG=
TEST=Ran unit tests.

Review URL: http://codereview.chromium.org/3956007
2010-10-22 16:14:36 -07:00
David James
6be0f08169 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

Review URL: http://codereview.chromium.org/3798003
2010-10-21 16:11:00 -07:00
David James
4a71ea31cb Update cros_mark_as_stable.py to also update the private overlay
BUG=chromium-os:7218
TEST=./cros_mark_all_as_stable --tracking_branch=cros/master

Change-Id: I0f7c4e2d2aa4fc6325721901a710bfc33fa39a91

Review URL: http://codereview.chromium.org/3516025
2010-10-14 14:03:18 -07:00
David James
3a4a6bbfb9 Update cros_mark_as_stable_unittest.py to pass again.
cros_mark_as_stable.py was updated on Sep 8, but the unit test was not updated
to match. This patch fixes the unit test.

BUG=chromium-os:7586
TEST=Ran unit test.

Change-Id: I283ef33e172a95efc41b4090dc4f67c9d84dd9a3

Review URL: http://codereview.chromium.org/3682003
2010-10-11 09:59:39 -07:00
Chris Sosa
70e2c9e72a Move RunCommand, and Info/Warning/Die into common pylib
TEST=Ran all commands that used RunCommand or Die with
their associated unittests.

Review URL: http://codereview.chromium.org/3266004
2010-08-30 11:05:50 -07:00
Mandeep Singh Baines
9f8e53b27b cros_mark_as_stable: fix unittests
Code was changed to add a CR. Fix tests to accomodate.

BUG=5258
TEST=Unittests pass again.

Change-Id: Iacdbffb14d14f60a43883db3ee12b99a5eeb9f65

Review URL: http://codereview.chromium.org/3014045
2010-07-30 16:37:45 -07:00
Mandeep Singh Baines
204f44d557 cros_mark_as_stable: fix unittests
BUG=5258
TEST=Unittests now pass.

Change-Id: Ie29a222a2ebe691e251abe21a1b74bd3d48fbfd8

Review URL: http://codereview.chromium.org/3029045
2010-07-30 16:22:18 -07:00
Chris Sosa
bebf3798e5 First cut at stable script
TEST=Tested by using crash-reporter and crash_ids set to "12345"

Review URL: http://codereview.chromium.org/2873016
2010-07-13 15:34:11 -07:00