See <https://builds.apache.org/job/Thrift/473/changes>

Changes:

[jfarrell] Thrift-1604:Python exxception handeling for changes from PEP3110
Client: py
Patch: Jake Farrell

Python PEP 3110 changed exception handling by replacing the ',' with 'as'. This 
was initially introduced in python 2.6 and in 3.0 the ',' usage is no longer 
suppported. Since exception handling through out the py lib uses the ',' it 
will need to be converted over to using the 'as' syntax for exceptions

------------------------------------------
[...truncated 9338 lines...]
ERROR: testByte (__main__.AcceleratedBinaryTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "./TestClient.py", line 84, in setUp
    self.transport.open()
  File 
"../../lib/py/build/lib.linux-x86_64-2.6/thrift/transport/TTransport.py", line 
149, in open
    return self.__trans.open()
  File "../../lib/py/build/lib.linux-x86_64-2.6/thrift/transport/TSocket.py", 
line 99, in open
    message=message)
TTransportException: Could not connect to localhost:9090

======================================================================
ERROR: testDouble (__main__.AcceleratedBinaryTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "./TestClient.py", line 84, in setUp
    self.transport.open()
  File 
"../../lib/py/build/lib.linux-x86_64-2.6/thrift/transport/TTransport.py", line 
149, in open
    return self.__trans.open()
  File "../../lib/py/build/lib.linux-x86_64-2.6/thrift/transport/TSocket.py", 
line 99, in open
    message=message)
TTransportException: Could not connect to localhost:9090

======================================================================
ERROR: testEnum (__main__.AcceleratedBinaryTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "./TestClient.py", line 84, in setUp
    self.transport.open()
  File 
"../../lib/py/build/lib.linux-x86_64-2.6/thrift/transport/TTransport.py", line 
149, in open
    return self.__trans.open()
  File "../../lib/py/build/lib.linux-x86_64-2.6/thrift/transport/TSocket.py", 
line 99, in open
    message=message)
TTransportException: Could not connect to localhost:9090

======================================================================
ERROR: testException (__main__.AcceleratedBinaryTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "./TestClient.py", line 84, in setUp
    self.transport.open()
  File 
"../../lib/py/build/lib.linux-x86_64-2.6/thrift/transport/TTransport.py", line 
149, in open
    return self.__trans.open()
  File "../../lib/py/build/lib.linux-x86_64-2.6/thrift/transport/TSocket.py", 
line 99, in open
    message=message)
TTransportException: Could not connect to localhost:9090

======================================================================
ERROR: testI32 (__main__.AcceleratedBinaryTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "./TestClient.py", line 84, in setUp
    self.transport.open()
  File 
"../../lib/py/build/lib.linux-x86_64-2.6/thrift/transport/TTransport.py", line 
149, in open
    return self.__trans.open()
  File "../../lib/py/build/lib.linux-x86_64-2.6/thrift/transport/TSocket.py", 
line 99, in open
    message=message)
TTransportException: Could not connect to localhost:9090

======================================================================
ERROR: testI64 (__main__.AcceleratedBinaryTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "./TestClient.py", line 84, in setUp
    self.transport.open()
  File 
"../../lib/py/build/lib.linux-x86_64-2.6/thrift/transport/TTransport.py", line 
149, in open
    return self.__trans.open()
  File "../../lib/py/build/lib.linux-x86_64-2.6/thrift/transport/TSocket.py", 
line 99, in open
    message=message)
TTransportException: Could not connect to localhost:9090

======================================================================
ERROR: testList (__main__.AcceleratedBinaryTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "./TestClient.py", line 84, in setUp
    self.transport.open()
  File 
"../../lib/py/build/lib.linux-x86_64-2.6/thrift/transport/TTransport.py", line 
149, in open
    return self.__trans.open()
  File "../../lib/py/build/lib.linux-x86_64-2.6/thrift/transport/TSocket.py", 
line 99, in open
    message=message)
TTransportException: Could not connect to localhost:9090

======================================================================
ERROR: testMap (__main__.AcceleratedBinaryTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "./TestClient.py", line 84, in setUp
    self.transport.open()
  File 
"../../lib/py/build/lib.linux-x86_64-2.6/thrift/transport/TTransport.py", line 
149, in open
    return self.__trans.open()
  File "../../lib/py/build/lib.linux-x86_64-2.6/thrift/transport/TSocket.py", 
line 99, in open
    message=message)
TTransportException: Could not connect to localhost:9090

======================================================================
ERROR: testMapMap (__main__.AcceleratedBinaryTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "./TestClient.py", line 84, in setUp
    self.transport.open()
  File 
"../../lib/py/build/lib.linux-x86_64-2.6/thrift/transport/TTransport.py", line 
149, in open
    return self.__trans.open()
  File "../../lib/py/build/lib.linux-x86_64-2.6/thrift/transport/TSocket.py", 
line 99, in open
    message=message)
TTransportException: Could not connect to localhost:9090

======================================================================
ERROR: testMulti (__main__.AcceleratedBinaryTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "./TestClient.py", line 84, in setUp
    self.transport.open()
  File 
"../../lib/py/build/lib.linux-x86_64-2.6/thrift/transport/TTransport.py", line 
149, in open
    return self.__trans.open()
  File "../../lib/py/build/lib.linux-x86_64-2.6/thrift/transport/TSocket.py", 
line 99, in open
    message=message)
TTransportException: Could not connect to localhost:9090

======================================================================
ERROR: testNest (__main__.AcceleratedBinaryTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "./TestClient.py", line 84, in setUp
    self.transport.open()
  File 
"../../lib/py/build/lib.linux-x86_64-2.6/thrift/transport/TTransport.py", line 
149, in open
    return self.__trans.open()
  File "../../lib/py/build/lib.linux-x86_64-2.6/thrift/transport/TSocket.py", 
line 99, in open
    message=message)
