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

Issue 6691047: Merge MVP script into cbuildbot. (Closed)

Created:
9 years, 8 months ago by dgarrett
Modified:
9 years, 7 months ago
Reviewers:
Raja Aluri, djmm, sosa
CC:
chromium-os-reviews_chromium.org, sosa
Visibility:
Public.

Description

Merge MVP script into cbuildbot. This is done by adding two new configuration options: git_url -- git repository URL for our manifests. manifest_version -- Per-build manifest to be stored in GIT The first defaults to the external git url, and is used for fetching code most of the time. The second, if not None is the git URL for fetching/storing detailed manifest files and the associated build status. The new file manifest_version.py is a copy (plus edits) of mvp.py from crostools. It's mostly unchanged, except for some minimalization of argument lists and the addition of a 'debug' concept, which means to not push changes to git repositories. This debug concept is controlled by the cbuildbot --debug command line option. A few new unit tests were added, but not enough over all. BUG=chromium-os:12467 TEST= Committed: http://chrome-svn/viewvc/chromeos?view=rev&revision=f3eac24

Patch Set 1 #

Patch Set 2 : Include local changes to MVP. #

Patch Set 3 : Checkpoint, working. #

Patch Set 4 : Checkpoint a working version. #

Patch Set 5 : Build status reported though manifest repo correctly. #

Patch Set 6 : Clean up cbuildbot side #

Patch Set 7 : More cbuildbot cleanup. Rename options, add stages_unittests #

Patch Set 8 : Fix up manifest_version docstrings and limited unittesting #

Total comments: 25

Patch Set 9 : Implement Debug option for manifest_version #

Total comments: 7

Patch Set 10 : Fix review problems. #

Total comments: 10

Patch Set 11 : Fix review problems. #

Patch Set 12 : Fix glitch in last review fixes. #

Patch Set 13 : Manifest error reporting was in the wrong place #

Patch Set 14 : Rename debug args to dry_run. Raja said 'too generic' #

Total comments: 26

Patch Set 15 : Specifigy dry_run arguments names so they are used for use_repo. #

Patch Set 16 : renamed board -> build_name, fix dry_run bug, fixed nits. #

Total comments: 5

Patch Set 17 : Fix handling of simple tracking branches. Ooga_booga versus Ooga/Booga #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1206 lines, -10 lines) Patch
M buildbot/cbuildbot.py View 1 2 3 4 5 6 7 8 9 10 11 12 5 chunks +26 lines, -6 lines 0 comments Download
M buildbot/cbuildbot_commands.py View 1 2 3 4 5 6 7 8 9 10 1 chunk +26 lines, -0 lines 0 comments Download
M buildbot/cbuildbot_config.py View 1 2 3 4 5 6 7 8 9 3 chunks +21 lines, -0 lines 0 comments Download
M buildbot/cbuildbot_stages.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 3 chunks +72 lines, -2 lines 0 comments Download
M buildbot/cbuildbot_stages_unittest.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 5 chunks +151 lines, -1 line 0 comments Download
A buildbot/manifest_version.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +801 lines, -0 lines 0 comments Download
A buildbot/manifest_version_unittest.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +105 lines, -0 lines 0 comments Download
M lib/cros_build_lib.py View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -1 line 0 comments Download

Messages

