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

Issue 506863005: [NaCl SDK] getos.py now checks against the Cr-Commit-Position. (Closed)

Created:
6 years, 3 months ago by Matt Giuca
Modified:
6 years, 2 months ago
Reviewers:
binji, Sam Clegg
CC:
chromium-reviews, binji+watch_chromium.org, chrome-apps-syd-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@sbc-nacl-sdk-fix-getos-tests
Project:
chromium
Visibility:
Public.

Description

[NaCl SDK] getos.py now checks against the Cr-Commit-Position. Previously, it only checked the major version number (this was a regression as a result of switching to Git). Also abstracted version checking to a testable CheckVersion function, and added tests for ParseVersion and CheckVersion. Also added better documentation everywhere about the format of the --check-version option. BUG=406993 Committed: https://crrev.com/4466a650fd2fc808860a136dc00431bf82152e68 Cr-Commit-Position: refs/heads/master@{#296618}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Major rewrite; actually check the commit position. #

Patch Set 3 : Use tuples for comparison. #

Total comments: 3

Patch Set 4 : Indentation. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+67 lines, -13 lines) Patch
M native_client_sdk/src/tools/common.mk View 1 1 chunk +3 lines, -0 lines 0 comments Download
M native_client_sdk/src/tools/getos.py View 1 2 3 5 chunks +25 lines, -10 lines 0 comments Download
M native_client_sdk/src/tools/tests/getos_test.py View 1 1 chunk +39 lines, -3 lines 0 comments Download

Messages

Total messages: 19 (1 generated)
Matt Giuca
mgiuca@chromium.org changed reviewers: + binji@chromium.org, sbc@chromium.org
6 years, 3 months ago (2014-08-27 00:56:39 UTC) #1
Matt Giuca
Hey guys, Follow up to https://codereview.chromium.org/507673003/ to get a bit better testing on getos.
6 years, 3 months ago (2014-08-27 00:56:39 UTC) #2
binji
https://codereview.chromium.org/506863005/diff/1/native_client_sdk/src/tools/tests/getos_test.py File native_client_sdk/src/tools/tests/getos_test.py (right): https://codereview.chromium.org/506863005/diff/1/native_client_sdk/src/tools/tests/getos_test.py#newcode130 native_client_sdk/src/tools/tests/getos_test.py:130: actual_version = (16, '0a1b2c3d') See https://codereview.chromium.org/507883003/ I don't think ...
6 years, 3 months ago (2014-08-27 01:05:02 UTC) #3
Matt Giuca
https://codereview.chromium.org/506863005/diff/1/native_client_sdk/src/tools/tests/getos_test.py File native_client_sdk/src/tools/tests/getos_test.py (right): https://codereview.chromium.org/506863005/diff/1/native_client_sdk/src/tools/tests/getos_test.py#newcode130 native_client_sdk/src/tools/tests/getos_test.py:130: actual_version = (16, '0a1b2c3d') Oh OK, cool. I was ...
6 years, 3 months ago (2014-08-27 01:17:50 UTC) #4
Matt Giuca
PTAL (note that this no longer just adds testing, but also fixes the checking behaviour). ...
6 years, 3 months ago (2014-09-18 02:59:05 UTC) #5
Matt Giuca
Ping.
6 years, 3 months ago (2014-09-22 00:56:44 UTC) #6
Sam Clegg
lgtm https://codereview.chromium.org/506863005/diff/40001/native_client_sdk/src/tools/getos.py File native_client_sdk/src/tools/getos.py (right): https://codereview.chromium.org/506863005/diff/40001/native_client_sdk/src/tools/getos.py#newcode207 native_client_sdk/src/tools/getos.py:207: Cr-Commit-Position number. I think docstrings use 2-space indentation ...
6 years, 3 months ago (2014-09-22 17:34:46 UTC) #7
binji
The only concern I have here is that the "revision" number changes meaning between trunk ...
6 years, 3 months ago (2014-09-22 17:40:08 UTC) #8
Matt Giuca
On 2014/09/22 17:40:08, binji wrote: > The only concern I have here is that the ...
6 years, 3 months ago (2014-09-23 01:07:36 UTC) #9
Sam Clegg
https://codereview.chromium.org/506863005/diff/40001/native_client_sdk/src/tools/getos.py File native_client_sdk/src/tools/getos.py (right): https://codereview.chromium.org/506863005/diff/40001/native_client_sdk/src/tools/getos.py#newcode207 native_client_sdk/src/tools/getos.py:207: Cr-Commit-Position number. On 2014/09/23 01:07:36, Matt Giuca wrote: > ...
6 years, 3 months ago (2014-09-23 01:11:24 UTC) #10
binji
On 2014/09/23 01:07:36, Matt Giuca wrote: > On 2014/09/22 17:40:08, binji wrote: > > The ...
6 years, 3 months ago (2014-09-23 22:55:28 UTC) #11
Sam Clegg
On 2014/09/23 22:55:28, binji wrote: > On 2014/09/23 01:07:36, Matt Giuca wrote: > > On ...
6 years, 3 months ago (2014-09-23 23:07:36 UTC) #12
Matt Giuca
So can we have a decision?
6 years, 3 months ago (2014-09-24 08:11:08 UTC) #13
Sam Clegg
On 2014/09/24 08:11:08, Matt Giuca wrote: > So can we have a decision? Seems to ...
6 years, 2 months ago (2014-09-24 16:47:05 UTC) #14
binji
OK, lgtm
6 years, 2 months ago (2014-09-24 16:58:05 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/506863005/60001
6 years, 2 months ago (2014-09-25 00:15:10 UTC) #17
commit-bot: I haz the power
Committed patchset #4 (id:60001) as dd750112e99a42c009e23b8262686faf0940298e
6 years, 2 months ago (2014-09-25 01:49:11 UTC) #18
commit-bot: I haz the power
6 years, 2 months ago (2014-09-25 01:49:50 UTC) #19
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/4466a650fd2fc808860a136dc00431bf82152e68
Cr-Commit-Position: refs/heads/master@{#296618}

Powered by Google App Engine
This is Rietveld 408576698