TTransportException: Could not connect to localhost:9090

======================================================================
ERROR: testOneway (__main__.AcceleratedBinaryTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "./TestClient.py", line 84, in setUp
    self.transport.open()
  File 
"../../lib/py/build/lib.linux-x86_64-2.6/thrift/transport/TTransport.py", line 
149, in open
    return self.__trans.open()
  File "../../lib/py/build/lib.linux-x86_64-2.6/thrift/transport/TSocket.py", 
line 99, in open
    message=message)
TTransportException: Could not connect to localhost:9090

======================================================================
ERROR: testOnewayThenNormal (__main__.AcceleratedBinaryTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "./TestClient.py", line 84, in setUp
    self.transport.open()
  File 
"../../lib/py/build/lib.linux-x86_64-2.6/thrift/transport/TTransport.py", line 
149, in open
    return self.__trans.open()
  File "../../lib/py/build/lib.linux-x86_64-2.6/thrift/transport/TSocket.py", 
line 99, in open
    message=message)
TTransportException: Could not connect to localhost:9090

======================================================================
ERROR: testSet (__main__.AcceleratedBinaryTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "./TestClient.py", line 84, in setUp
    self.transport.open()
  File 
"../../lib/py/build/lib.linux-x86_64-2.6/thrift/transport/TTransport.py", line 
149, in open
    return self.__trans.open()
  File "../../lib/py/build/lib.linux-x86_64-2.6/thrift/transport/TSocket.py", 
line 99, in open
    message=message)
TTransportException: Could not connect to localhost:9090

======================================================================
ERROR: testString (__main__.AcceleratedBinaryTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "./TestClient.py", line 84, in setUp
    self.transport.open()
  File 
"../../lib/py/build/lib.linux-x86_64-2.6/thrift/transport/TTransport.py", line 
149, in open
    return self.__trans.open()
  File "../../lib/py/build/lib.linux-x86_64-2.6/thrift/transport/TSocket.py", 
line 99, in open
    message=message)
TTransportException: Could not connect to localhost:9090

======================================================================
ERROR: testStruct (__main__.AcceleratedBinaryTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "./TestClient.py", line 84, in setUp
    self.transport.open()
  File 
"../../lib/py/build/lib.linux-x86_64-2.6/thrift/transport/TTransport.py", line 
149, in open
    return self.__trans.open()
  File "../../lib/py/build/lib.linux-x86_64-2.6/thrift/transport/TSocket.py", 
line 99, in open
    message=message)
TTransportException: Could not connect to localhost:9090

======================================================================
ERROR: testTypedef (__main__.AcceleratedBinaryTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "./TestClient.py", line 84, in setUp
    self.transport.open()
  File 
"../../lib/py/build/lib.linux-x86_64-2.6/thrift/transport/TTransport.py", line 
149, in open
    return self.__trans.open()
  File "../../lib/py/build/lib.linux-x86_64-2.6/thrift/transport/TSocket.py", 
line 99, in open
    message=message)
TTransportException: Could not connect to localhost:9090

======================================================================
ERROR: testVoid (__main__.AcceleratedBinaryTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "./TestClient.py", line 84, in setUp
    self.transport.open()
  File 
"../../lib/py/build/lib.linux-x86_64-2.6/thrift/transport/TTransport.py", line 
149, in open
    return self.__trans.open()
  File "../../lib/py/build/lib.linux-x86_64-2.6/thrift/transport/TSocket.py", 
line 99, in open
    message=message)
TTransportException: Could not connect to localhost:9090

----------------------------------------------------------------------
Ran 18 tests in 0.005s

FAILED (errors=18)
ncludes gen-py-dynamicslots)  TThreadPoolServer / compact proto / zlib=True / 
SSL=True.   216 combinations tested.

Test run #217:  (includes gen-py-default) Server=TProcessPoolServer,  
Proto=accel,  zlib=False,  SSL=False
Testing server TProcessPoolServer: /usr/bin/python ./TestServer.py 
--genpydir=gen-py-default --proto=accel --port=9090 TProcessPoolServer
Testing client: /usr/bin/python ./TestClient.py --genpydir=gen-py-default 
--proto=accel --port=9090
Giving TProcessPoolServer (proto=accel,zlib=False,ssl=False) an extra 3 seconds 
for child processes to terminate via alarm
Traceback (most recent call last):
  File "./RunClientServer.py", line 185, in <module>
    runServiceTest(genpydir, try_server, try_proto, options.port, with_zlib, 
with_ssl)
  File "./RunClientServer.py", line 136, in runServiceTest
    raise Exception("Client subprocess failed, retcode=%d, args: %s" % (ret, ' 
'.join(cli_args)))
Exception: Client subprocess failed, retcode=1, args: /usr/bin/python 
./TestClient.py --genpydir=gen-py-default --proto=accel --port=9090
FAIL: RunClientServer.py
==================
1 of 1 test failed
==================
make[3]: *** [check-TESTS] Error 1
make[3]: Leaving directory 
`<https://builds.apache.org/job/Thrift/ws/thrift/test/py'>
make[2]: *** [check-am] Error 2
make[2]: Leaving directory 
`<https://builds.apache.org/job/Thrift/ws/thrift/test/py'>
make[1]: *** [check-recursive] Error 1
make[1]: Leaving directory 
`<https://builds.apache.org/job/Thrift/ws/thrift/test'>
make: *** [check-recursive] Error 1
Build step 'Execute shell' marked build as failure
[WARNINGS] Skipping publisher since build result is FAILURE
[TASKS] Skipping publisher since build result is FAILURE
Archiving artifacts
Recording test results
Publishing Javadoc
Updating THRIFT-1604

Reply via email to