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

Issue 6005004: WIP Chromite supporting "LEGACY" mode, as requested by Anush. (Closed)

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

Description

WIP Chromite supporting "LEGACY" mode, as requested by Anush. This version of chromite supports the following features: 1. Can be run from inside or outside the chroot. 2. CWD can be anything when chromite is run. 3. The chromite.sh script can be installed to the root of the checkout (using repo's copyfile mechanism) so we can run without needing to be in src/scripts 4. Current commands are build, clean, distclean, ebuild, emerge, equery, portageq, shell, workon. 5. Build spec files can be named on command line using any substring. 6. Build commands can be named on command line using any prefix. 7. Menu driven for easy discovery. 8. Chroot specs can be specified for any command with --chroot, which must be the first thing on the command line (so it's not interpreted as the arg to sub commands). By default, the 'chroot.spec' is used. BUG=chromium-os:10556 TEST=Ran chromite_unittest.py; played w/ various commands.

Patch Set 1 #

Total comments: 1

Patch Set 2 : Reverted accidentally checked in file. #

Patch Set 3 : Renamed chromite to have .py and added symlink. #

Patch Set 4 : Use Info instead of printing to stderr. #

Total comments: 68

Patch Set 5 : Adress sosa's code review, except for unit tests. #

Patch Set 6 : Fixed pylint errors. #

Patch Set 7 : First pass at unit tests, plus other small fixes. #

Patch Set 8 : Major changes after Anush review; fixed bug creating chroot. #

Patch Set 9 : Fixed unit tests w/ new chromite changes. #

Patch Set 10 : Removed 'HOST' option when looking for chroot specs. #

Total comments: 70

Patch Set 11 : Fixes for sosa's code review comments. #

Total comments: 2

Patch Set 12 : More sosa feedback; put dummy sections in specs for anush; fixed unit tests. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1812 lines, -125 lines) Patch
A chromite/chromite View 1 2 1 chunk +0 lines, -59 lines 0 comments Download
chromite/chromite View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
A chromite/chromite.py View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1064 lines, -0 lines 0 comments Download
A chromite/chromite.sh View 1 chunk +15 lines, -0 lines 0 comments Download
A chromite/chromite_unittest.py View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +389 lines, -0 lines 0 comments Download
M chromite/lib/cros_build_lib.py View 1 2 3 4 5 6 7 4 chunks +17 lines, -3 lines 0 comments Download
A chromite/lib/text_menu.py View 1 2 3 4 5 1 chunk +194 lines, -0 lines 0 comments Download
A chromite/specs/build/_defaults View 1 2 3 4 5 6 7 1 chunk +39 lines, -0 lines 0 comments Download
A chromite/specs/build/tegra2_seaboard.spec View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +10 lines, -0 lines 0 comments Download
A chromite/specs/build/x86-agz.spec View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +10 lines, -0 lines 0 comments Download
A chromite/specs/build/x86-dogfood.spec View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +10 lines, -0 lines 0 comments Download
A chromite/specs/build/x86-generic.spec View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +10 lines, -0 lines 0 comments Download
A chromite/specs/build/x86-mario.spec View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +10 lines, -0 lines 0 comments Download
A chromite/specs/build/x86-pineview.spec View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +10 lines, -0 lines 0 comments Download
A chromite/specs/chroot/_defaults View 1 2 3 4 5 6 7 1 chunk +28 lines, -0 lines 0 comments Download
A chromite/specs/chroot/chroot.spec View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +5 lines, -0 lines 0 comments Download
D chromite/specs/x86-generic.spec View 1 chunk +0 lines, -63 lines 0 comments Download

Messages

