[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH] ts-coverity-upload: Honour HttpProxy (or CoverityHttpProxy)
In the Xen Project colo, we do not grant our hosts (including the controller) general internet access. We did have the IP address of scan.coverity.com configured in our firewall. But Coverity use a CDN now and the IP address is not even slightly stable any more. Using the squid works (using CONNECT). So do that. I have not been able to test this end-to-end, since I didn't want to do a real upload. However I have c&p the command line that ts-coverity-upload now attempts, and modified it slightly, and verified that it then manages to get the appropriate 401 error from scan.coverity.com. Deployment note: Sites doing Coverity uploads who have an http proxy configured but which do not want to use it for these uploads need to set the config option CoverityHttpProxy to the empty value. Signed-off-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx> CC: Wei Liu <wei.liu2@xxxxxxxxxx> CC: Andrew Cooper <andrew.cooper3@xxxxxxxxxx> --- ts-coverity-upload | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ts-coverity-upload b/ts-coverity-upload index 219c8be..94c7e71 100755 --- a/ts-coverity-upload +++ b/ts-coverity-upload @@ -43,6 +43,9 @@ sub upload() { my @args = map { ("--form", $_) } @form_args; + my $proxy = $c{CoverityHttpProxy} // $c{HttpProxy}; + push @args, qw(-x), $proxy if $proxy; + push @args, qw(--max-time 7200); push @args, qw(--fail); # turn 404 etc into a failure. push @args, $r{coverity_submit_url}; -- 1.7.10.4 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx https://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |