Bug 208641

Summary: webkitpy: Be explicit about SCM binary locations
Product: WebKit Reporter: Jonathan Bedard <jbedard>
Component: Tools / TestsAssignee: Jonathan Bedard <jbedard>
Status: NEW ---    
Severity: Normal CC: aakash_jain, ap, ews-watchlist, glenn, jlewis3
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch ap: review-

Description Jonathan Bedard 2020-03-05 07:53:06 PST
We shouldn't be relying on the user's PATH to include git and svn binaries.
Comment 1 Jonathan Bedard 2020-03-05 07:54:29 PST
Created attachment 392568 [details]
Patch
Comment 2 Aakash Jain 2020-03-05 08:20:59 PST
What prompted this change, when this code has been working for years?
Comment 3 Aakash Jain 2020-03-05 08:22:56 PST
Comment on attachment 392568 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=392568&action=review

> Tools/Scripts/webkitpy/common/checkout/scm/git.py:59
> +    executable_name = '/usr/bin/git'

is this location same on all the OSes?

> Tools/Scripts/webkitpy/common/checkout/scm/svn.py:79
> +    executable_name = '/usr/local/bin/svn'

Ditto.
Comment 4 Alexey Proskuryakov 2020-03-05 08:47:59 PST
Comment on attachment 392568 [details]
Patch

bot612:~ buildbot$ which svn
/usr/bin/svn

I think that the git stub is always in /usr/bin currently, but I don't know if that will never change.
Comment 5 Jonathan Bedard 2020-03-05 09:52:56 PST
(In reply to Alexey Proskuryakov from comment #4)
> Comment on attachment 392568 [details]
> Patch
> 
> bot612:~ buildbot$ which svn
> /usr/bin/svn
> 
> I think that the git stub is always in /usr/bin currently, but I don't know
> if that will never change.

Looks like I have an svn in /usr/bin/svn too, even though which svn points to a different one.
Comment 6 Jonathan Bedard 2020-03-05 16:47:00 PST
Created attachment 392649 [details]
Patch
Comment 7 Alexey Proskuryakov 2020-03-05 17:07:26 PST
Comment on attachment 392649 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=392649&action=review

> Tools/Scripts/webkitpy/common/checkout/scm/svn.py:79
> +    executable_name = '/usr/bin/svn'

Pretty sure that /usr/bin/svn isn't guaranteed to exist either. Also, this code isn't about macOS only, or is it?