[bazel] Run Go tests with Bazel in CI.
This CL fixes various (out of date?) Go tests that didn't pass under Bazel, and adds a CI task to run them.
The new CI task uses the cpu_tests.go task driver, which required changing its --test_label argument to support multiple Bazel labels. For more context, see comments in gen_tasks_logic.go.
File //.bazelignore excludes some Recipes dependencies that might not be present in in the CQ environment, but make Bazel trip up when running on a developer workstation.
File //infra/bots/task_drivers/codesize/codesize_test.go requires Git, which is now installed hermetically. This required changes in
//bazel/cipd_install.bzl, which now borrows some code from its Skia Infrastructure counterpart (https://skia.googlesource.com/buildbot/+/716ec65fb647dc4c05cffbb697fa9bdcfa7fc45c/bazel/external/cipd_install.bzl#63).
Bug: b/40045301
Change-Id: Iaacc8fdf098b81fbc268111acb91b32dff6b2b02
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/743056
Reviewed-by: Kevin Lubick <kjlubick@google.com>
Auto-Submit: Leandro Lovisolo <lovisolo@google.com>
Commit-Queue: Leandro Lovisolo <lovisolo@google.com>
12 files changed