-
Notifications
You must be signed in to change notification settings - Fork 243
/
Copy pathBUCK
155 lines (152 loc) · 5.45 KB
/
BUCK
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
load(
"@prelude-si//:macros.bzl",
"rust_library",
"rust_test",
)
rust_library(
name = "dal",
deps = [
"//lib/audit-database:audit-database",
"//lib/audit-logs-stream:audit-logs-stream",
"//lib/billing-events:billing-events",
"//lib/dal-macros:dal-macros",
"//lib/frigg:frigg",
"//lib/joi-validator:joi-validator",
"//lib/module-index-client:module-index-client",
"//lib/object-tree:object-tree",
"//lib/pending-events:pending-events",
"//lib/pinga-core:pinga-core",
"//lib/rebaser-client:rebaser-client",
"//lib/shuttle-server:shuttle-server",
"//lib/si-crypto:si-crypto",
"//lib/si-data-nats:si-data-nats",
"//lib/si-data-pg:si-data-pg",
"//lib/si-events-rs:si-events",
"//lib/si-frontend-types-rs:si-frontend-types",
"//lib/si-frontend-types-macros:si-frontend-types-macros",
"//lib/si-hash:si-hash",
"//lib/si-id:si-id",
"//lib/si-layer-cache:si-layer-cache",
"//lib/si-pkg:si-pkg",
"//lib/si-runtime-rs:si-runtime",
"//lib/si-settings:si-settings",
"//lib/si-std:si-std",
"//lib/telemetry-nats-rs:telemetry-nats",
"//lib/telemetry-rs:telemetry",
"//lib/telemetry-utils-rs:telemetry-utils",
"//lib/veritech-client:veritech-client",
"//third-party/rust:async-recursion",
"//third-party/rust:async-trait",
"//third-party/rust:base64",
"//third-party/rust:blake3",
"//third-party/rust:chrono",
"//third-party/rust:ciborium",
"//third-party/rust:clap",
"//third-party/rust:convert_case",
"//third-party/rust:derive_more",
"//third-party/rust:diff",
"//third-party/rust:dyn-clone",
"//third-party/rust:futures",
"//third-party/rust:hex",
"//third-party/rust:iftree",
"//third-party/rust:indexmap",
"//third-party/rust:itertools",
"//third-party/rust:jwt-simple",
"//third-party/rust:lazy_static",
"//third-party/rust:once_cell",
"//third-party/rust:paste",
"//third-party/rust:petgraph",
"//third-party/rust:postcard",
"//third-party/rust:postgres-types",
"//third-party/rust:pretty_assertions_sorted",
"//third-party/rust:rand",
"//third-party/rust:refinery",
"//third-party/rust:regex",
"//third-party/rust:remain",
"//third-party/rust:serde",
"//third-party/rust:serde-aux",
"//third-party/rust:serde_json",
"//third-party/rust:serde_with",
"//third-party/rust:sodiumoxide",
"//third-party/rust:strum",
"//third-party/rust:thiserror",
"//third-party/rust:tokio",
"//third-party/rust:tokio-stream",
"//third-party/rust:tokio-util",
"//third-party/rust:tryhard",
"//third-party/rust:ulid",
"//third-party/rust:url",
],
srcs = glob([
"src/**/*.rs",
"src/builtins/func/**",
"src/func/authoring/data/defaults/*.ts",
"src/func/authoring/data/ts_types/*.ts",
"src/migrations/**/*.sql",
"src/queries/**/*.sql",
]),
env = {
"CARGO_MANIFEST_DIR": ".",
},
test_unit_deps = [
"//third-party/rust:tempfile",
],
extra_test_targets = [":test-integration"],
)
rust_test(
name = "test-integration",
deps = [
"//lib/audit-database:audit-database",
"//lib/audit-logs-stream:audit-logs-stream",
"//lib/dal-test:dal-test",
"//lib/pending-events:pending-events",
"//lib/rebaser-server:rebaser-server",
"//lib/si-events-rs:si-events",
"//lib/si-id:si-id",
"//lib/si-frontend-types-rs:si-frontend-types",
"//lib/si-layer-cache:si-layer-cache",
"//lib/si-pkg:si-pkg",
"//lib/veritech-client:veritech-client",
"//third-party/rust:chrono",
"//third-party/rust:base64",
"//third-party/rust:derive_more",
"//third-party/rust:itertools",
"//third-party/rust:petgraph",
"//third-party/rust:pretty_assertions_sorted",
"//third-party/rust:serde",
"//third-party/rust:serde_json",
"//third-party/rust:sodiumoxide",
"//third-party/rust:strum",
"//third-party/rust:tempfile",
"//third-party/rust:tokio",
"//third-party/rust:tokio-util",
"//third-party/rust:ulid",
":dal",
],
crate_root = "tests/integration.rs",
srcs = glob([
"tests/**/*.rs",
"tests/integration_test/external/ignition/*.ign",
]),
env = {
"CARGO_PKG_NAME": "integration",
"RUSTC_BOOTSTRAP": "1",
"CI": "buildkite",
},
resources = {
"cyclone": "//bin/cyclone:cyclone",
"dev.decryption.key": "//lib/veritech-server:dev.decryption.key",
"dev.encryption.key": "//lib/veritech-server:dev.encryption.key",
"dev.jwt_signing_private_key.pem": "//config/keys:dev.jwt_signing_private_key.pem",
"dev.jwt_signing_public_key.pem": "//config/keys:dev.jwt_signing_public_key.pem",
"dev.postgres.root.crt": "//config/keys:dev.postgres.root.crt",
"dev.donkey.key": "//lib/dal:dev.donkey.key",
"lang-js": "//bin/lang-js:bin",
"pkgs_path": "//pkgs:pkgs",
"prod.jwt_signing_public_key.pem": "//config/keys:prod.jwt_signing_public_key.pem",
},
)
export_file(
name = "dev.donkey.key",
visibility = ["PUBLIC"],
)