blob: c0052cf4e6e96d80927bbb37ac79fda4bafe9479 [file] [log] [blame]
load("@io_bazel_rules_go//go:def.bzl", "go_library")
load("//bazel/go:go_test.bzl", "go_test")
go_library(
name = "codereview",
srcs = [
"codereview.go",
"config.go",
"roll.go",
],
importpath = "go.skia.org/infra/autoroll/go/codereview",
visibility = ["//visibility:public"],
deps = [
"//autoroll/go/config",
"//autoroll/go/recent_rolls",
"//autoroll/go/revision",
"//autoroll/go/state_machine",
"//go/autoroll",
"//go/gerrit",
"//go/github",
"//go/gitiles",
"//go/skerr",
"//go/sklog",
"//go/travisci",
"//go/util",
"@com_github_cenkalti_backoff//:backoff",
"@com_github_google_go_github_v29//github",
],
)
go_test(
name = "codereview_test",
srcs = ["roll_test.go"],
embed = [":codereview"],
# 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/config",
"//autoroll/go/recent_rolls",
"//autoroll/go/revision",
"//go/autoroll",
"//go/deepequal/assertdeep",
"//go/ds",
"//go/ds/testutil",
"//go/gerrit",
"//go/gerrit/testutils",
"//go/github",
"//go/mockhttpclient",
"//go/testutils",
"@com_github_golang_protobuf//ptypes:go_default_library_gen",
"@com_github_google_go_github_v29//github",
"@com_github_stretchr_testify//require",
"@org_chromium_go_luci//buildbucket/proto",
],
)