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

Issue 2827037: Add --fast to build_image (Closed)

Created:
10 years, 5 months ago by Nick Sanders
Modified:
9 years, 7 months ago
CC:
chromium-os-reviews_chromium.org, Mandeep Singh Baines, anush, sosa
Base URL:
ssh://gitrw.chromium.org/crosutils.git
Visibility:
Public.

Description

Add --fast to build_image Include checked in parallel emerge, with an optional (default false) argument in build_image to turn it on. BUG=None TEST="Run build_image --fast"

Patch Set 1 #

Patch Set 2 : 80 char #

Total comments: 72

Patch Set 3 : lint a lot #

Patch Set 4 : untypo #

Patch Set 5 : todo #

Patch Set 6 : .. #

Total comments: 7
Unified diffs Side-by-side diffs Delta from patch set Stats (+615 lines, -4 lines) Patch
M build_image View 1 2 3 2 chunks +5 lines, -4 lines 0 comments Download
A parallel_emerge View 1 2 3 4 5 1 chunk +610 lines, -0 lines 7 comments Download

Messages

Total messages: 9 (0 generated)
Nick Sanders
10 years, 5 months ago (2010-06-30 05:52:06 UTC) #1
sosa
Please run pylint on parallel_emerge http://codereview.chromium.org/2827037/diff/2001/3002 File parallel_emerge (right): http://codereview.chromium.org/2827037/diff/2001/3002#newcode39 parallel_emerge:39: import sys, os, subprocess, ...
10 years, 5 months ago (2010-06-30 06:22:13 UTC) #2
davidjames
http://codereview.chromium.org/2827037/diff/2001/3002 File parallel_emerge (right): http://codereview.chromium.org/2827037/diff/2001/3002#newcode49 parallel_emerge:49: secret_deps = {'dev-java/bcel': 'dev-java/java-config', Is this one still necessary, ...
10 years, 5 months ago (2010-06-30 06:48:51 UTC) #3
davidjames
http://codereview.chromium.org/2827037/diff/2001/3002 File parallel_emerge (right): http://codereview.chromium.org/2827037/diff/2001/3002#newcode368 parallel_emerge:368: # an actual install. On 2010/06/30 06:48:51, davidjames wrote: ...
10 years, 5 months ago (2010-06-30 07:00:01 UTC) #4
Mandeep Singh Baines
http://codereview.chromium.org/2827037/diff/2001/3001 File build_image (right): http://codereview.chromium.org/2827037/diff/2001/3001#newcode81 build_image:81: EMERGE_BOARD_CMD="$(dirname $0)/parallel_emerge --board=${FLAGS_board}" Convention is: "${SCRIPTS_DIR}"/parallel_emerge
10 years, 5 months ago (2010-06-30 16:28:19 UTC) #5
Nick Sanders
Also added delayed retry from David's patch. http://codereview.chromium.org/2827037/diff/2001/3001 File build_image (right): http://codereview.chromium.org/2827037/diff/2001/3001#newcode81 build_image:81: EMERGE_BOARD_CMD="$(dirname $0)/parallel_emerge ...
10 years, 5 months ago (2010-07-01 05:21:44 UTC) #6
davidjames
LGTM! Verified that build_packages --nousepkg --fast succeeds with this change.
10 years, 5 months ago (2010-07-01 06:20:49 UTC) #7
sosa
FYI: When you have multiple reviewers that have made comments, please do not commit until ...
10 years, 5 months ago (2010-07-01 18:40:25 UTC) #8
sosa
10 years, 5 months ago (2010-07-01 18:56:23 UTC) #9
Should be addressed in a sep CL

http://codereview.chromium.org/2827037/diff/22001/23002
File parallel_emerge (right):

http://codereview.chromium.org/2827037/diff/22001/23002#newcode1
parallel_emerge:1: #!/usr/bin/python2.6
Please refactor this to cros_parallel_emerge and modify build_image accordingly.

http://codereview.chromium.org/2827037/diff/22001/23002#newcode44
parallel_emerge:44: import os
These are not in alphabetical order.

http://codereview.chromium.org/2827037/diff/22001/23002#newcode70
parallel_emerge:70: # environment veriables.
variables*

http://codereview.chromium.org/2827037/diff/22001/23002#newcode480
parallel_emerge:480: """Mark a target as completed and unblock dependecies."""
misspelling of dependencies

http://codereview.chromium.org/2827037/diff/22001/23002#newcode586
parallel_emerge:586: # Main control code.
Re-write to a main function

http://codereview.chromium.org/2827037/diff/22001/23002#newcode588
parallel_emerge:588: PACKAGE, EMERGE_ARGS, BOARD = ParseArgs(sys.argv)
I do not think it's good style or necessary to make all these globals

http://codereview.chromium.org/2827037/diff/22001/23002#newcode610
parallel_emerge:610: 
Use standard if name == '__main__' construct

Powered by Google App Engine
This is Rietveld 408576698