Closed choksi81 closed 9 years ago
The build scripts appear to work, but running all the unit tests with python utf.py -a
results in many test failures, most of them Exception (with class '.NMClientException'): RepyArgumentError("Provided destip is not valid! IP: 'dace336b0a116a5cb9f8d4be1dd74438bc37e2a5'",)
Here is a snippet of the test results:
--------------------------------------------------------------------------------
Running: ut_nm_timeout2.r2py [ FAIL ]
--------------------------------------------------------------------------------
Standard error :
..............................Produced..............................
---
Uncaught exception!
---
Following is a full traceback, and a user traceback.
The user traceback excludes non-user modules. The most recent call is displayed last.
Full debugging traceback:
"repy.py", line 154, in execute_namespace_until_completion
"/home/vlad/projects/seattletestbed/nodemanager/RUNNABLE/virtual_namespace.py", line 117, in evaluate
"/home/vlad/projects/seattletestbed/nodemanager/RUNNABLE/safe.py", line 588, in safe_run
"dylink.r2py", line 546, in <module>
"dylink.r2py", line 407, in dylink_dispatch
"dylink.r2py", line 520, in evaluate
"/home/vlad/projects/seattletestbed/nodemanager/RUNNABLE/virtual_namespace.py", line 117, in evaluate
"/home/vlad/projects/seattletestbed/nodemanager/RUNNABLE/safe.py", line 588, in safe_run
"ut_nm_timeout2.r2py", line 39, in <module>
"nmclient.r2py", line 298, in nmclient_createhandle
User traceback:
"dylink.r2py", line 546, in <module>
"dylink.r2py", line 407, in dylink_dispatch
"dylink.r2py", line 520, in evaluate
"ut_nm_timeout2.r2py", line 39, in <module>
"nmclient.r2py", line 298, in nmclient_createhandle
Exception (with class '.NMClientException'): RepyArgumentError("Provided destip is not valid! IP: 'dace336b0a116a5cb9f8d4be1dd74438bc37e2a5'",)
---
..............................Expected..............................
None
--------------------------------------------------------------------------------
Running: ut_nm_validate_connection_limit.r2py [ FAIL ]
--------------------------------------------------------------------------------
Standard error :
..............................Produced..............................
---
Uncaught exception!
---
Following is a full traceback, and a user traceback.
The user traceback excludes non-user modules. The most recent call is displayed last.
Full debugging traceback:
"repy.py", line 154, in execute_namespace_until_completion
"/home/vlad/projects/seattletestbed/nodemanager/RUNNABLE/virtual_namespace.py", line 117, in evaluate
"/home/vlad/projects/seattletestbed/nodemanager/RUNNABLE/safe.py", line 588, in safe_run
"dylink.r2py", line 546, in <module>
"dylink.r2py", line 397, in dylink_dispatch
"dylink.r2py", line 155, in _dy_module_code
User traceback:
"dylink.r2py", line 546, in <module>
"dylink.r2py", line 397, in dylink_dispatch
"dylink.r2py", line 155, in _dy_module_code
Exception (with type 'exceptions.Exception'): Failed to initialize the module (ut_nm_validate_connection_limit.r2py)! Got the following exception: 'CodeUnsafeError('Code failed safety check! Error: ("<type \'exceptions.SyntaxError\'> invalid syntax (line 45)",)',)'
---
..............................Expected..............................
None
--------------------------------------------------------------------------------
Running: ut_nm_validate_connection_timeout.r2py [ FAIL ]
--------------------------------------------------------------------------------
Standard error :
..............................Produced..............................
---
Uncaught exception!
---
Following is a full traceback, and a user traceback.
The user traceback excludes non-user modules. The most recent call is displayed last.
Full debugging traceback:
"repy.py", line 154, in execute_namespace_until_completion
"/home/vlad/projects/seattletestbed/nodemanager/RUNNABLE/virtual_namespace.py", line 117, in evaluate
"/home/vlad/projects/seattletestbed/nodemanager/RUNNABLE/safe.py", line 588, in safe_run
"dylink.r2py", line 546, in <module>
"dylink.r2py", line 397, in dylink_dispatch
"dylink.r2py", line 155, in _dy_module_code
User traceback:
"dylink.r2py", line 546, in <module>
"dylink.r2py", line 397, in dylink_dispatch
"dylink.r2py", line 155, in _dy_module_code
Exception (with type 'exceptions.Exception'): Failed to initialize the module (ut_nm_validate_connection_timeout.r2py)! Got the following exception: 'CodeUnsafeError('Code failed safety check! Error: ("<type \'exceptions.SyntaxError\'> invalid syntax (line 41)",)',)'
---
..............................Expected..............................
None
--------------------------------------------------------------------------------
Now stopping subprocess: ut_nm_subprocess.py
Traceback (most recent call last):
File "ut_nm_subprocess.py", line 35, in <module>
pidportion = firstline.split(':')[1]
IndexError: list index out of range
'utf' directory is to be deleted from 'common' repo and to be cloned separately from its own repo. Hence, build-scripts needs to be updated to reflect that change. This PR takes care of that.