WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
174875
download-built-product should allow for a proxy option
https://bugs.webkit.org/show_bug.cgi?id=174875
Summary
download-built-product should allow for a proxy option
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-
Details
Formatted Diff
Diff
v2
(1.02 KB, patch)
2017-08-02 14:39 PDT
,
Lucas Forschler
lforschler
: commit-queue-
Details
Formatted Diff
Diff
Add ChangeLog to patch
(1.88 KB, patch)
2017-08-02 15:05 PDT
,
Lucas Forschler
no flags
Details
Formatted Diff
Diff
Updated patch based on feedback.
(2.79 KB, patch)
2017-08-02 16:12 PDT
,
Lucas Forschler
aakash_jain
: review+
Details
Formatted Diff
Diff
patch addressing feedback
(2.85 KB, patch)
2017-08-02 17:33 PDT
,
Lucas Forschler
lforschler
: commit-queue-
Details
Formatted Diff
Diff
updated patch based on feedback.
(1.74 KB, patch)
2017-08-02 17:34 PDT
,
Lucas Forschler
lforschler
: commit-queue-
Details
Formatted Diff
Diff
updated patch based on feedback.
(1.71 KB, patch)
2017-08-02 17:44 PDT
,
Lucas Forschler
lforschler
: commit-queue-
Details
Formatted Diff
Diff
fixed return call
(1.71 KB, patch)
2017-08-02 18:23 PDT
,
Lucas Forschler
lforschler
: commit-queue-
Details
Formatted Diff
Diff
Show Obsolete
(7)
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2017-07-26 14:42:43 PDT
<
rdar://problem/33551694
>
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
Created
attachment 316997
[details]
v2
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.
Top of Page
Format For Printing
XML
Clone This Bug