-
Notifications
You must be signed in to change notification settings - Fork 54
Expand file tree
/
Copy pathBUILD
More file actions
189 lines (178 loc) · 5.1 KB
/
Copy pathBUILD
File metadata and controls
189 lines (178 loc) · 5.1 KB
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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
package(default_visibility = ["//integration_test:__subpackages__"])
# Shared library: orchestration (manager + vLLM + driver + comparison) and the
# verifying connector injected into vLLM via kv_connector_module_path.
py_library(
name = "e2e_lib",
srcs = [
"e2e_lib.py",
"lib_utils.py",
"servers.py",
"test_connector.py",
],
imports = ["."],
tags = ["no-remote-exec"],
deps = ["@pip_cpu//requests"],
)
py_test(
name = "test_basic",
timeout = "eternal",
srcs = ["test_basic.py"],
data = [
"//kv_cache_manager:kv_cache_manager_bin",
],
imports = ["."],
tags = [
"exclusive", # GPU tests must run serially to avoid CUDA OOM contention
"gpu", # requires 1+ GPU
"manual", # needs a GPU machine + vLLM venv + model; see README.md
"no-remote-exec",
],
deps = [":e2e_lib"],
)
py_test(
name = "test_concurrent",
timeout = "eternal",
srcs = ["test_concurrent.py"],
data = [
"//kv_cache_manager:kv_cache_manager_bin",
],
imports = ["."],
tags = [
"exclusive", # GPU tests must run serially to avoid CUDA OOM contention
"gpu", # requires 1+ GPU
"manual", # needs a GPU machine + vLLM venv + model; see README.md
"no-remote-exec",
],
deps = [":e2e_lib"],
)
py_test(
name = "test_tp",
timeout = "eternal",
srcs = ["test_tp.py"],
data = [
"//kv_cache_manager:kv_cache_manager_bin",
],
imports = ["."],
tags = [
"exclusive", # GPU tests must run serially to avoid CUDA OOM contention
"gpu", # requires 1+ GPU
"manual", # needs a GPU machine + vLLM venv + model; see README.md
"no-remote-exec",
],
deps = [":e2e_lib"],
)
py_test(
name = "test_full_hit",
timeout = "eternal",
srcs = ["test_full_hit.py"],
data = [
"//kv_cache_manager:kv_cache_manager_bin",
],
imports = ["."],
tags = [
"exclusive", # GPU tests must run serially to avoid CUDA OOM contention
"gpu", # requires 1+ GPU
"manual", # needs a GPU machine + vLLM venv + model; see README.md
"no-remote-exec",
],
deps = [":e2e_lib"],
)
py_test(
name = "test_partial_hit",
timeout = "eternal",
srcs = ["test_partial_hit.py"],
data = [
"//kv_cache_manager:kv_cache_manager_bin",
],
imports = ["."],
tags = [
"exclusive", # GPU tests must run serially to avoid CUDA OOM contention
"gpu", # requires 1+ GPU
"manual", # needs a GPU machine + vLLM venv + model; see README.md
"no-remote-exec",
],
deps = [":e2e_lib"],
)
py_test(
name = "test_load_failure",
timeout = "eternal",
srcs = ["test_load_failure.py"],
data = [
"//kv_cache_manager:kv_cache_manager_bin",
],
imports = ["."],
tags = [
"exclusive", # GPU tests must run serially to avoid CUDA OOM contention
"gpu", # requires 1+ GPU
"manual", # needs a GPU machine + vLLM venv + model; see README.md
"no-remote-exec",
],
deps = [":e2e_lib"],
)
py_test(
name = "test_multi_turn",
timeout = "eternal",
srcs = ["test_multi_turn.py"],
data = [
"//kv_cache_manager:kv_cache_manager_bin",
],
imports = ["."],
tags = [
"exclusive", # GPU tests must run serially to avoid CUDA OOM contention
"gpu", # requires 1+ GPU
"manual", # needs a GPU machine + vLLM venv + model; see README.md
"no-remote-exec",
],
deps = [":e2e_lib"],
)
py_test(
name = "test_cross_request_prefix",
timeout = "eternal",
srcs = ["test_cross_request_prefix.py"],
data = [
"//kv_cache_manager:kv_cache_manager_bin",
],
imports = ["."],
tags = [
"exclusive", # GPU tests must run serially to avoid CUDA OOM contention
"gpu", # requires 1+ GPU
"manual", # needs a GPU machine + vLLM venv + model; see README.md
"no-remote-exec",
],
deps = [":e2e_lib"],
)
# Meta-test: injects an off-by-one into the connector's token translation and
# asserts the KV verification FAILS -- proof the harness is not vacuous.
py_test(
name = "test_mutation",
timeout = "eternal",
srcs = ["test_mutation.py"],
data = [
"//kv_cache_manager:kv_cache_manager_bin",
],
imports = ["."],
tags = [
"exclusive", # GPU tests must run serially to avoid CUDA OOM contention
"gpu", # requires 1+ GPU
"manual", # needs a GPU machine + vLLM venv + model; see README.md
"no-remote-exec",
],
deps = [":e2e_lib"],
)
# Wildcards skip "manual" targets; run the whole suite explicitly with
# bazelisk test //integration_test/vllm_e2e:e2e_tests
test_suite(
name = "e2e_tests",
tags = ["manual"], # keep wildcard builds from expanding into the GPU tests
tests = [
":test_basic",
":test_concurrent",
":test_cross_request_prefix",
":test_full_hit",
":test_load_failure",
":test_multi_turn",
":test_mutation",
":test_partial_hit",
":test_tp",
],
)