11load (
22 "@prelude-si//:macros.bzl" ,
33 "rust_library" ,
4+ "rust_library_integration_test" ,
45 "rust_test" ,
56)
67
@@ -75,6 +76,83 @@ rust_library(
7576 test_unit_deps = [
7677 "//third-party/rust:tempfile" ,
7778 ],
79+ )
80+
81+ rust_library_integration_test (
82+ name = "dal-integration-test" ,
83+ crate = "dal" ,
84+ deps = [
85+ "//lib/si-cbor:si-cbor" ,
86+ "//lib/council-server:council-server" ,
87+ "//lib/nats-subscriber:nats-subscriber" ,
88+ "//lib/object-tree:object-tree" ,
89+ "//lib/si-crypto:si-crypto" ,
90+ "//lib/si-data-nats:si-data-nats" ,
91+ "//lib/si-data-pg:si-data-pg" ,
92+ "//lib/si-events-rs:si-events" ,
93+ "//lib/si-hash:si-hash" ,
94+ "//lib/si-layer-cache:si-layer-cache" ,
95+ "//lib/si-pkg:si-pkg" ,
96+ "//lib/si-std:si-std" ,
97+ "//lib/telemetry-rs:telemetry" ,
98+ "//lib/telemetry-nats-rs:telemetry-nats" ,
99+ "//lib/veritech-client:veritech-client" ,
100+ "//third-party/rust:async-recursion" ,
101+ "//third-party/rust:async-trait" ,
102+ "//third-party/rust:base64" ,
103+ "//third-party/rust:blake3" ,
104+ "//third-party/rust:chrono" ,
105+ "//third-party/rust:ciborium" ,
106+ "//third-party/rust:convert_case" ,
107+ "//third-party/rust:derive_more" ,
108+ "//third-party/rust:diff" ,
109+ "//third-party/rust:dyn-clone" ,
110+ "//third-party/rust:futures" ,
111+ "//third-party/rust:hex" ,
112+ "//third-party/rust:iftree" ,
113+ "//third-party/rust:itertools" ,
114+ "//third-party/rust:jwt-simple" ,
115+ "//third-party/rust:lazy_static" ,
116+ "//third-party/rust:once_cell" ,
117+ "//third-party/rust:paste" ,
118+ "//third-party/rust:petgraph" ,
119+ "//third-party/rust:postcard" ,
120+ "//third-party/rust:postgres-types" ,
121+ "//third-party/rust:pretty_assertions_sorted" ,
122+ "//third-party/rust:rand" ,
123+ "//third-party/rust:refinery" ,
124+ "//third-party/rust:regex" ,
125+ "//third-party/rust:remain" ,
126+ "//third-party/rust:serde" ,
127+ "//third-party/rust:serde-aux" ,
128+ "//third-party/rust:serde_json" ,
129+ "//third-party/rust:serde_with" ,
130+ "//third-party/rust:sled" ,
131+ "//third-party/rust:sodiumoxide" ,
132+ "//third-party/rust:strum" ,
133+ "//third-party/rust:thiserror" ,
134+ "//third-party/rust:tokio" ,
135+ "//third-party/rust:tokio-stream" ,
136+ "//third-party/rust:ulid" ,
137+ "//third-party/rust:url" ,
138+ ],
139+ rustc_flags = [
140+ "--cfg=integration_test" ,
141+ ],
142+ srcs = glob ([
143+ "src/**/*.rs" ,
144+ "src/builtins/func/**" ,
145+ "src/builtins/schema/data/**/*.json" ,
146+ "src/builtins/schema/definitions/**/*.json" ,
147+ "src/migrations/**/*.sql" ,
148+ "src/queries/**/*.sql" ,
149+ ]),
150+ env = {
151+ "CARGO_MANIFEST_DIR" : "." ,
152+ },
153+ test_unit_deps = [
154+ "//third-party/rust:tempfile" ,
155+ ],
78156 extra_test_targets = [":test-integration" ],
79157)
80158
@@ -83,7 +161,8 @@ rust_test(
83161 deps = [
84162 "//lib/dal-test:dal-test" ,
85163 "//lib/rebaser-core:rebaser-core" ,
86- "//lib/rebaser-server:rebaser-server" ,
164+ "//lib/rebaser-server:rebaser-server-integration-test" ,
165+ "//lib/si-events-rs:si-events" ,
87166 "//lib/si-pkg:si-pkg" ,
88167 "//lib/veritech-client:veritech-client" ,
89168 "//third-party/rust:base64" ,
@@ -98,7 +177,7 @@ rust_test(
98177 "//third-party/rust:tokio" ,
99178 "//third-party/rust:tokio-util" ,
100179 "//third-party/rust:ulid" ,
101- ":dal" ,
180+ ":dal-integration-test " ,
102181 ],
103182 crate_root = "tests/integration.rs" ,
104183 srcs = glob ([
0 commit comments