2020-08-30 14:09:34 +08:00
|
|
|
load("//bazel:python.bzl", "py_test_run_all_subdirectory")
|
|
|
|
|
2020-08-25 04:24:23 +08:00
|
|
|
# This is a dummy test dependency that causes the above tests to be
|
|
|
|
# re-run if any of these files changes.
|
|
|
|
py_library(
|
|
|
|
name = "dashboard_lib",
|
2020-08-30 14:09:34 +08:00
|
|
|
srcs = glob(
|
|
|
|
["**/*.py"],
|
|
|
|
exclude = ["tests/*"],
|
|
|
|
),
|
2020-08-25 04:24:23 +08:00
|
|
|
)
|
|
|
|
|
2022-07-19 12:21:19 +08:00
|
|
|
py_library(
|
|
|
|
name = "conftest",
|
|
|
|
srcs = ["tests/conftest.py"],
|
|
|
|
deps = ["//python/ray/tests:conftest"],
|
|
|
|
)
|
|
|
|
|
2020-08-30 14:09:34 +08:00
|
|
|
py_test_run_all_subdirectory(
|
2021-11-08 23:10:27 -08:00
|
|
|
size = "medium",
|
2020-08-30 14:09:34 +08:00
|
|
|
include = ["**/test*.py"],
|
2022-07-13 09:05:26 -07:00
|
|
|
exclude = [
|
|
|
|
"modules/test/**",
|
|
|
|
"modules/node/tests/test_node.py",
|
|
|
|
"tests/test_dashboard.py",
|
|
|
|
"tests/test_state_head.py"
|
|
|
|
],
|
2020-08-30 14:09:34 +08:00
|
|
|
extra_srcs = [],
|
2022-07-19 12:21:19 +08:00
|
|
|
data = [
|
|
|
|
"modules/job/tests/backwards_compatibility_scripts/test_backwards_compatibility.sh",
|
|
|
|
"modules/job/tests/pip_install_test-0.5-py3-none-any.whl",
|
|
|
|
"modules/snapshot/snapshot_schema.json",
|
|
|
|
"modules/tests/test_config_files/basic_runtime_env.yaml",
|
|
|
|
] + glob([
|
|
|
|
"modules/job/tests/subprocess_driver_scripts/*.py",
|
|
|
|
]),
|
|
|
|
deps = [":conftest"],
|
2021-08-18 18:38:31 -07:00
|
|
|
tags = ["exclusive", "team:serve"],
|
2020-08-25 04:24:23 +08:00
|
|
|
)
|
2020-12-14 15:03:33 -08:00
|
|
|
|
|
|
|
py_test(
|
2021-06-08 10:50:46 +08:00
|
|
|
name = "test_node",
|
2020-12-14 15:03:33 -08:00
|
|
|
size = "medium",
|
2021-06-08 10:50:46 +08:00
|
|
|
srcs = ["modules/node/tests/test_node.py"],
|
2022-07-19 12:21:19 +08:00
|
|
|
deps = [":conftest"],
|
2021-08-18 18:38:31 -07:00
|
|
|
tags = ["exclusive", "team:serve"],
|
2020-12-14 15:03:33 -08:00
|
|
|
)
|
|
|
|
|
|
|
|
py_test(
|
|
|
|
name = "test_dashboard",
|
|
|
|
size = "medium",
|
|
|
|
srcs = ["tests/test_dashboard.py"],
|
2022-07-19 12:21:19 +08:00
|
|
|
deps = [":conftest"],
|
2021-08-18 18:38:31 -07:00
|
|
|
tags = ["exclusive", "team:serve"],
|
2021-01-15 09:43:34 -08:00
|
|
|
)
|
2022-07-13 09:05:26 -07:00
|
|
|
|
|
|
|
py_test(
|
|
|
|
name = "test_state_head",
|
|
|
|
size = "small",
|
|
|
|
srcs = ["tests/test_state_head.py"],
|
|
|
|
tags = ["team:core"],
|
|
|
|
)
|