-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD.bazel
296 lines (289 loc) · 11.2 KB
/
BUILD.bazel
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
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
load("//:tree.bzl", "tree_test")
load("@npm//:defs.bzl", "npm_link_all_packages")
#[
# genrule(
# name = "gen_out_%s" % i,
# outs = ["out_%s" % i],
# cmd = "touch $@",
# ) for i in range(4000)
#]
#
#sh_test(
# name = "generated_files_test",
# data = ["out_%s" % i for i in range(4000)],
# srcs = ["test.sh"],
#)
#
#tree_test(
# name = "small_tree_artifacts_test",
# files_per_directory = 1,
# directories = 4000,
#)
#
#tree_test(
# name = "med_tree_artifacts_test",
# files_per_directory = 10,
# directories = 4000,
#)
#
#tree_test(
# name = "large_tree_artifacts_test",
# files_per_directory = 100,
# directories = 4000,
#)
#
#tree_test(
# name = "small_tree_runfiles_artifacts_test",
# files_per_directory = 1,
# directories = 4000,
# runfiles_only = True,
#)
#
#tree_test(
# name = "med_tree_runfiles_artifacts_test",
# files_per_directory = 10,
# directories = 4000,
# runfiles_only = True,
#)
#
#tree_test(
# name = "large_tree_runfiles_artifacts_test",
# files_per_directory = 100,
# directories = 4000,
# runfiles_only = True,
#)
npm_link_all_packages(name = "node_modules")
[
genrule(
name = "gen_out_%s" % i,
outs = ["out_%s" % i],
cmd = "touch $@",
) for i in range(50)
]
[
sh_test(
name = "node_modules_test_%s" % i,
data = [
"out_%s" % i,
"//:node_modules/jsdom",
"//:node_modules/@testing-library/react",
"//:node_modules/jsdom-global",
"//:node_modules/fast-check",
"//:node_modules/snap-shot-it",
"//:node_modules/testcheck",
"//:node_modules/showdown-xss-filter",
"//:node_modules/@anthropic-ai/sdk",
"//:node_modules/@aws-crypto/sha256-js",
"//:node_modules/@c88/v8-coverage",
"//:node_modules/@formatjs/intl",
"//:node_modules/@formatjs/intl-localematcher",
"//:node_modules/@googleapis/sheets",
"//:node_modules/@popperjs/core",
"//:node_modules/@sentry/types",
"//:node_modules/@types/chrome-remote-interface",
"//:node_modules/@types/color",
"//:node_modules/@types/dedent",
"//:node_modules/@types/express",
"//:node_modules/@types/functional-red-black-tree",
"//:node_modules/@types/imurmurhash",
"//:node_modules/@types/ip",
"//:node_modules/@types/json-schema",
"//:node_modules/@types/json-stable-stringify",
"//:node_modules/@types/mdurl",
"//:node_modules/@types/moment-timezone",
"//:node_modules/@types/passport-azure-ad",
"//:node_modules/@types/react",
"//:node_modules/@types/react-dom",
"//:node_modules/@types/react-modal",
"//:node_modules/@types/remove-markdown",
"//:node_modules/@types/request",
"//:node_modules/@types/seed-random",
"//:node_modules/@types/semver",
"//:node_modules/@types/showdown",
"//:node_modules/@types/sockjs-client",
"//:node_modules/@types/urijs",
"//:node_modules/@types/uuid",
"//:node_modules/@types/whatwg-mimetype",
"//:node_modules/@types/zxcvbn",
"//:node_modules/aws-sdk",
"//:node_modules/base64-js",
"//:node_modules/benchmark",
"//:node_modules/bignumber.js",
"//:node_modules/chrome-remote-interface",
"//:node_modules/classnames",
"//:node_modules/color",
"//:node_modules/dedent",
"//:node_modules/emotion",
"//:node_modules/express",
"//:node_modules/fast-deep-equal",
"//:node_modules/functional-red-black-tree",
"//:node_modules/immer",
"//:node_modules/imurmurhash",
"//:node_modules/ip",
"//:node_modules/json-schema",
"//:node_modules/json-stable-stringify",
"//:node_modules/mdurl",
"//:node_modules/memoize-one",
"//:node_modules/moment-timezone",
"//:node_modules/openai",
"//:node_modules/openapi3-ts",
"//:node_modules/passport-azure-ad",
"//:node_modules/path-to-regexp",
"//:node_modules/quill-delta",
"//:node_modules/react",
"//:node_modules/react-dom",
"//:node_modules/react-intl",
"//:node_modules/react-markdown",
"//:node_modules/react-modal",
"//:node_modules/remove-markdown",
"//:node_modules/request",
"//:node_modules/seed-random",
"//:node_modules/semver",
"//:node_modules/showdown",
"//:node_modules/simple-markdown",
"//:node_modules/slackify-markdown",
"//:node_modules/sockjs-client",
"//:node_modules/ssf",
"//:node_modules/tiktoken",
"//:node_modules/ulidx",
"//:node_modules/universal-base64url",
"//:node_modules/urijs",
"//:node_modules/uuid",
"//:node_modules/vega",
"//:node_modules/whatwg-mimetype",
"//:node_modules/xml-js",
"//:node_modules/zxcvbn",
"//:node_modules/@anthropic-ai/tokenizer",
"//:node_modules/@aws-sdk/client-appconfig",
"//:node_modules/@aws-sdk/client-athena",
"//:node_modules/@aws-sdk/client-dynamodb",
"//:node_modules/@aws-sdk/client-kinesis",
"//:node_modules/@aws-sdk/client-kms",
"//:node_modules/@aws-sdk/client-rds",
"//:node_modules/@aws-sdk/client-s3",
"//:node_modules/@aws-sdk/client-secrets-manager",
"//:node_modules/@aws-sdk/lib-storage",
"//:node_modules/@aws-sdk/node-http-handler",
"//:node_modules/@aws-sdk/s3-presigned-post",
"//:node_modules/@aws-sdk/s3-request-presigner",
"//:node_modules/@aws-sdk/signature-v4",
"//:node_modules/@aws-sdk/types",
"//:node_modules/@datadog/datadog-api-client",
"//:node_modules/@googleapis/drive",
"//:node_modules/@smithy/types",
"//:node_modules/@types/aws-kcl",
"//:node_modules/@types/aws-lambda",
"//:node_modules/@types/body-parser",
"//:node_modules/opentracing",
"//:node_modules/@types/bytes",
"//:node_modules/@types/cheerio",
"//:node_modules/@types/compression",
"//:node_modules/@types/cookies",
"//:node_modules/@types/cron",
"//:node_modules/@types/deep-diff",
"//:node_modules/@types/diff-match-patch",
"//:node_modules/@types/eslint", # TODO(zbarsky): Not ideal that we run eslint as part of codegen...
"//:node_modules/@types/express-serve-static-core",
"//:node_modules/@types/follow-redirects",
"//:node_modules/@types/fs-extra",
"//:node_modules/@types/glob",
"//:node_modules/@types/hashring",
"//:node_modules/@types/heapdump",
"//:node_modules/@types/html-to-text",
"//:node_modules/@types/jsonwebtoken",
"//:node_modules/@types/jws",
"//:node_modules/@types/mailparser",
"//:node_modules/@types/mime",
"//:node_modules/@types/mime-db",
"//:node_modules/@types/moment",
"//:node_modules/@types/mysql",
"//:node_modules/@types/node-fetch",
"//:node_modules/@types/node-slack",
"//:node_modules/@types/on-headers",
"//:node_modules/@types/psl",
"//:node_modules/@types/qs",
"//:node_modules/@types/s3-download-stream",
"//:node_modules/@types/sanitize-html",
"//:node_modules/@types/shell-escape",
"//:node_modules/@types/shelljs",
"//:node_modules/@types/slug",
"//:node_modules/@types/sockjs",
"//:node_modules/@types/sqlstring",
"//:node_modules/@types/tar-fs",
"//:node_modules/@types/tough-cookie",
"//:node_modules/@types/ua-parser-js",
"//:node_modules/@types/write-file-atomic",
"//:node_modules/abort-controller",
"//:node_modules/airtable",
"//:node_modules/aws-kcl",
"//:node_modules/axios",
"//:node_modules/base64url",
"//:node_modules/body-parser",
"//:node_modules/bytes",
"//:node_modules/cheerio",
"//:node_modules/chrono-node",
"//:node_modules/compression",
"//:node_modules/cookies",
"//:node_modules/cron",
"//:node_modules/csv-parse",
"//:node_modules/csv-stringify",
"//:node_modules/date-fns",
"//:node_modules/deep-diff",
"//:node_modules/diff-match-patch",
"//:node_modules/emotion-server",
"//:node_modules/esbuild", # TODO(zbarsky): shouldn't depend on esbuild
"//:node_modules/eslint",
"//:node_modules/eventemitter3",
"//:node_modules/execa",
"//:node_modules/fast-json-stable-stringify",
"//:node_modules/follow-redirects",
"//:node_modules/fs-extra",
"//:node_modules/glob",
"//:node_modules/google-auth-library",
"//:node_modules/graphql",
"//:node_modules/graphql-tag",
"//:node_modules/hashring",
"//:node_modules/heapdump",
"//:node_modules/html-to-text",
"//:node_modules/http-shutdown",
"//:node_modules/jsonwebtoken",
"//:node_modules/jszip",
"//:node_modules/sockopt",
"//:node_modules/juice",
"//:node_modules/jws",
"//:node_modules/mailparser",
"//:node_modules/maxmind",
"//:node_modules/mime",
"//:node_modules/mime-db",
"//:node_modules/msgpackr",
"//:node_modules/mysql",
"//:node_modules/mysql2",
"//:node_modules/nock",
"//:node_modules/node-fetch",
"//:node_modules/node-slack",
"//:node_modules/on-headers",
"//:node_modules/p-queue",
"//:node_modules/piscina",
"//:node_modules/prettier",
"//:node_modules/psl",
"//:node_modules/redisv4",
"//:node_modules/s3-download-stream",
"//:node_modules/sanitize-html",
"//:node_modules/shell-escape",
"//:node_modules/shelljs",
"//:node_modules/slug",
"//:node_modules/sockjs",
"//:node_modules/source-map",
"//:node_modules/sqlstring",
"//:node_modules/stripe",
"//:node_modules/tar-fs",
"//:node_modules/twilio",
"//:node_modules/typescript", # TODO(zbarsky): shouldn't depend on typescript
"//:node_modules/ua-parser-js",
"//:node_modules/v8-profiler-next",
"//:node_modules/windows-iana",
"//:node_modules/write-file-atomic",
],
srcs = ["test.sh"],
) for i in range(50)
]