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

Issue 11228013: [NaCl SDK] Refactor sdk_update*. (Closed)

Created:
8 years, 2 months ago by binji
Modified:
8 years, 1 month ago
Reviewers:
noelallen1, Sam Clegg
CC:
chromium-reviews, pam+watch_chromium.org
Visibility:
Public.

Description

[NaCl SDK] Refactor sdk_update*. Still need to add tests and documentation, but this CL is getting large already. BUG=156766 R=sbc@chromium.org NOTRY=true Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=164998

Patch Set 1 #

Patch Set 2 : tests pass #

Total comments: 24

Patch Set 3 : feedback #

Patch Set 4 : windows fixes #

Total comments: 1

Patch Set 5 : whoops #

Patch Set 6 : fix build_sdk #

Patch Set 7 : fix windows again #

Total comments: 8

Patch Set 8 : feedback #

Patch Set 9 : fix build_updater #

Unified diffs Side-by-side diffs Delta from patch set Stats (+879 lines, -709 lines) Patch
M native_client_sdk/PRESUBMIT.py View 1 2 1 chunk +4 lines, -1 line 0 comments Download
M native_client_sdk/src/build_tools/build_sdk.py View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
M native_client_sdk/src/build_tools/build_updater.py View 1 2 3 4 5 6 7 8 4 chunks +32 lines, -10 lines 0 comments Download
M native_client_sdk/src/build_tools/buildbot_common.py View 1 2 chunks +2 lines, -2 lines 0 comments Download
A + native_client_sdk/src/build_tools/sdk_tools/command/__init__.py View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
A native_client_sdk/src/build_tools/sdk_tools/command/info.py View 1 2 3 4 5 6 7 1 chunk +34 lines, -0 lines 0 comments Download
A native_client_sdk/src/build_tools/sdk_tools/command/list.py View 1 2 3 4 5 6 7 1 chunk +48 lines, -0 lines 0 comments Download
A native_client_sdk/src/build_tools/sdk_tools/command/sources.py View 1 2 3 4 5 6 7 1 chunk +29 lines, -0 lines 0 comments Download
A native_client_sdk/src/build_tools/sdk_tools/command/update.py View 1 2 3 4 5 6 7 1 chunk +238 lines, -0 lines 0 comments Download
A native_client_sdk/src/build_tools/sdk_tools/config.py View 1 chunk +62 lines, -0 lines 0 comments Download
A native_client_sdk/src/build_tools/sdk_tools/download.py View 1 chunk +82 lines, -0 lines 0 comments Download
M native_client_sdk/src/build_tools/sdk_tools/sdk_update.py View 1 1 chunk +1 line, -1 line 0 comments Download
M native_client_sdk/src/build_tools/sdk_tools/sdk_update_common.py View 1 2 3 4 4 chunks +44 lines, -9 lines 0 comments Download
M native_client_sdk/src/build_tools/sdk_tools/sdk_update_main.py View 1 2 3 4 5 6 7 1 chunk +292 lines, -675 lines 0 comments Download
M native_client_sdk/src/build_tools/tests/test_sdktools.py View 1 2 3 3 chunks +8 lines, -9 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
binji
8 years, 2 months ago (2012-10-22 18:30:57 UTC) #1
Sam Clegg
Is it worth avoiding the conflict with the builtin commands.py module? I'm not sure ...
8 years, 2 months ago (2012-10-22 22:55:30 UTC) #2
binji
http://codereview.chromium.org/11228013/diff/5001/native_client_sdk/src/build_tools/build_updater.py File native_client_sdk/src/build_tools/build_updater.py (right): http://codereview.chromium.org/11228013/diff/5001/native_client_sdk/src/build_tools/build_updater.py#newcode45 native_client_sdk/src/build_tools/build_updater.py:45: ('build_tools/sdk_tools/third_party/fancy_urllib/*.py', On 2012/10/22 22:55:30, Sam Clegg wrote: > I ...
8 years, 2 months ago (2012-10-23 00:14:09 UTC) #3
Sam Clegg
lgtm, altough WRT to the wildcard imports I was thinking it would be better to ...
8 years, 2 months ago (2012-10-23 00:39:51 UTC) #4
binji
Significant changes to fix windows. PTAL. WRT "from foo import *", I think in this ...
8 years, 2 months ago (2012-10-23 22:10:56 UTC) #5
Sam Clegg
lgtm http://codereview.chromium.org/11228013/diff/5007/native_client_sdk/src/build_tools/sdk_tools/sdk_update_common.py File native_client_sdk/src/build_tools/sdk_tools/sdk_update_common.py (right): http://codereview.chromium.org/11228013/diff/5007/native_client_sdk/src/build_tools/sdk_tools/sdk_update_common.py#newcode43 native_client_sdk/src/build_tools/sdk_tools/sdk_update_common.py:43: max_tries = 1 If this is hardcoded is ...
8 years, 2 months ago (2012-10-23 22:17:25 UTC) #6
binji
+noelallen Any concerns, Noel? I'm working on tests for this now as a separate CL.
8 years, 1 month ago (2012-10-25 23:24:53 UTC) #7
noelallen1
A few nits otherwise LGTM http://codereview.chromium.org/11228013/diff/18001/native_client_sdk/src/build_tools/sdk_tools/commands/info.py File native_client_sdk/src/build_tools/sdk_tools/commands/info.py (right): http://codereview.chromium.org/11228013/diff/18001/native_client_sdk/src/build_tools/sdk_tools/commands/info.py#newcode8 native_client_sdk/src/build_tools/sdk_tools/commands/info.py:8: __all__ = ['Info'] What ...
8 years, 1 month ago (2012-10-29 23:11:30 UTC) #8
binji
8 years, 1 month ago (2012-10-29 23:51:18 UTC) #9
I've also renamed commands/ -> command/ (to get rid of pylint errors, etc.)

