@@ -72,7 +72,6 @@ function result_dict(testset::Test.DefaultTestSet, prefix::String="")
72
72
" julia_version" => string (VERSION ),
73
73
" testset" => testset. description,
74
74
),
75
- # note we drop some of this from common_data before merging into individual results
76
75
" history" => if ! isnothing (testset. time_end)
77
76
Dict {String,Any} (
78
77
" start_at" => testset. time_start,
177
176
function collect_results! (results:: Vector{Dict{String,Any}} , testset:: Test.DefaultTestSet , prefix:: String = " " )
178
177
common_data = result_dict (testset, prefix)
179
178
# testset duration is not relevant for individual test results
180
- common_data[" history" ][" duration" ] = 0.0 # required field
181
- delete! (common_data[" history" ], " end_at" )
179
+ # but buildkite considers zero duration tests to have been skipped, so set all tests to 1.0s
180
+ # TODO : get buildkite to support zero duration tests
181
+ common_data[" history" ][" duration" ] = 1.0 # required field
182
+ common_data[" history" ][" end_at" ] = common_data[" history" ][" start_at" ] + 1
182
183
result_offset = length (results) + 1
183
184
result_counts = Dict {Tuple{String,String,UInt64},Int} ()
184
185
get_rid (rdata) = (rdata[" location" ], rdata[" result" ], haskey (rdata, " failure_expanded" ) ? hash (rdata[" failure_expanded" ]) : UInt64 (0 ))
0 commit comments