blob: 4d7b57b5cd2444acf2a4c310deb275a23b2c9be4 [file] [log] [blame]
load("@io_bazel_rules_go//go:def.bzl", "go_library")
load("//bazel/go:go_test.bzl", "go_test")
go_library(
name = "syncer",
srcs = ["syncer.go"],
importpath = "go.skia.org/infra/task_scheduler/go/syncer",
visibility = ["//visibility:public"],
deps = [
"//bazel/external/cipd/cpython3",
"//bazel/external/cipd/vpython",
"//bazel/go/bazel",
"//go/exec",
"//go/git",
"//go/git/git_common",
"//go/git/repograph",
"//go/metrics2",
"//go/skerr",
"//go/sklog",
"//go/util",
"//task_scheduler/go/types",
],
)
go_test(
name = "syncer_test",
size = "large",
srcs = [
"syncer_manual_test.go",
"syncer_test.go",
],
data = ["//infra/config:recipes.cfg"],
embed = [":syncer"],
deps = [
"//bazel/external/cipd/git",
"//go/depot_tools/testutils",
"//go/exec",
"//go/git",
"//go/git/repograph",
"//go/git/testutils",
"//go/testutils",
"//task_scheduler/go/task_cfg_cache/testutils",
"//task_scheduler/go/types",
"@com_github_stretchr_testify//require",
],
)