Total messages: 22 (0 generated)
diandersAtChromium
Anush, Here's a first pass on the 'LEGACY' support to Chromite. PTAL. I'm sure that ...
10 years ago (2010-12-22 21:51:46 UTC) #1
sosa
Few drive-by comments (I can do a fuller review if you want). Please add unit ...
10 years ago (2010-12-22 22:01:27 UTC) #2
sosa
Also, I'd run gpylint on this and where applicable modify your code to somewhat conform ...
10 years ago (2010-12-22 22:02:09 UTC) #3
diandersAtChromium
Chris, Thanks! Feel free to do a more thorough code review. There's a lot of ...
10 years ago (2010-12-22 22:23:04 UTC) #4
anush
I opened 10556 for this work. Chris - please do give it a full review. ...
10 years ago (2010-12-23 00:36:28 UTC) #5
sosa
Haven't had a chance to look at TextMenu yet. But here is my initial thoughts. ...
10 years ago (2010-12-23 01:52:27 UTC) #6
kliegs
I recall seeing a document describing the goals of chromite a few months ago and ...
10 years ago (2010-12-23 17:42:00 UTC) #7
anush
On Thu, Dec 23, 2010 at 9:42 AM, <kliegs@chromium.org> wrote: > I recall seeing a ...
9 years, 12 months ago (2010-12-28 22:02:49 UTC) #8
anush
On Wed, Dec 22, 2010 at 5:52 PM, <sosa@chromium.org> wrote: > Haven't had a chance ...
9 years, 12 months ago (2010-12-28 22:05:52 UTC) #9
diandersAtChromium
Did these things: * Addressed sosa's code review (still need to add unit test) * ...
9 years, 11 months ago (2011-01-06 00:23:23 UTC) #10
diandersAtChromium
...on second thought, maybe best to hold off on reviewing stuff. To add 'emerge', 'ebuild', ...
9 years, 11 months ago (2011-01-06 00:56:41 UTC) #11
diandersAtChromium
OK folks, I think I'm about done with working on this. I think this implements ...
9 years, 11 months ago (2011-01-08 02:31:26 UTC) #12
sosa
This is a LOT of code. Can you specifically subdivision which of the reviewers you ...
9 years, 11 months ago (2011-01-10 18:38:27 UTC) #13
kliegs
I suspect I'm going to be unpopular but I have to ask what the actual ...
9 years, 11 months ago (2011-01-10 18:47:03 UTC) #14
sosa
Major comments: 1) Modularize-code. I suggest classes for all your commands and suggested some methods ...
9 years, 11 months ago (2011-01-11 04:44:22 UTC) #15
anush
On Mon, Jan 10, 2011 at 8:44 PM, <sosa@chromium.org> wrote: > Major comments: > > ...
9 years, 11 months ago (2011-01-11 18:46:22 UTC) #16
sosa
I honestly think if we have developers who don't know what the chroot is, they ...
9 years, 11 months ago (2011-01-11 21:38:52 UTC) #17
diandersAtChromium
Responded to sosa's comments (4 in patch set 4, 30 in patch set 10) and ...
9 years, 11 months ago (2011-01-12 00:04:45 UTC) #18
sosa
Nits. LGTM once you address them.a On a side note, if I don't respond in ...
9 years, 11 months ago (2011-01-13 19:07:04 UTC) #19
diandersAtChromium
Addressed sosa's latest comments in code and responded in code review. Added blank sections to ...
9 years, 11 months ago (2011-01-13 21:26:50 UTC) #20
sosa
SGTM, LGTM On Thu, Jan 13, 2011 at 1:26 PM, <dianders@chromium.org> wrote: > Addressed sosa's ...
9 years, 11 months ago (2011-01-13 22:06:46 UTC) #21
diandersAtChromium
9 years, 11 months ago (2011-01-18 21:48:33 UTC) #22
FYI: committed as:

http://codereview.chromium.org/6343001/ - cros_build_lib stuff
http://codereview.chromium.org/6334003/ - text Menu
http://codereview.chromium.org/6308007/ - main chromite change.

I will mark this change as abandoned.

Powered by Google App Engine
This is Rietveld 408576698