blob: 8592e396e539c88e9a48d98cff8d23299811ce37 [file] [log] [blame]
load("//bazel/go:go_test.bzl", "go_test")
load("@io_bazel_rules_go//go:def.bzl", "go_library")
go_library(
name = "status",
srcs = [
"cache.go",
"status.go",
],
importpath = "go.skia.org/infra/autoroll/go/status",
visibility = ["//visibility:public"],
deps = [
"//autoroll/go/revision",
"//go/autoroll",
"//go/ds",
"//go/sklog",
"//go/util",
"@com_google_cloud_go_datastore//:datastore",
],
)
go_test(
name = "status_test",
srcs = ["status_test.go"],
embed = [":status"],
# 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 = [
"//autoroll/go/modes",
"//autoroll/go/revision",
"//autoroll/go/strategy",
"//go/autoroll",
"//go/deepequal/assertdeep",
"//go/ds",
"//go/ds/testutil",
"//go/testutils/unittest",
"@com_github_stretchr_testify//require",
],
)