[infra] use more unique task id for perf upload

Change-Id: Ic68adf8cb8444b0ad2a704aecd0eb4362a11e27c
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/287386
Reviewed-by: Ravi Mistry <rmistry@google.com>
This commit is contained in:
Kevin Lubick 2020-05-04 13:05:26 -04:00
parent 4b72661368
commit 8a2f29eae7

View File

@ -83,7 +83,9 @@ func main() {
td.Fatal(ctx, skerr.Wrap(err))
}
outputFile := filepath.Join(outputAbsPath, fmt.Sprintf("perf-%s.json", *taskName))
// outputFile name should be unique between tasks, so as to avoid having duplicate name files
// uploaded to GCS.
outputFile := filepath.Join(outputAbsPath, fmt.Sprintf("perf-%s.json", *taskID))
if err := processSkottieFramesData(ctx, outputWithoutResults, benchmarkAbsPath, outputFile); err != nil {
td.Fatal(ctx, skerr.Wrap(err))
}