Small fix to reporting compiler errors; Loop the client on failures
This commit is contained in:
1 parent
91ab61ea5d
commit
17d3ff1de2
1 file changed
+7
-6
+7
-6
@@ -446,7 +446,7 @@ def server_report_build_fail(arguments, workload, branch):
|
|||||||
'password' : arguments.password,
|
'password' : arguments.password,
|
||||||
'testid' : workload['test']['id'],
|
'testid' : workload['test']['id'],
|
||||||
'machineid' : workload['machine']['id'],
|
'machineid' : workload['machine']['id'],
|
||||||
'error' : '%s build failed' % (workload['test'][branch])
|
'error' : '%s build failed' % (workload['test'][branch]['name'])
|
||||||
}
|
}
|
||||||
|
|
||||||
target = url_join(arguments.server, 'clientSubmitError')
|
target = url_join(arguments.server, 'clientSubmitError')
|
||||||
@@ -564,7 +564,6 @@ def complete_workload(arguments, workload):
|
|||||||
|
|
||||||
dev_name = download_engine(arguments, workload, 'dev', dev_network)
|
dev_name = download_engine(arguments, workload, 'dev', dev_network)
|
||||||
base_name = download_engine(arguments, workload, 'base', base_network)
|
base_name = download_engine(arguments, workload, 'base', base_network)
|
||||||
|
|
||||||
if dev_name == None or base_name == None: return
|
if dev_name == None or base_name == None: return
|
||||||
|
|
||||||
dev_bench, dev_nps = run_benchmarks(arguments, workload, 'dev', dev_name)
|
dev_bench, dev_nps = run_benchmarks(arguments, workload, 'dev', dev_name)
|
||||||
@@ -844,7 +843,9 @@ if __name__ == '__main__':
|
|||||||
server_configure_worker(arguments)
|
server_configure_worker(arguments)
|
||||||
|
|
||||||
while True:
|
while True:
|
||||||
cleanup_client()
|
try:
|
||||||
response = server_request_workload(arguments)
|
cleanup_client()
|
||||||
workload = check_workload_response(arguments, response)
|
response = server_request_workload(arguments)
|
||||||
if workload: complete_workload(arguments, workload)
|
workload = check_workload_response(arguments, response)
|
||||||
|
if workload: complete_workload(arguments, workload)
|
||||||
|
except Exception: traceback.print_exc()
|
||||||
Reference in new issue
Block a user