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

Issue 74253002: Stop using third_party\python_26 for many tests. (Closed)

Created:
7 years, 1 month ago by M-A Ruel
Modified:
7 years ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, cbentzel+watch_chromium.org, jam, brettw, Ryan Sleevi, Philippe
Base URL:
https://chromium.googlesource.com/a/chromium/src.git@master
Visibility:
Public.

Description

Stop using third_party\python_26 for many tests. Migrate testserver.py from using embedded python in third_party\python_26 to the python version installed on the system. Kill many python_26 references. It reduces the amount of data that needs to be transfered for Windows swarm slaves. The remaining uses of third_party\python_26 are: 1. chrome_frame. 2. pyauto needs the python SDK. As such, it needs a "known" python installation. 3. gn. R=phajdan.jr@chromium.org,rsleevi@chromium.org BUG=98636 BUG=321703 TEST= Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=238989

Patch Set 1 #

Total comments: 7

Patch Set 2 : fixes #

Patch Set 3 : improve testserver #

Patch Set 4 : Do not use system version at all #

Total comments: 2

Patch Set 5 : Disabling NoCache #

Patch Set 6 : the fix is so simple, it's not even funny #

Total comments: 4

Patch Set 7 : cleaner #

Patch Set 8 : Fix android #

Patch Set 9 : change python sys.path to fix android #

Patch Set 10 : Fix android, make it cleaner #

Total comments: 2

Patch Set 11 : Revert build/android/pylib/chrome_test_server_spawner.py so I can commit today #

Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -22 lines) Patch
chrome/browser_tests.isolate View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -1 line 0 comments Download
chrome/interactive_ui_tests.isolate View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
chrome/unit_tests.isolate View 1 chunk +0 lines, -1 line 0 comments Download
content/content_browsertests.isolate View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
net/net_unittests.isolate View 1 chunk +0 lines, -3 lines 0 comments Download
net/test/python_utils.cc View 1 2 3 4 5 6 7 1 chunk +7 lines, -1 line 0 comments Download
net/test/spawned_test_server/local_test_server.cc View 1 2 3 4 5 6 1 chunk +7 lines, -1 line 0 comments Download
net/test/spawned_test_server/local_test_server_win.cc View 1 chunk +0 lines, -9 lines 0 comments Download
net/tools/testserver/testserver.py View 1 2 3 4 5 6 7 8 9 1 chunk +11 lines, -4 lines 0 comments Download

Messages

