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

Issue 21537002: Remove hard dependency on bundled python_26 in tests (Closed)

Created:
7 years, 4 months ago by Daniel Bratell
Modified:
7 years, 3 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, msimonides
Base URL:
https://chromium.googlesource.com/chromium/src.git@glyphcache_20130604
Visibility:
Public.

Description

Remove hard dependency on bundled python_26 in tests (solution suggested in https://codereview.chromium.org/16117004/ ) The hardcoded dependency on third_party/python_26 in some unit tests makes it necessary to bundle that python with the test binaries. On other platforms the system python is used and there is no reason Windows can't do the same if one is available. This saves us band-width (25 MB per test machine) when distributing tests. The change is implemented as a removal of the hard coded path in execution and instead it's inserted at the end of the PATH environment variable. That way it will still be used if there is no other python available but otherwise a system python will be used. There is a small risk that the system python is unsuitable but that is a risk we already take on non-Windows platforms. Another solution was discussed in https://codereview.chromium.org/16117004/ before this solution was suggested. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=224096

Patch Set 1 #

Total comments: 6

Patch Set 2 : Using Chromium Types and reusing code. #

Total comments: 15

Patch Set 3 : Addressed some review issues. #

Total comments: 11

Patch Set 4 : Refactored more #

Total comments: 8

Patch Set 5 : Addressed review issues. #

Total comments: 2

Patch Set 6 : Better comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+65 lines, -11 lines) Patch
M net/test/python_utils.cc View 1 2 1 chunk +1 line, -11 lines 0 comments Download
M net/test/spawned_test_server/local_test_server_win.cc View 1 2 3 4 5 3 chunks +64 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
Daniel Bratell
This is a followup to https://codereview.chromium.org/16117004/ but since I'm not Marcin I had to open ...
7 years, 4 months ago (2013-08-01 12:22:05 UTC) #1
Paweł Hajdan Jr.
Approach looks good to me. Some implementation comments. Thank you for the patch! https://codereview.chromium.org/21537002/diff/1/net/test/python_utils.cc File ...
7 years, 4 months ago (2013-08-01 17:56:28 UTC) #2
Daniel Bratell
Uploaded new patch (I will be away a few days so it's possible I'll not ...
7 years, 4 months ago (2013-08-02 07:27:46 UTC) #3
Daniel Bratell
https://codereview.chromium.org/21537002/diff/1/net/test/python_utils.cc File net/test/python_utils.cc (right): https://codereview.chromium.org/21537002/diff/1/net/test/python_utils.cc#newcode111 net/test/python_utils.cc:111: dir = base::FilePath(FILE_PATH_LITERAL("python.exe")); On 2013/08/01 17:56:28, Paweł Hajdan Jr. ...
7 years, 4 months ago (2013-08-02 07:27:53 UTC) #4
Daniel Bratell
phajdan.jr, can you have a look at the updated patch please?
7 years, 4 months ago (2013-08-19 08:19:31 UTC) #5
Paweł Hajdan Jr.
https://codereview.chromium.org/21537002/diff/1/net/test/spawned_test_server/local_test_server_win.cc File net/test/spawned_test_server/local_test_server_win.cc (right): https://codereview.chromium.org/21537002/diff/1/net/test/spawned_test_server/local_test_server_win.cc#newcode98 net/test/spawned_test_server/local_test_server_win.cc:98: AddedPythonPath::AddedPythonPath() : path_modified_(false), old_path_(NULL) { On 2013/08/02 07:27:53, bratell ...
7 years, 4 months ago (2013-08-19 19:16:55 UTC) #6
Daniel Bratell
Everything addressed (I think) except the "use this for other tests as well" which I'm ...
7 years, 4 months ago (2013-08-20 14:33:08 UTC) #7
Daniel Bratell
On 2013/08/19 19:16:55, Paweł Hajdan Jr. wrote: > Let's make the version you created for ...
7 years, 4 months ago (2013-08-21 13:39:17 UTC) #8
Daniel Bratell
On 2013/08/21 13:39:17, bratell wrote: > On 2013/08/19 19:16:55, Paweł Hajdan Jr. wrote: > > ...
7 years, 4 months ago (2013-08-22 08:40:00 UTC) #9
Paweł Hajdan Jr.
Thanks for the patch, sorry about small delays. Lots of tiny comments, should be ready ...
7 years, 4 months ago (2013-08-22 18:11:53 UTC) #10
Daniel Bratell
New version. It has grown some due to the generalizations so it's less compact but ...
7 years, 4 months ago (2013-08-23 17:42:29 UTC) #11
Daniel Bratell
https://codereview.chromium.org/21537002/diff/15001/net/test/spawned_test_server/local_test_server_win.cc File net/test/spawned_test_server/local_test_server_win.cc (right): https://codereview.chromium.org/21537002/diff/15001/net/test/spawned_test_server/local_test_server_win.cc#newcode89 net/test/spawned_test_server/local_test_server_win.cc:89: class AddedPythonPath { On 2013/08/23 17:42:30, bratell wrote: > ...
7 years, 4 months ago (2013-08-23 17:43:35 UTC) #12
Paweł Hajdan Jr.
Just minor comments. https://codereview.chromium.org/21537002/diff/22001/net/test/spawned_test_server/local_test_server_win.cc File net/test/spawned_test_server/local_test_server_win.cc (right): https://codereview.chromium.org/21537002/diff/22001/net/test/spawned_test_server/local_test_server_win.cc#newcode88 net/test/spawned_test_server/local_test_server_win.cc:88: // TODO: By making this more ...
7 years, 3 months ago (2013-08-26 21:39:49 UTC) #13
Daniel Bratell
phajdan.jr, I think the version I downloaded last has addressed your issues. Could you please ...
7 years, 3 months ago (2013-09-05 11:17:00 UTC) #14
Daniel Bratell
On 2013/09/05 11:17:00, Daniel Bratell wrote: > phajdan.jr, I think the version I downloaded last ...
7 years, 3 months ago (2013-09-05 11:17:12 UTC) #15
Paweł Hajdan Jr.
LGTM with nits https://codereview.chromium.org/21537002/diff/28001/net/test/spawned_test_server/local_test_server_win.cc File net/test/spawned_test_server/local_test_server_win.cc (right): https://codereview.chromium.org/21537002/diff/28001/net/test/spawned_test_server/local_test_server_win.cc#newcode88 net/test/spawned_test_server/local_test_server_win.cc:88: // TODO(bratell): By making this more ...
7 years, 3 months ago (2013-09-05 18:31:58 UTC) #16
Daniel Bratell
On 2013/09/05 18:31:58, Paweł Hajdan Jr. wrote: > LGTM with nits > Fixed I think. ...
7 years, 3 months ago (2013-09-05 20:28:11 UTC) #17
Daniel Bratell
On 2013/09/05 20:28:11, Daniel Bratell wrote: > On 2013/09/05 18:31:58, Paweł Hajdan Jr. wrote: > ...
7 years, 3 months ago (2013-09-18 18:24:14 UTC) #18
Paweł Hajdan Jr.
LGTM At least when I use it "LGTM with ..." means you're good to go ...
7 years, 3 months ago (2013-09-18 20:13:54 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bratell@opera.com/21537002/34001
7 years, 3 months ago (2013-09-19 06:15:37 UTC) #20
commit-bot: I haz the power
7 years, 3 months ago (2013-09-19 09:58:18 UTC) #21
Message was sent while issue was closed.
Change committed as 224096

Powered by Google App Engine
This is Rietveld 408576698