blob: 8e6514f34d7bb773ce8664f08e409d2f6a5b61f3 [file] [log] [blame]
load("//bazel/go:go_test.bzl", "go_test")
load("@io_bazel_rules_go//go:def.bzl", "go_library")
go_library(
name = "dfbuilder",
srcs = ["dfbuilder.go"],
importpath = "go.skia.org/infra/perf/go/dfbuilder",
visibility = ["//visibility:public"],
deps = [
"//go/metrics2",
"//go/paramtools",
"//go/query",
"//go/skerr",
"//go/sklog",
"//go/timer",
"//go/vec32",
"//perf/go/dataframe",
"//perf/go/git",
"//perf/go/progress",
"//perf/go/tracesetbuilder",
"//perf/go/tracestore",
"//perf/go/types",
"@io_opencensus_go//trace",
"@org_golang_x_sync//errgroup",
],
)
go_test(
name = "dfbuilder_test",
srcs = ["dfbuilder_test.go"],
data = ["//perf/migrations:cockroachdb"],
embed = [":dfbuilder"],
tags = [
# Ensure that no other tests are running at the same time.
#
# This prevents 'pq: relation "schema_lock" already exists' errors due to concurrent
# CockroachDB queries from multiple tests running in parallel.
#
# Reference: https://docs.bazel.build/versions/master/test-encyclopedia.html#tag-conventions
"exclusive",
],
deps = [
"//go/paramtools",
"//go/query",
"//go/testutils/unittest",
"//perf/go/config",
"//perf/go/dataframe",
"//perf/go/git",
"//perf/go/git/gittest",
"//perf/go/progress",
"//perf/go/sql/sqltest",
"//perf/go/tracestore",
"//perf/go/tracestore/sqltracestore",
"//perf/go/types",
"@com_github_stretchr_testify//assert",
"@com_github_stretchr_testify//require",
],
)