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

Issue 2094713002: Include PowerShell in Windows PATH, if available. (Closed)

Created:
4 years, 6 months ago by dnj (Google)
Modified:
4 years, 6 months ago
Reviewers:
Ryan Tseng, agable, hinoka
CC:
chromium-reviews, infra-reviews+build_chromium.org, kjellander-cc_chromium.org
Target Ref:
refs/heads/master
Project:
build
Visibility:
Public.

Description

Include PowerShell in Windows PATH, if available. Allow pre-existing PowerShell PATH to carry forward in the sanitized PATH if present to avoid requiring the user to hard-code the PowerShell package installation (currently c:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe). BUG=chromium:623118 TEST=None Committed: https://chromium.googlesource.com/chromium/tools/build/+/989ce90d39cd75fe9bf41ea3ecccfedf0f50e7d6

Patch Set 1 #

Total comments: 6

Patch Set 2 : Cleaner, better dox. #

Total comments: 2

Patch Set 3 : Actually use "which". #

Total comments: 2

Patch Set 4 : abspath #

Patch Set 5 : Don't use Python reserved word... #

Unified diffs Side-by-side diffs Delta from patch set Stats (+66 lines, -3 lines) Patch
M scripts/common/chromium_utils.py View 1 2 3 4 1 chunk +56 lines, -0 lines 0 comments Download
M slave/run_slave.py View 1 2 3 4 chunks +10 lines, -3 lines 0 comments Download

Messages

Total messages: 32 (15 generated)
dnj (Google)
PTAL. This solves a problem right now with the sanitized path losing information about where ...
4 years, 6 months ago (2016-06-23 15:42:48 UTC) #2
Ryan Tseng
https://codereview.chromium.org/2094713002/diff/1/slave/run_slave.py File slave/run_slave.py (right): https://codereview.chromium.org/2094713002/diff/1/slave/run_slave.py#newcode440 slave/run_slave.py:440: if phrase in e: if phrase in e.listdir()?
4 years, 6 months ago (2016-06-23 16:45:30 UTC) #4
Ryan Tseng
Oh I see what you're doing. You're matching on the folder name. Why not just ...
4 years, 6 months ago (2016-06-23 16:46:18 UTC) #5
dnj (Google)
On 2016/06/23 16:46:18, Ryan Tseng wrote: > Oh I see what you're doing. You're matching ...
4 years, 6 months ago (2016-06-23 21:11:59 UTC) #6
hinoka
If we stipulate powershell.exe is always under WindowsPowerShell, why not also stipulate that it's always ...
4 years, 6 months ago (2016-06-23 21:18:19 UTC) #7
dnj (Google)
On 2016/06/23 21:18:19, hinoka wrote: > If we stipulate powershell.exe is always under WindowsPowerShell, why ...
4 years, 6 months ago (2016-06-23 22:08:06 UTC) #8
hinoka
lgtm + add more comments. https://codereview.chromium.org/2094713002/diff/1/slave/run_slave.py File slave/run_slave.py (right): https://codereview.chromium.org/2094713002/diff/1/slave/run_slave.py#newcode438 slave/run_slave.py:438: def get_path_element(phrase): This function ...
4 years, 6 months ago (2016-06-23 22:17:55 UTC) #9
dnj (Google)
https://codereview.chromium.org/2094713002/diff/1/slave/run_slave.py File slave/run_slave.py (right): https://codereview.chromium.org/2094713002/diff/1/slave/run_slave.py#newcode438 slave/run_slave.py:438: def get_path_element(phrase): On 2016/06/23 22:17:55, hinoka wrote: > This ...
4 years, 6 months ago (2016-06-24 03:24:52 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2094713002/20001
4 years, 6 months ago (2016-06-24 18:11:48 UTC) #16
dnj (Google)
+agable@, PTAL from OWNER.
4 years, 6 months ago (2016-06-24 18:18:51 UTC) #18
agable
LGTM % comment. https://codereview.chromium.org/2094713002/diff/20001/slave/run_slave.py File slave/run_slave.py (right): https://codereview.chromium.org/2094713002/diff/20001/slave/run_slave.py#newcode440 slave/run_slave.py:440: def get_path_component_containing(phrase): This function is only ...
4 years, 6 months ago (2016-06-24 18:29:16 UTC) #20
dnj (Google)
https://codereview.chromium.org/2094713002/diff/20001/slave/run_slave.py File slave/run_slave.py (right): https://codereview.chromium.org/2094713002/diff/20001/slave/run_slave.py#newcode440 slave/run_slave.py:440: def get_path_component_containing(phrase): On 2016/06/24 18:29:16, agable wrote: > This ...
4 years, 6 months ago (2016-06-24 18:39:59 UTC) #21
hinoka
This seems overkill for this purpose but lgtm https://codereview.chromium.org/2094713002/diff/40001/scripts/common/chromium_utils.py File scripts/common/chromium_utils.py (right): https://codereview.chromium.org/2094713002/diff/40001/scripts/common/chromium_utils.py#newcode2062 scripts/common/chromium_utils.py:2062: return ...
4 years, 6 months ago (2016-06-24 18:47:33 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2094713002/60001
4 years, 6 months ago (2016-06-24 18:49:48 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: Build Presubmit on master.tryserver.infra (JOB_FAILED, https://build.chromium.org/p/tryserver.infra/builders/Build%20Presubmit/builds/5704)
4 years, 6 months ago (2016-06-24 18:58:02 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2094713002/80001
4 years, 6 months ago (2016-06-24 19:51:45 UTC) #30
commit-bot: I haz the power
4 years, 6 months ago (2016-06-24 19:56:00 UTC) #32
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/tools/build/+/989ce90d39cd75fe9bf4...

Powered by Google App Engine
This is Rietveld 408576698