|
|
|
@ -105,7 +105,9 @@ class MyshixunsController < ApplicationController
|
|
|
|
|
resubmit = jsonTestDetails['resubmit']
|
|
|
|
|
outPut = tran_base64_decode64(jsonTestDetails['outPut'])
|
|
|
|
|
# 资源消耗
|
|
|
|
|
uid_logger("##########!!!!!!#{jsonTestDetails['resUsage']}")
|
|
|
|
|
max_mem = tran_base64_decode64(jsonTestDetails['resUsage']) if jsonTestDetails['resUsage'].present?
|
|
|
|
|
uid_logger("##########!!!!!!#{max_mem}")
|
|
|
|
|
jenkins_testsets = jsonTestDetails['msg']
|
|
|
|
|
compile_success = jsonTestDetails['compileSuccess']
|
|
|
|
|
# message = Base64.decode64(params[:msg]) unless params[:msg].blank?
|
|
|
|
@ -201,6 +203,7 @@ class MyshixunsController < ApplicationController
|
|
|
|
|
test_cases_time = format("%.3f", (Time.now.to_f - t1.to_f)).to_f
|
|
|
|
|
if record.present?
|
|
|
|
|
consume_time = format("%.3f", (Time.now - record.created_at)).to_f
|
|
|
|
|
uid_logger("11122233334444#{max_mem}, #{sec_key}")
|
|
|
|
|
record.update_attributes!(:consume_time => consume_time, :git_pull => timeCost['pull'] , :create_pod => timeCost['createPod'],
|
|
|
|
|
:pod_execute => timeCost['execute'], :test_cases => test_cases_time, :max_mem => max_mem,
|
|
|
|
|
:brige => timeCost['evaluateAllTime'], :return_back => return_back_time)
|
|
|
|
|