forked from ray-project/ray
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBUILD
114 lines (103 loc) · 3.05 KB
/
BUILD
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
load("//bazel:python.bzl", "py_test_run_all_subdirectory")
# 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",
srcs = glob(
["**/*.py"],
exclude = ["tests/*"],
),
)
py_library(
name = "conftest",
srcs = ["tests/conftest.py"],
deps = ["//python/ray/tests:conftest"],
)
py_test_run_all_subdirectory(
size = "medium",
include = ["**/test*.py"],
exclude = [
"client/node_modules/**",
"modules/job/tests/test_cli_integration.py",
"modules/job/tests/test_http_job_server.py",
"modules/node/tests/test_node.py",
"tests/test_dashboard.py",
"tests/test_state_head.py",
"modules/serve/tests/test_serve_dashboard.py",
],
extra_srcs = [],
data = [
"modules/job/tests/backwards_compatibility_scripts/test_backwards_compatibility.sh",
"modules/job/tests/backwards_compatibility_scripts/script.py",
"modules/job/tests/pip_install_test-0.5-py3-none-any.whl",
"modules/tests/test_config_files/basic_runtime_env.yaml",
] + glob([
"modules/job/tests/subprocess_driver_scripts/*.py",
]),
deps = [":conftest"],
tags = ["exclusive", "team:serve"],
)
py_test(
name="test_cli_integration",
size="large",
srcs = ["modules/job/tests/test_cli_integration.py"],
deps = [":conftest"],
tags = ["exclusive", "team:serve"],
)
py_test(
name = "test_http_job_server",
size = "large",
srcs = ["modules/job/tests/test_http_job_server.py"],
data = [
"modules/job/tests/backwards_compatibility_scripts/test_backwards_compatibility.sh",
"modules/job/tests/backwards_compatibility_scripts/script.py",
"modules/job/tests/pip_install_test-0.5-py3-none-any.whl",
"modules/tests/test_config_files/basic_runtime_env.yaml",
] + glob([
"modules/job/tests/subprocess_driver_scripts/*.py",
]),
deps = [":conftest"],
tags = ["exclusive", "team:serve"],
)
py_test(
name = "test_node",
size = "medium",
srcs = ["modules/node/tests/test_node.py"],
deps = [":conftest"],
tags = ["exclusive", "team:serve"],
)
py_test(
name = "test_dashboard",
size = "medium",
srcs = ["tests/test_dashboard.py"],
deps = [":conftest"],
tags = ["exclusive", "team:serve", "minimal"],
)
py_test(
name = "test_metrics_integration",
size = "medium",
srcs = ["modules/tests/test_metrics_integration.py"],
deps = [":conftest"],
tags = ["exclusive", "team:clusters"],
)
py_test(
name = "test_state_head",
size = "small",
srcs = ["tests/test_state_head.py"],
tags = ["team:core"],
deps = [":conftest"],
)
py_test(
name = "test_serve_dashboard",
size = "large",
srcs = ["modules/serve/tests/test_serve_dashboard.py"],
tags = ["team:serve"],
deps = [":conftest"],
)
py_test(
name = "test_data_head",
size = "small",
srcs = ["modules/data/tests/test_data_head.py"],
tags = ["team:data"],
deps = [":conftest"],
)