Total messages: 20 (0 generated)
dgarrett
This is NOT a real request for review, but just me showing off how I'm ...
9 years, 8 months ago (2011-04-04 23:17:12 UTC) #1
dgarrett
9 years, 8 months ago (2011-04-04 23:17:47 UTC) #2
dgarrett
Okay, really ready to start reviewing. It was uploaded in stages, the original manifest_versions.py is ...
9 years, 8 months ago (2011-04-08 22:27:39 UTC) #3
dgarrett
I'm... I missed something. Updating another fix as soon as the test run finishes (and ...
9 years, 8 months ago (2011-04-08 23:21:41 UTC) #4
dgarrett
PTAL, I fixed the --dry_run usage that was hard coded, and instead tied it to ...
9 years, 8 months ago (2011-04-08 23:41:33 UTC) #5
sosa
http://codereview.chromium.org/6691047/diff/11001/buildbot/cbuildbot.py File buildbot/cbuildbot.py (right): http://codereview.chromium.org/6691047/diff/11001/buildbot/cbuildbot.py#newcode94 buildbot/cbuildbot.py:94: stages.ManifestVersionedSyncCompletionStage(bot_id, indentation is wrong here http://codereview.chromium.org/6691047/diff/11001/buildbot/cbuildbot.py#newcode100 buildbot/cbuildbot.py:100: # Send ...
9 years, 8 months ago (2011-04-11 19:03:54 UTC) #6
dgarrett
Thanks for the review! Here are the fixes. http://codereview.chromium.org/6691047/diff/11001/buildbot/cbuildbot.py File buildbot/cbuildbot.py (right): http://codereview.chromium.org/6691047/diff/11001/buildbot/cbuildbot.py#newcode94 buildbot/cbuildbot.py:94: stages.ManifestVersionedSyncCompletionStage(bot_id, ...
9 years, 8 months ago (2011-04-11 20:53:13 UTC) #7
sosa
Raja can you comment on the patches to mvp? http://codereview.chromium.org/6691047/diff/11001/buildbot/cbuildbot.py File buildbot/cbuildbot.py (right): http://codereview.chromium.org/6691047/diff/11001/buildbot/cbuildbot.py#newcode100 buildbot/cbuildbot.py:100: ...
9 years, 8 months ago (2011-04-11 23:34:01 UTC) #8
Raja Aluri
Looking... Raja On Mon, Apr 11, 2011 at 4:34 PM, <sosa@chromium.org> wrote: > Raja can ...
9 years, 8 months ago (2011-04-11 23:36:29 UTC) #9
Raja Aluri
1) If we could some how set a class level variable for dry_run, that would ...
9 years, 8 months ago (2011-04-12 23:16:43 UTC) #10
dgarrett
http://codereview.chromium.org/6691047/diff/15005/buildbot/cbuildbot_commands.py File buildbot/cbuildbot_commands.py (right): http://codereview.chromium.org/6691047/diff/15005/buildbot/cbuildbot_commands.py#newcode142 buildbot/cbuildbot_commands.py:142: #print 'MANIFEST:' + manifest; On 2011/04/11 23:34:01, sosa wrote: ...
9 years, 8 months ago (2011-04-12 23:21:56 UTC) #11
Raja Aluri
http://codereview.chromium.org/6691047/diff/13004/buildbot/manifest_version.py File buildbot/manifest_version.py (right): http://codereview.chromium.org/6691047/diff/13004/buildbot/manifest_version.py#newcode572 buildbot/manifest_version.py:572: PushChanges(os.path.dirname(version_info.version_file), message, On 2011/04/12 23:21:56, dgarrett wrote: > This ...
9 years, 8 months ago (2011-04-12 23:26:04 UTC) #12
dgarrett
Raja, I'm finding a call path that seems incorrect to me, but which I don't ...
9 years, 8 months ago (2011-04-12 23:39:27 UTC) #13
dgarrett
Found it. I was passing dry_run along as a positional argument and it was ending ...
9 years, 8 months ago (2011-04-13 01:11:19 UTC) #14
dgarrett
Okay, I think it's ready to go in now, if everyone agrees. http://codereview.chromium.org/6691047/diff/13004/buildbot/manifest_version.py File buildbot/manifest_version.py ...
9 years, 8 months ago (2011-04-13 17:55:18 UTC) #15
sosa
LGTM with a cpl nits http://codereview.chromium.org/6691047/diff/21002/buildbot/cbuildbot_stages.py File buildbot/cbuildbot_stages.py (right): http://codereview.chromium.org/6691047/diff/21002/buildbot/cbuildbot_stages.py#newcode290 buildbot/cbuildbot_stages.py:290: if not branch[1]: if ...
9 years, 8 months ago (2011-04-13 18:35:10 UTC) #16
Raja Aluri
LGTM
9 years, 8 months ago (2011-04-13 18:51:33 UTC) #17
dgarrett
Okay, this change addresses Chris's concerns about branch name handling. I want to be clear ...
9 years, 8 months ago (2011-04-13 20:57:35 UTC) #18
djmm
http://codereview.chromium.org/6691047/diff/21002/buildbot/cbuildbot_stages.py File buildbot/cbuildbot_stages.py (right): http://codereview.chromium.org/6691047/diff/21002/buildbot/cbuildbot_stages.py#newcode290 buildbot/cbuildbot_stages.py:290: if not branch[1]: On 2011/04/13 20:57:35, dgarrett wrote: > ...
9 years, 8 months ago (2011-04-14 00:37:49 UTC) #19
dgarrett
9 years, 8 months ago (2011-04-14 00:44:03 UTC) #20
Excellent, thanks!

Powered by Google App Engine
This is Rietveld 408576698