Bug 174875

Summary: download-built-product should allow for a proxy option
Product: WebKit Reporter: Lucas Forschler <lforschler>
Component: Tools / TestsAssignee: Lucas Forschler <lforschler>
Status: RESOLVED FIXED    
Severity: Normal CC: aakash_jain, dean_johnson, lforschler, mcatanzaro, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Add proxy config for apple webkit
lforschler: commit-queue-
v2
lforschler: commit-queue-
Add ChangeLog to patch
none
Updated patch based on feedback.
aakash_jain: review+
patch addressing feedback
lforschler: commit-queue-
updated patch based on feedback.
lforschler: commit-queue-
updated patch based on feedback.
lforschler: commit-queue-
fixed return call lforschler: commit-queue-

Lucas Forschler
Reported 2017-07-26 14:42:01 PDT
the script currently uses: return subprocess.call(["curl", "--fail", "--output", archivePath, url]) We should allow an option to pass in a proxy server. (This will be necessary for us to move to using S3 for our archive storage)
Attachments
Add proxy config for apple webkit (1.07 KB, patch)
2017-08-02 14:36 PDT, Lucas Forschler
lforschler: commit-queue-
v2 (1.02 KB, patch)
2017-08-02 14:39 PDT, Lucas Forschler
lforschler: commit-queue-
Add ChangeLog to patch (1.88 KB, patch)
2017-08-02 15:05 PDT, Lucas Forschler
no flags
Updated patch based on feedback. (2.79 KB, patch)
2017-08-02 16:12 PDT, Lucas Forschler
aakash_jain: review+
patch addressing feedback (2.85 KB, patch)
2017-08-02 17:33 PDT, Lucas Forschler
lforschler: commit-queue-
updated patch based on feedback. (1.74 KB, patch)
2017-08-02 17:34 PDT, Lucas Forschler
lforschler: commit-queue-
updated patch based on feedback. (1.71 KB, patch)
2017-08-02 17:44 PDT, Lucas Forschler
lforschler: commit-queue-
fixed return call (1.71 KB, patch)
2017-08-02 18:23 PDT, Lucas Forschler
lforschler: commit-queue-
Radar WebKit Bug Importer
Comment 1 2017-07-26 14:42:43 PDT
Lucas Forschler
Comment 2 2017-08-01 11:14:51 PDT
We need to ensure the proxy is only used for Mac clients, so we'll have to teach the tool to either accept it as an optional argument from buildbot, or to have logic in the script to do the right thing.
Lucas Forschler
Comment 3 2017-08-02 14:36:46 PDT
Created attachment 316996 [details] Add proxy config for apple webkit
Lucas Forschler
Comment 4 2017-08-02 14:39:45 PDT
Lucas Forschler
Comment 5 2017-08-02 15:05:19 PDT
Created attachment 317010 [details] Add ChangeLog to patch
Lucas Forschler
Comment 6 2017-08-02 16:12:43 PDT
Created attachment 317025 [details] Updated patch based on feedback.
Dean Johnson
Comment 7 2017-08-02 16:28:07 PDT
Comment on attachment 317025 [details] Updated patch based on feedback. View in context: https://bugs.webkit.org/attachment.cgi?id=317025&action=review LGTM overall. Unofficial r+. > Tools/ChangeLog:9 > + (DownloadBuiltProduct.start): teach buildbot to pass along proxy for Apple bots Nit: teach => Teach.
Alexey Proskuryakov
Comment 8 2017-08-02 17:15:11 PDT
Comment on attachment 317025 [details] Updated patch based on feedback. View in context: https://bugs.webkit.org/attachment.cgi?id=317025&action=review > Tools/BuildSlaveSupport/download-built-product:55 > + command += ["-x", options.proxy] Can we set a curl environment variable from outside, and not modify the script at all? http_proxy [protocol://]<host>[:port] Sets the proxy server to use for HTTP. HTTPS_PROXY [protocol://]<host>[:port] Sets the proxy server to use for HTTPS.
Lucas Forschler
Comment 9 2017-08-02 17:27:50 PDT
(In reply to Alexey Proskuryakov from comment #8) > Comment on attachment 317025 [details] > Updated patch based on feedback. > > View in context: > https://bugs.webkit.org/attachment.cgi?id=317025&action=review > > > Tools/BuildSlaveSupport/download-built-product:55 > > + command += ["-x", options.proxy] > > Can we set a curl environment variable from outside, and not modify the > script at all? > > http_proxy [protocol://]<host>[:port] > Sets the proxy server to use for HTTP. > > HTTPS_PROXY [protocol://]<host>[:port] > Sets the proxy server to use for HTTPS. This does work: HTTPS_PROXY=http://54.190.50.182:873 python ./Tools/BuildSlaveSupport/download-built-product --platform=mac --debug https://s3-us-west-2.amazonaws.com/minified-archives.webkit.org/mac-elcapitan-x86_64-debug/219249.zip
Lucas Forschler
Comment 10 2017-08-02 17:33:06 PDT
Created attachment 317042 [details] patch addressing feedback
Lucas Forschler
Comment 11 2017-08-02 17:34:13 PDT
Created attachment 317043 [details] updated patch based on feedback.
Lucas Forschler
Comment 12 2017-08-02 17:44:42 PDT
Created attachment 317045 [details] updated patch based on feedback.
Lucas Forschler
Comment 13 2017-08-02 18:23:54 PDT
Created attachment 317056 [details] fixed return call
Lucas Forschler
Comment 14 2017-08-02 18:32:49 PDT
Committed revision 220166.
Note You need to log in before you can comment on or make changes to this bug.