|
|
@ -96,6 +96,10 @@ class MyshixunsController < ApplicationController
|
|
|
|
status = jsonTestDetails['status']
|
|
|
|
status = jsonTestDetails['status']
|
|
|
|
game_id = jsonTestDetails['buildID']
|
|
|
|
game_id = jsonTestDetails['buildID']
|
|
|
|
sec_key = jsonTestDetails['sec_key']
|
|
|
|
sec_key = jsonTestDetails['sec_key']
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
res_usage = jsonTestDetails['resUsage']
|
|
|
|
|
|
|
|
ts_time = res_usage['test_set_time_1']
|
|
|
|
|
|
|
|
|
|
|
|
logger.info("training_task_status start#1**#{game_id}**** #{Time.now.strftime("%Y-%m-%d %H:%M:%S.%L")}")
|
|
|
|
logger.info("training_task_status start#1**#{game_id}**** #{Time.now.strftime("%Y-%m-%d %H:%M:%S.%L")}")
|
|
|
|
resubmit = jsonTestDetails['resubmit']
|
|
|
|
resubmit = jsonTestDetails['resubmit']
|
|
|
|
outPut = tran_base64_decode64(jsonTestDetails['outPut'])
|
|
|
|
outPut = tran_base64_decode64(jsonTestDetails['outPut'])
|
|
|
@ -191,8 +195,8 @@ class MyshixunsController < ApplicationController
|
|
|
|
test_cases_time = format("%.3f", (Time.now.to_f - t1.to_f)).to_f
|
|
|
|
test_cases_time = format("%.3f", (Time.now.to_f - t1.to_f)).to_f
|
|
|
|
if record.present?
|
|
|
|
if record.present?
|
|
|
|
consume_time = format("%.3f", (Time.now - record.created_at)).to_f
|
|
|
|
consume_time = format("%.3f", (Time.now - record.created_at)).to_f
|
|
|
|
record.update_attributes!(:consume_time => consume_time, :git_pull => timeCost['pull'] ,
|
|
|
|
record.update_attributes!(:consume_time => consume_time, :git_pull => timeCost['pull'] , :create_pod => timeCost['createPod'],
|
|
|
|
:create_pod => timeCost['createPod'], :pod_execute => timeCost['execute'], :test_cases => test_cases_time,
|
|
|
|
:pod_execute => timeCost['execute'], :test_cases => test_cases_time, :ts_time => ts_time,
|
|
|
|
:brige => timeCost['evaluateAllTime'], :return_back => return_back_time)
|
|
|
|
:brige => timeCost['evaluateAllTime'], :return_back => return_back_time)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
uid_logger("training_task_status start#4**#{game_id}**** #{Time.now.strftime("%Y-%m-%d %H:%M:%S.%L")}")
|
|
|
|
uid_logger("training_task_status start#4**#{game_id}**** #{Time.now.strftime("%Y-%m-%d %H:%M:%S.%L")}")
|
|
|
|