blob: 0f8b87644e4f288b427d3edc75d60f5a21ce442f [file] [log] [blame]
load("@io_bazel_rules_go//go:def.bzl", "go_library")
load("//bazel/go:go_test.bzl", "go_test")
go_library(
name = "modes",
srcs = ["modes.go"],
importpath = "go.skia.org/infra/autoroll/go/modes",
visibility = ["//visibility:public"],
deps = [
"//go/ds",
"//go/skerr",
"//go/util",
"@com_google_cloud_go_datastore//:datastore",
],
)
go_test(
name = "modes_test",
srcs = ["modes_test.go"],
embed = [":modes"],
# Datastore tests fail intermittently when running locally (i.e. not on RBE) due to tests
# running in parallel against the same Datastore emulator instance:
#
# rpc error: code = Aborted desc = too much contention on these datastore entities.
#
# This is not an issue on RBE because each test target starts its own emulator instance.
#
# https://docs.bazel.build/versions/master/be/common-definitions.html#common-attributes-tests
flaky = True,
deps = [
"//go/ds",
"//go/ds/testutil",
"@com_github_stretchr_testify//require",
],
)