find / -name arbor-build-catalogue
and some patience
Github CoPilot for all. :tada: The function was auto-generated from the comment
// Get average runtime of successful runs in seconds
func averageRuntimeInSeconds(runs []Run) float64 {
var totalTime int
var failedRuns int
for _, run := range runs {
if run.Failed {
failedRuns++
} else {
totalTime += run.Time
}
}
averageRuntime := float64(totalTime) / float64(len(runs) - failedRuns) / 1000
return averageRuntime
}
Oh ... wait ... this is broken and will return NAN
or even throw div-by-zero.*
:laughing:
Yes, this is the example they advertise
*
if no runs or all fail
Hi all,
I went through our issue tracker and did some clean-up. If you have an open issue or one assigned to you, please check whether it has been resolved, become obsolete, or you have pending questions. On the inverse, please re-open anything that's still relevant but was closed.