I also import command.foo directly rather that relying on "from import foo *".

http://codereview.chromium.org/11228013/diff/18001/native_client_sdk/src/buil...
File native_client_sdk/src/build_tools/sdk_tools/commands/info.py (right):

http://codereview.chromium.org/11228013/diff/18001/native_client_sdk/src/buil...
native_client_sdk/src/build_tools/sdk_tools/commands/info.py:8: __all__ =
['Info']
On 2012/10/29 23:11:30, noelallen1 wrote:
> What is this exactly?

Removed.

http://codereview.chromium.org/11228013/diff/18001/native_client_sdk/src/buil...
native_client_sdk/src/build_tools/sdk_tools/commands/info.py:24: for key, value
in bundle.iteritems():
On 2012/10/29 23:11:30, noelallen1 wrote:
> Shouldn't these be sorted somehow?

Done.

http://codereview.chromium.org/11228013/diff/18001/native_client_sdk/src/buil...
native_client_sdk/src/build_tools/sdk_tools/commands/info.py:29: for
archive_key, archive_value in archive.iteritems():
On 2012/10/29 23:11:30, noelallen1 wrote:
> You print all archives if one is found for this host, but just print no
archive
> if there isn't one for this host.   Would printing all available archives and
> then an error if no match make more sense?

That's not quite right. I print all members of the host archive, or an error. I
think this is reasonable -- you can only install the HostOS archive. If there is
a bundle available only for another host os, do you really need info about it?

http://codereview.chromium.org/11228013/diff/18001/native_client_sdk/src/buil...
File native_client_sdk/src/build_tools/sdk_tools/commands/list.py (right):

http://codereview.chromium.org/11228013/diff/18001/native_client_sdk/src/buil...
native_client_sdk/src/build_tools/sdk_tools/commands/list.py:48: bundle.name,
On 2012/10/29 23:11:30, noelallen1 wrote:
> What about a note for missing recommended bundles, or deprecated bundles?

That's a good idea, but I'd like to do that in another CL.

Powered by Google App Engine
This is Rietveld 408576698