[bazel] Add bazel_test_benchmark.go task driver and sample CI task.
In a follow-up CL I will land changes to bazel_test_precompiled.go to add support for Perf tasks on Android.
File perf_steps.go contains steps that will be shared between bazel_test_benchmark.go and bazel_test_precompiled.go.
A notable change is that ComputeTaskSpecificGoldAndPerfKeyValuePairs() was renamed to ComputeGoldAndPerfKeyValuePairs() to reflect the fact that it's now used for both Gold and Perf keys that can only be determined by the task driver. Also, this function can now be overwritten from tests via a context key to ensure a deterministic return value.
Suggested review order:
- bazel_test_benchmark.go
- perf_steps.go
- perf_steps_test.go
- bazel_test_benchmark_test.go
- Everything else.
Bug: b/40045301
Change-Id: I0243e6644af488c90292c3b16d805cb28b4b078a
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/767558
Commit-Queue: Leandro Lovisolo <lovisolo@google.com>
Reviewed-by: Kevin Lubick <kjlubick@google.com>
17 files changed