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

Issue 9433026: Add Windows ninja to buildbot (Closed)

Created:
8 years, 10 months ago by scottmg
Modified:
8 years, 10 months ago
Reviewers:
Nico, Evan Martin, bradn
CC:
gyp-developer_googlegroups.com
Visibility:
Public.

Description

- Make gyptest.py set up the environment in case cl/link/etc. aren't in the environment. - Add ninja to Windows runs. Committed: https://code.google.com/p/gyp/source/detail?r=1236

Patch Set 1 #

Patch Set 2 : Windows ninja buildbot #

Patch Set 3 : test #

Patch Set 4 : another #

Patch Set 5 : different tactic #

Patch Set 6 : again #

Total comments: 2

Patch Set 7 : refactored version #

Patch Set 8 : remove prints #

Total comments: 2

Patch Set 9 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+68 lines, -46 lines) Patch
M buildbot/buildbot_run.py View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M test/lib/TestGyp.py View 1 2 3 4 5 6 7 8 4 chunks +67 lines, -46 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
scottmg
Yay! (couple other patches to go, and then I'll make sure the trys are clean ...
8 years, 10 months ago (2012-02-22 04:33:49 UTC) #1
Nico
I think you also need to update gyptest.py Is ninja installed on that bot? On ...
8 years, 10 months ago (2012-02-22 05:07:27 UTC) #2
Nico
…and bradnelson is probably the best reviewer for botty changes, since he babysits them :-)
8 years, 10 months ago (2012-02-22 05:09:27 UTC) #3
scottmg
On 2012/02/22 05:07:27, Nico wrote: > I think you also need to update gyptest.py Do ...
8 years, 10 months ago (2012-02-22 05:10:10 UTC) #4
scottmg
Adding Brad to review per suggestion.
8 years, 10 months ago (2012-02-22 05:11:26 UTC) #5
Nico
Ah, if ninja's on the bot already then I guess a "heads up" for Brad ...
8 years, 10 months ago (2012-02-22 05:17:58 UTC) #6
scottmg
http://codereview.chromium.org/9433026/diff/4005/test/lib/TestGyp.py File test/lib/TestGyp.py (right): http://codereview.chromium.org/9433026/diff/4005/test/lib/TestGyp.py#newcode426 test/lib/TestGyp.py:426: # make our "build tool" be set up + ...
8 years, 10 months ago (2012-02-22 05:59:09 UTC) #7
scottmg
On 2012/02/22 05:59:09, scottmg wrote: > http://codereview.chromium.org/9433026/diff/4005/test/lib/TestGyp.py > File test/lib/TestGyp.py (right): > > http://codereview.chromium.org/9433026/diff/4005/test/lib/TestGyp.py#newcode426 > ...
8 years, 10 months ago (2012-02-22 17:38:11 UTC) #8
Nico
LGTM, thanks! http://codereview.chromium.org/9433026/diff/1010/test/lib/TestGyp.py File test/lib/TestGyp.py (right): http://codereview.chromium.org/9433026/diff/1010/test/lib/TestGyp.py#newcode480 test/lib/TestGyp.py:480: vsvars_path = os.path.join(devenv_path, '../../Tools/vsvars32.bat') For my education: ...
8 years, 10 months ago (2012-02-22 17:45:22 UTC) #9
scottmg
8 years, 10 months ago (2012-02-22 17:59:14 UTC) #10
On 2012/02/22 17:45:22, Nico wrote:
> LGTM, thanks!
> 
> http://codereview.chromium.org/9433026/diff/1010/test/lib/TestGyp.py
> File test/lib/TestGyp.py (right):
> 
>
http://codereview.chromium.org/9433026/diff/1010/test/lib/TestGyp.py#newcode480
> test/lib/TestGyp.py:480: vsvars_path = os.path.join(devenv_path,
> '../../Tools/vsvars32.bat')
> For my education: Why not vcvarsall.bat?

Mostly habit. For x86 which is all we use anyway, vcvarsall.bat calls
bin\vcvars32.bat, which calls vsvars32.bat.

More importantly, vcvarsall relies on having VS90COMNTOOLS being set (normally
set during VS installation) but it doesn't appear to be set on the bots per
explorations in try jobs here:
http://build.chromium.org/p/tryserver.nacl/builders/gyp-win64/builds/34/steps...
I guess we do some slightly sneaky install/deploy method for VS? Not 100% sure.

> 
>
http://codereview.chromium.org/9433026/diff/1010/test/lib/TestGyp.py#newcode500
> test/lib/TestGyp.py:500: arguments = self.helper_args + arguments
> I guess '/c' means that cmd.exe will spawn a subshell which it sets the vcvars
> in, which is why this is needed for every test?

That's the idea. Spawning the shell, and then running "envvars && ninja" in that
shell so that ninja has the right path and envvars available.

I guess a more complicated version could be to run vsvars in a shell && inspect
the environment to pull out important things, pass those back up to the parent
process. But, since this is for running tests the simple/reliable/slightly
slower seems better.

Powered by Google App Engine
This is Rietveld 408576698