| load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") |
| |
| go_library( |
| name = "scheduling", |
| srcs = [ |
| "busy_bots.go", |
| "cache_wrapper.go", |
| "task_candidate.go", |
| "task_scheduler.go", |
| ], |
| importpath = "go.skia.org/infra/task_scheduler/go/scheduling", |
| visibility = ["//visibility:public"], |
| deps = [ |
| "//go/cas", |
| "//go/cleanup", |
| "//go/common", |
| "//go/firestore", |
| "//go/gcs", |
| "//go/git/repograph", |
| "//go/isolate", |
| "//go/metrics2", |
| "//go/skerr", |
| "//go/sklog", |
| "//go/swarming", |
| "//go/timeout", |
| "//go/trie", |
| "//go/util", |
| "//task_scheduler/go/db", |
| "//task_scheduler/go/db/cache", |
| "//task_scheduler/go/isolate_cache", |
| "//task_scheduler/go/skip_tasks", |
| "//task_scheduler/go/specs", |
| "//task_scheduler/go/task_cfg_cache", |
| "//task_scheduler/go/types", |
| "//task_scheduler/go/window", |
| "@com_github_hashicorp_go_multierror//:go-multierror", |
| "@org_chromium_go_luci//common/api/swarming/swarming/v1:swarming", |
| "@org_chromium_go_luci//common/isolated", |
| "@org_golang_x_oauth2//:oauth2", |
| ], |
| ) |
| |
| go_test( |
| name = "scheduling_test", |
| srcs = [ |
| "busy_bots_test.go", |
| "task_candidate_test.go", |
| "task_scheduler_test.go", |
| ], |
| embed = [":scheduling"], |
| deps = [ |
| "//go/cas/mocks", |
| "//go/deepequal", |
| "//go/deepequal/assertdeep", |
| "//go/firestore", |
| "//go/gcs/mem_gcsclient", |
| "//go/git", |
| "//go/git/repograph", |
| "//go/git/testutils/mem_git", |
| "//go/gitiles", |
| "//go/gitstore", |
| "//go/gitstore/mem_gitstore", |
| "//go/isolate", |
| "//go/mockhttpclient", |
| "//go/sktest", |
| "//go/swarming", |
| "//go/testutils", |
| "//go/testutils/unittest", |
| "//go/util", |
| "//go/vcsinfo", |
| "//task_scheduler/go/db", |
| "//task_scheduler/go/db/cache", |
| "//task_scheduler/go/db/memory", |
| "//task_scheduler/go/isolate_cache", |
| "//task_scheduler/go/skip_tasks", |
| "//task_scheduler/go/specs", |
| "//task_scheduler/go/task_cfg_cache", |
| "//task_scheduler/go/task_cfg_cache/testutils", |
| "//task_scheduler/go/testutils", |
| "//task_scheduler/go/types", |
| "//task_scheduler/go/window", |
| "@com_github_stretchr_testify//require", |
| "@com_google_cloud_go_storage//:storage", |
| "@org_chromium_go_luci//common/api/swarming/swarming/v1:swarming", |
| ], |
| ) |