Total messages: 26 (0 generated)
Paweł Hajdan Jr.
+bratell FYI https://codereview.chromium.org/74253002/diff/1/net/test/python_utils.cc File net/test/python_utils.cc (right): https://codereview.chromium.org/74253002/diff/1/net/test/python_utils.cc#newcode112 net/test/python_utils.cc:112: //python_cmd->SetProgram(base::FilePath(FILE_PATH_LITERAL("python"))); Remove the commented-out line. https://codereview.chromium.org/74253002/diff/1/net/test/python_utils.cc#newcode118 net/test/python_utils.cc:118: ...
7 years, 1 month ago (2013-11-15 19:34:42 UTC) #1
M-A Ruel
It's not ready for review yet. I'm uploading so I can test it on the ...
7 years, 1 month ago (2013-11-15 19:40:26 UTC) #2
M-A Ruel
Ready for review except for one net_unittests test case that needs to be fixed on ...
7 years, 1 month ago (2013-11-15 21:51:14 UTC) #3
Paweł Hajdan Jr.
https://codereview.chromium.org/74253002/diff/100002/net/test/python_utils.cc File net/test/python_utils.cc (right): https://codereview.chromium.org/74253002/diff/100002/net/test/python_utils.cc#newcode113 net/test/python_utils.cc:113: python_cmd->SetProgram(base::FilePath(FILE_PATH_LITERAL("cmd.exe"))); Why do we need to go through cmd.exe ...
7 years, 1 month ago (2013-11-16 00:13:50 UTC) #4
Daniel Bratell
Just curious: Have you considered relying on the machine having a good enough python in ...
7 years, 1 month ago (2013-11-19 10:23:13 UTC) #5
M-A Ruel
On 2013/11/19 10:23:13, Daniel Bratell wrote: > Just curious: Have you considered relying on the ...
7 years, 1 month ago (2013-11-19 14:20:03 UTC) #6
M-A Ruel
I figured out why ProxyScriptFetcherImplTest.NoCache fails. It is because LocalTestServer::Stop() kills the child process but ...
7 years, 1 month ago (2013-11-20 17:43:45 UTC) #7
Paweł Hajdan Jr.
On 2013/11/20 17:43:45, M-A Ruel wrote: > I figured out why ProxyScriptFetcherImplTest.NoCache fails. It is ...
7 years, 1 month ago (2013-11-20 18:23:38 UTC) #8
M-A Ruel
+Ryan for the NoCache problem.
7 years, 1 month ago (2013-11-20 18:56:45 UTC) #9
Ryan Sleevi
Adding rvargas here. I don't have much to add on creative solutions. Ricardo probably knows ...
7 years ago (2013-11-25 07:09:23 UTC) #10
rvargas (doing something else)
On 2013/11/25 07:09:23, Ryan Sleevi wrote: > Adding rvargas here. I don't have much to ...
7 years ago (2013-11-25 20:07:34 UTC) #11
M-A Ruel
On 2013/11/25 20:07:34, rvargas wrote: > On 2013/11/25 07:09:23, Ryan Sleevi wrote: > > Adding ...
7 years ago (2013-11-30 02:05:34 UTC) #12
Paweł Hajdan Jr.
LGTM with comments. https://codereview.chromium.org/74253002/diff/410001/net/test/python_utils.cc File net/test/python_utils.cc (right): https://codereview.chromium.org/74253002/diff/410001/net/test/python_utils.cc#newcode117 net/test/python_utils.cc:117: nit: Remove empty line. https://codereview.chromium.org/74253002/diff/410001/net/test/spawned_test_server/local_test_server.cc File ...
7 years ago (2013-12-02 19:37:55 UTC) #13
M-A Ruel
https://codereview.chromium.org/74253002/diff/410001/net/test/python_utils.cc File net/test/python_utils.cc (right): https://codereview.chromium.org/74253002/diff/410001/net/test/python_utils.cc#newcode117 net/test/python_utils.cc:117: On 2013/12/02 19:37:56, Paweł Hajdan Jr. wrote: > nit: ...
7 years ago (2013-12-02 20:13:15 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/maruel@chromium.org/74253002/430001
7 years ago (2013-12-02 20:14:05 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/maruel@chromium.org/74253002/430001
7 years ago (2013-12-03 13:54:39 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/maruel@chromium.org/74253002/440001
7 years ago (2013-12-03 15:14:55 UTC) #18
M-A Ruel
On 2013/12/03 15:14:55, I haz the power (commit-bot) wrote: > CQ is trying da patch. ...
7 years ago (2013-12-03 16:14:10 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/maruel@chromium.org/74253002/440001
7 years ago (2013-12-03 19:10:56 UTC) #20
commit-bot: I haz the power
Failed to trigger a try job on android_dbg HTTP Error 400: Bad Request
7 years ago (2013-12-03 19:29:44 UTC) #21
M-A Ruel
+bulach for build/android/pylib/chrome_test_server_spawner.py https://codereview.chromium.org/74253002/diff/480001/build/android/pylib/chrome_test_server_spawner.py File build/android/pylib/chrome_test_server_spawner.py (left): https://codereview.chromium.org/74253002/diff/480001/build/android/pylib/chrome_test_server_spawner.py#oldcode28 build/android/pylib/chrome_test_server_spawner.py:28: # Path that are needed to ...
7 years ago (2013-12-04 21:16:42 UTC) #22
M-A Ruel
On 2013/12/04 21:16:42, M-A Ruel wrote: > +bulach for build/android/pylib/chrome_test_server_spawner.py > > https://codereview.chromium.org/74253002/diff/480001/build/android/pylib/chrome_test_server_spawner.py > File ...
7 years ago (2013-12-05 15:08:41 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/maruel@chromium.org/74253002/500001
7 years ago (2013-12-05 15:09:48 UTC) #24
commit-bot: I haz the power
Change committed as 238989
7 years ago (2013-12-05 17:50:14 UTC) #25
bulach
7 years ago (2013-12-06 09:56:53 UTC) #26
Message was sent while issue was closed.
clarification about the android file in the old patchset:

https://codereview.chromium.org/74253002/diff/480001/build/android/pylib/chro...
File build/android/pylib/chrome_test_server_spawner.py (left):

https://codereview.chromium.org/74253002/diff/480001/build/android/pylib/chro...
build/android/pylib/chrome_test_server_spawner.py:28: # Path that are needed to
import necessary modules when launching a testserver.
On 2013/12/04 21:16:43, M-A Ruel wrote:
> Modifying os.environ as a side-effect of importing a module is not what can be
> called "good practices".
> 
> It should not be necessary anyway, android is not different from other
platforms
> with that regard.

sorry about the delay, pliard@ would be a better reviewer for this file..
afaict, the problem is that the top-level test harness for android all start in
build/android, and then some specific tests need to start these servers..
I think this is hooked up at a different level for other platforms.

Powered by Google App Engine
This is Rietveld 408576698