Boost logo

Boost Testing :

Subject: Re: [Boost-testing] proxy issues with downloading regression scripts
From: Aparna Kumta (aparna.kumta_at_[hidden])
Date: 2014-12-11 23:12:58


I made a few changes to run.py.
I hard coded the proxy variable as shown below.
# proxy = None
proxy = {'http': 'http://www-proxy.us.oracle.com:80'}
# for a in sys.argv[1:]:
# if a.startswith('--proxy='):
# proxy = {'https' : a.split('=')[1] }
# print '--- %s' %(proxy['https'])
# break

I invoked run.py. I saw the same error (by viewing regression.py in a browser):
Handshake failed
The SSL handshake could not be performed.

*Host: *raw.githubusercontent.com
*Reason: *Can't initialize server context

Then, I made the following change to run.py

# script_remote = 'https://raw.githubusercontent.com/boostorg/regression/develop/src'
script_remote = 'http://www.boost.org/doc/libs/1_57_0/tools/regression/src'

Reran run.py.

This time I was able to download the files
% ls -l boost_regression_src
total 174
-rw-rw-r-- 1 akumta staff 22459 Dec 11 19:21 collect_and_upload_logs.py
-rw-rw-r-- 1 akumta staff 23354 Dec 11 19:21 process_jam_log.py
-rw-rw-r-- 1 akumta staff 41338 Dec 11 19:21 regression.py

Does this mean there might be an issue on on the server side, that is with
https://raw.githubusercontent.com ?

Thanks,

Aparna

----- Original Message -----
From: aparna.kumta_at_[hidden]
To: boost-testing_at_[hidden]
Sent: Thursday, December 11, 2014 1:19:29 PM GMT -08:00 US/Canada Pacific
Subject: Re: [Boost-testing] proxy issues with downloading regression scripts

No, the quotes do not seem to help.
I modified run.py to just print the proxy as follows:
%cat run.py

#!/usr/bin/python

# Copyright Rene Rivera 2007-2013
#
# Distributed under the Boost Software License, Version 1.0.
# (See accompanying file LICENSE_1_0.txt or copy at
# http://www.boost.org/LICENSE_1_0.txt)

import os
import os.path
import shutil
import sys
import urllib

proxy = None
for a in sys.argv[1:]:
if a.startswith('--proxy='):
proxy = {'https' : a.split('=')[1] }
print '--- %s' %(proxy['https'])
%
%python run.py --runner=oracle --toolsets=sun --tag=develop --proxy=http://www-proxy.us.oracle.com:80
--- http://www-proxy.us.oracle.com:80

Now it prints the proxy!

Thanks,

Aparna

----- Original Message -----
From: grafikrobot_at_[hidden]
To: boost-testing_at_[hidden]
Sent: Thursday, December 11, 2014 12:13:44 PM GMT -08:00 US/Canada Pacific
Subject: Re: [Boost-testing] proxy issues with downloading regression scripts

On Thu, Dec 11, 2014 at 1:56 PM, Aparna Kumta < aparna.kumta_at_[hidden] > wrote:

I seem to have trouble in downloading the regression scripts.
My earlier thread on this issue is
http://lists.boost.org/boost-testing/2014/11/7735.php

I have copied run.py in my directory and invoke the script as follows:
python run.py --runner=oracle --toolsets=sun --tag=develop --proxy= http://www-proxy.us.oracle.com:80 --bjam-toolset=sun --pjl-toolset=sun "--bjam-options=-j16"

The error message I see is:
# Running regressions in /net/pontus/export/users/akumta/boost_proxy...
# Creating regression scripts at /net/pontus/export/users/akumta/boost_proxy/boost_regression_src...
# Downloading regression scripts from https://raw.githubusercontent.com/boostorg/regression/develop/src. ..
Traceback (most recent call last):
File "run.py", line 70, in <module>
from regression import runner
File "/net/pontus/export/users/akumta/boost_proxy/boost_regression_src/regression.py", line 1
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" " http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">
^
SyntaxError: invalid syntax

I don't see line #60 getting executed:

print '--- %s' %(proxy['https'])

Which suggests that for some reason it's not correctly recognizing the proxy option. Could you put quotes around the proxy option. Maybe something in the shell is mucking with the option.

-- 
-- Rene Rivera 
-- Grafik - Don't Assume Anything 
-- Robot Dreams - http://robot-dreams.net 
-- rrivera/ acm.org (msn) - grafikrobot/aim,yahoo,skype,efnet,gmail


Boost-testing list run by mbergal at meta-comm.com