This commit is contained in:
Alexander Kuzmenkov 2021-06-08 17:12:47 +03:00
parent 1c5e069d0d
commit 07fceb667e
2 changed files with 4 additions and 2 deletions

View File

@ -1242,8 +1242,8 @@ create table ci_checks engine File(TSVWithNamesAndTypes, 'ci-checks.tsv')
'Performance' check_name, 'Performance' check_name,
'$(sed -n 's/.*<!--status: \(.*\)-->/\1/p' report.html)' check_status, '$(sed -n 's/.*<!--status: \(.*\)-->/\1/p' report.html)' check_status,
-- TODO toDateTime() can't parse output of 'date', so no time for now. -- TODO toDateTime() can't parse output of 'date', so no time for now.
3600 * 1000 check_duration_ms, ($(date +%s) - $CHPC_CHECK_START_TIMESTAMP) * 1000 check_duration_ms,
now() - check_duration_ms / 1000 check_start_time, fromUnixTimestamp($CHPC_CHECK_START_TIMESTAMP) check_start_time,
test_name, test_name,
test_status, test_status,
test_duration_ms, test_duration_ms,

View File

@ -1,6 +1,8 @@
#!/bin/bash #!/bin/bash
set -ex set -ex
export CHPC_CHECK_START_TIMESTAMP="$(date +%s)"
# Use the packaged repository to find the revision we will compare to. # Use the packaged repository to find the revision we will compare to.
function find_reference_sha function find_reference_sha
{ {