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

Issue 2943513002: [vpython] Fix intolerant lookup logic. (Closed)

Created:
3 years, 6 months ago by dnj
Modified:
3 years, 6 months ago
Reviewers:
iannucci, qyearsley
CC:
chromium-reviews, infra-reviews+luci-go_chromium.org, maruel+w_chromium.org, tandrii+luci-go_chromium.org
Target Ref:
refs/heads/master
Project:
luci-go
Visibility:
Public.

Description

[vpython] Fix intolerant lookup logic. The old probe-based Python lookup will return an error if any single candidate Python could not be identified. This prevents fallthrough, e.g., "python2.7" => "python2" => "python" will fail error on "python2.7" being missing. Refactor the lookup function a bit to be more tolerant of lookup errors. It should now try all candidate Python names and only fail if none of them matched. BUG=None TEST=local R=iannucci@chromium.org, qyearsley@chromium.org Review-Url: https://codereview.chromium.org/2943513002 Committed: https://github.com/luci/luci-go/commit/d9f6561f4b6d29a16f889ad4f6f2898c5794303a

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+61 lines, -45 lines) Patch
M vpython/python/find.go View 3 chunks +61 lines, -45 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 9 (4 generated)
dnj
3 years, 6 months ago (2017-06-15 18:26:33 UTC) #1
iannucci
lgtm
3 years, 6 months ago (2017-06-15 19:02:06 UTC) #4
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/2943513002/1
3 years, 6 months ago (2017-06-15 19:02:15 UTC) #5
commit-bot: I haz the power
Committed patchset #1 (id:1) as https://github.com/luci/luci-go/commit/d9f6561f4b6d29a16f889ad4f6f2898c5794303a
3 years, 6 months ago (2017-06-15 19:10:04 UTC) #8
qyearsley
3 years, 6 months ago (2017-06-15 20:13:58 UTC) #9
Message was sent while issue was closed.
On 2017/06/15 19:10:04, commit-bot: I haz the power wrote:
> Committed patchset #1 (id:1) as
>
https://github.com/luci/luci-go/commit/d9f6561f4b6d29a16f889ad4f6f2898c5794303a

LGTM

Does TEST=local here mean that you ran vpython locally without `python2.7` in
the path to check that it found the right python binary?

Powered by Google App Engine
This is Rietveld 408576698