Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
138902: roachprod-microbench: influx fails on missing benchmark r=herkolategan a=herkolategan

Previously, the push to influx operation did not handle the case where it could not compute a summary between two runs due to a missing or renamed benchmark. This change adds a check to skip over the benchmark if no summaries are found.

Epic: None
Release note: None

Co-authored-by: Herko Lategan <[email protected]>
  • Loading branch information
craig[bot] and herkolategan committed Jan 21, 2025
2 parents 210d1f0 + 752e9d6 commit 38b28bf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/cmd/roachprod-microbench/compare.go
Original file line number Diff line number Diff line change
Expand Up @@ -466,6 +466,10 @@ func (c *compare) pushToInfluxDB() error {
}

for idx, benchmarkName := range cs.Benchmarks {
if len(cs.Summaries) == 0 {
log.Printf("WARN: no summaries for %s", benchmarkName)
continue
}
sum := cs.Summaries[0][idx]
if !sum.Defined() {
continue
Expand Down

0 comments on commit 38b28bf

Please sign in to comment.