File tree Expand file tree Collapse file tree 1 file changed +14
-6
lines changed Expand file tree Collapse file tree 1 file changed +14
-6
lines changed Original file line number Diff line number Diff line change @@ -326,8 +326,15 @@ comparisonLoop:
326
326
benchmarksCommit := residues ["benchmarks-commit" ] // field
327
327
baselineCommit := cs .HashPairs [series ].DenHash // field
328
328
experimentCommit := cs .HashPairs [series ].NumHash // field
329
+ repository := residues ["repository" ] // tag
329
330
branch := residues ["branch" ] // tag
330
331
332
+ // cmd/bench didn't set repository prior to
333
+ // CL 413915. Older runs are all against go.
334
+ if repository == "" {
335
+ repository = "go"
336
+ }
337
+
331
338
// Push to influx.
332
339
t , err := benchseries .ParseNormalizedDateString (series )
333
340
if err != nil {
@@ -343,12 +350,13 @@ comparisonLoop:
343
350
"experiment-commit" : experimentCommit ,
344
351
}
345
352
tags := map [string ]string {
346
- "name" : benchmarkName ,
347
- "unit" : unit ,
348
- "cpu" : cpu ,
349
- "goarch" : goarch ,
350
- "goos" : goos ,
351
- "branch" : branch ,
353
+ "name" : benchmarkName ,
354
+ "unit" : unit ,
355
+ "cpu" : cpu ,
356
+ "goarch" : goarch ,
357
+ "goos" : goos ,
358
+ "repository" : repository ,
359
+ "branch" : branch ,
352
360
// TODO(prattmic): Add pkg, which
353
361
// benchseries currently can't handle.
354
362
}
You can’t perform that action at this time.
0 commit comments