blob: addfcc0c224cf49b558100c45a4c8bc6defe605c [file] [log] [blame]
load("//bazel/go:go_test.bzl", "go_test")
load("@io_bazel_rules_go//go:def.bzl", "go_library")
go_library(
name = "sqlregressionstore",
srcs = ["sqlregressionstore.go"],
importpath = "go.skia.org/infra/perf/go/regression/sqlregressionstore",
visibility = ["//visibility:public"],
deps = [
"//go/metrics2",
"//go/skerr",
"//go/sklog",
"//perf/go/alerts",
"//perf/go/clustering2",
"//perf/go/regression",
"//perf/go/types",
"//perf/go/ui/frame",
"@com_github_jackc_pgx_v4//pgxpool",
],
)
go_test(
name = "sqlregressionstore_test",
srcs = ["sqlregressionstore_test.go"],
data = ["//perf/migrations:cockroachdb"],
embed = [":sqlregressionstore"],
# Perf CockroachDB tests fail intermittently when running locally (i.e. not on RBE) due to tests
# running in parallel against the same CockroachDB instance:
#
# pq: relation "schema_lock" already exists
#
# 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/testutils/unittest",
"//perf/go/regression",
"//perf/go/regression/regressiontest",
"//perf/go/sql/sqltest",
"@com_github_stretchr_testify//assert",
"@com_github_stretchr_testify//require",
],
)