Skip to content

Commit 39260a0

Browse files
committed
Merge remote-tracking branch 'upstream/main' into dov/password-auth-scratch
2 parents e8478be + 86e1977 commit 39260a0

File tree

504 files changed

+20603
-7604
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

504 files changed

+20603
-7604
lines changed

Cargo.lock

Lines changed: 378 additions & 185 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 31 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,29 @@
11
[workspace]
22
members = [
3+
"misc/bazel/cargo-gazelle",
34
"src/adapter",
45
"src/adapter-types",
56
"src/alloc",
67
"src/alloc-default",
78
"src/arrow-util",
89
"src/audit-log",
10+
"src/auth",
911
"src/avro",
10-
"src/aws-util",
1112
"src/aws-secrets-controller",
13+
"src/aws-util",
1214
"src/balancerd",
1315
"src/build-info",
1416
"src/build-tools",
15-
"src/ccsr",
1617
"src/catalog",
1718
"src/catalog-debug",
1819
"src/catalog-protos",
20+
"src/ccsr",
1921
"src/cloud-api",
2022
"src/cloud-provider",
23+
"src/cloud-resources",
2124
"src/cluster",
22-
"src/clusterd",
2325
"src/cluster-client",
26+
"src/clusterd",
2427
"src/compute",
2528
"src/compute-client",
2629
"src/compute-types",
@@ -32,6 +35,8 @@ members = [
3235
"src/dyncfgs",
3336
"src/environmentd",
3437
"src/expr",
38+
"src/expr-derive",
39+
"src/expr-derive-impl",
3540
"src/expr-parser",
3641
"src/expr-test-util",
3742
"src/fivetran-destination",
@@ -44,13 +49,14 @@ members = [
4449
"src/license-keys",
4550
"src/lowertest",
4651
"src/lowertest-derive",
52+
"src/lsp-server",
53+
"src/materialized",
4754
"src/materialized",
4855
"src/metabase",
56+
"src/metrics",
4957
"src/mysql-util",
5058
"src/mz",
51-
"src/lsp-server",
52-
"src/materialized",
53-
"src/metrics",
59+
"src/mz-debug",
5460
"src/npm",
5561
"src/orchestrator",
5662
"src/orchestrator-kubernetes",
@@ -64,7 +70,6 @@ members = [
6470
"src/persist-cli",
6571
"src/persist-client",
6672
"src/persist-proc",
67-
"src/txn-wal",
6873
"src/persist-types",
6974
"src/pgcopy",
7075
"src/pgrepr",
@@ -78,23 +83,23 @@ members = [
7883
"src/prof",
7984
"src/prof-http",
8085
"src/proto",
86+
"src/regexp",
8187
"src/repr",
8288
"src/repr-test-util",
8389
"src/rocksdb",
8490
"src/rocksdb-types",
8591
"src/s3-datagen",
8692
"src/secrets",
8793
"src/segment",
88-
"src/self-managed-debug",
8994
"src/server-core",
9095
"src/service",
91-
"src/ssh-util",
9296
"src/sql",
9397
"src/sql-lexer",
9498
"src/sql-parser",
9599
"src/sql-pretty",
96100
"src/sql-server-util",
97101
"src/sqllogictest",
102+
"src/ssh-util",
98103
"src/storage",
99104
"src/storage-client",
100105
"src/storage-controller",
@@ -106,14 +111,11 @@ members = [
106111
"src/tls-util",
107112
"src/tracing",
108113
"src/transform",
109-
"src/cloud-resources",
114+
"src/txn-wal",
110115
"src/walkabout",
111116
"src/workspace-hack",
112117
"test/metabase/smoketest",
113118
"test/test-util",
114-
"src/regexp",
115-
"misc/bazel/cargo-gazelle",
116-
"src/auth",
117119
]
118120

119121
# We make all members of the workspace default members, *except* for a few
@@ -156,6 +158,8 @@ default-members = [
156158
"src/dyncfgs",
157159
"src/environmentd",
158160
"src/expr",
161+
"src/expr-derive",
162+
"src/expr-derive-impl",
159163
"src/expr-parser",
160164
"src/expr-test-util",
161165
"src/frontegg-auth",
@@ -173,6 +177,7 @@ default-members = [
173177
"src/metrics",
174178
"src/mysql-util",
175179
"src/mz",
180+
"src/mz-debug",
176181
"src/npm",
177182
"src/orchestrator",
178183
"src/orchestrator-kubernetes",
@@ -207,7 +212,6 @@ default-members = [
207212
"src/s3-datagen",
208213
"src/secrets",
209214
"src/segment",
210-
"src/self-managed-debug",
211215
"src/server-core",
212216
"src/service",
213217
"src/sql",
@@ -240,6 +244,8 @@ exclude = [
240244
# All WASM crates are split into their own workspace to avoid needles cache
241245
# invalidations for the core Mz crates.
242246
"misc/wasm/*",
247+
# Ignore any Rust dependencies that python packages might pull in.
248+
"misc/python/venv/*",
243249
]
244250

245251
# Use Cargo's new feature resolver, which can handle target-specific features.
@@ -271,6 +277,10 @@ differential-dataflow = { opt-level = 3 }
271277
mz-compute = { opt-level = 3 }
272278
mz-transform = { opt-level = 3 }
273279

280+
# Recommended by insta
281+
insta = { opt-level = 3 }
282+
similar = { opt-level = 3 }
283+
274284
[profile.release]
275285
# Compile time seems similar to "lto = false", runtime ~10% faster
276286
lto = "thin"
@@ -313,11 +323,8 @@ serde-value = { git = "https://github.com/MaterializeInc/serde-value.git" }
313323
# upstream.
314324
tracing-opentelemetry = { git = "https://github.com/MaterializeInc/tracing-opentelemetry.git" }
315325

316-
# Waiting on https://github.com/launchdarkly/rust-server-sdk/pull/20 to make
317-
# it into a release.
318-
# Also bumps lru to 0.12.0
319-
# Needs a more complex update to 2.0.0, with a custom TLS connector.
320-
launchdarkly-server-sdk = { git = "https://github.com/MaterializeInc/rust-server-sdk", rev = "87c0f67aa51fa936d3a6a49605e8e3f565d15281" }
326+
# Waiting for resolution of https://github.com/launchdarkly/rust-server-sdk/issues/116
327+
launchdarkly-server-sdk = { git = "https://github.com/MaterializeInc/rust-server-sdk", rev = "23666d095c39adc53a151969c1aa1e1ec484f3e6" }
321328

322329
# Waiting on https://github.com/edenhill/librdkafka/pull/4051.
323330
rdkafka = { git = "https://github.com/MaterializeInc/rust-rdkafka.git" }
@@ -327,6 +334,11 @@ rdkafka-sys = { git = "https://github.com/MaterializeInc/rust-rdkafka.git" }
327334
reqwest-middleware = { git = "https://github.com/MaterializeInc/reqwest-middleware.git" }
328335
reqwest-retry = { git = "https://github.com/MaterializeInc/reqwest-middleware.git" }
329336

337+
# Need to upstream a few PRs related to test builders.
338+
#
339+
# Note: All changes in our fork of tiberius should be pushed to the `mz_changes` branch.
340+
tiberius = { git = "https://github.com/MaterializeInc/tiberius", rev = "06423ac498a78ba2a1df8fd595208e6bdf0d5939" }
341+
330342
# BEGIN LINT CONFIG
331343
# DO NOT EDIT. Automatically generated by bin/gen-lints.
332344
[workspace.lints.rust]

LICENSE

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Business Source License 1.1
1313

1414
Licensor: Materialize, Inc.
1515

16-
Licensed Work: Materialize Version 20250325
16+
Licensed Work: Materialize Version 20250408
1717
The Licensed Work is © 2025 Materialize, Inc.
1818

1919
Additional Use Grant: Within a single installation of the Licensed Work,
@@ -39,7 +39,7 @@ Additional Use Grant: Within a single installation of the Licensed Work,
3939
whose definitions are controlled by such third
4040
parties.
4141

42-
Change Date: March 25, 2029
42+
Change Date: April 08, 2029
4343

4444
Change License: Apache License, Version 2.0
4545

WORKSPACE

Lines changed: 38 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ included by calling a `*_dependencies()` macro.
3131
#
3232
# Note: In an ideal world the two rule sets would be combined into one.
3333

34-
BAZEL_SKYLIB_VERSION = "1.6.1"
34+
BAZEL_SKYLIB_VERSION = "1.7.1"
3535

36-
BAZEL_SKYLIB_INTEGRITY = "sha256-nziIakBUjG6WwQa3UvJCEw7hGqoGila6flb0UR8z5PI="
36+
BAZEL_SKYLIB_INTEGRITY = "sha256-vCg8381SalLDIBJ5zaS8KYZS76iYsQtNsIN9xRZSdW8="
3737

3838
maybe(
3939
http_archive,
@@ -65,15 +65,22 @@ aspect_bazel_lib_dependencies()
6565
# Register bazel-lib toolchains
6666
aspect_bazel_lib_register_toolchains()
6767

68+
# C Repositories
69+
#
70+
# Loads all of the C dependencies that we rely on.
71+
load("//misc/bazel/c_deps:repositories.bzl", "c_repositories")
72+
73+
c_repositories()
74+
6875
# `rules_cc`
6976
#
7077
# Rules for building C/C++ projects. These are slowly being upstreamed into the
7178
# Bazel source tree, but some projects (e.g. protobuf) still depend on this
7279
# rule set.
7380

74-
RULES_CC_VERSION = "0.0.9"
81+
RULES_CC_VERSION = "0.1.1"
7582

76-
RULES_CC_INTEGRITY = "sha256-IDeHW5pEVtzkp50RKorohbvEqtlo5lh9ym5k86CQDN8="
83+
RULES_CC_INTEGRITY = "sha256-cS13hosxUt1hjE1k+q3e/MWWX5D13m5t0dXdzQvoLUI="
7784

7885
maybe(
7986
http_archive,
@@ -300,29 +307,22 @@ load("//misc/bazel/c_deps:extra_setup.bzl", "protoc_setup")
300307

301308
protoc_setup()
302309

303-
# C Repositories
304-
#
305-
# Loads all of the C dependencies that we rely on.
306-
load("//misc/bazel/c_deps:repositories.bzl", "c_repositories")
307-
308-
c_repositories()
309-
310310
# `rules_rust`
311311
#
312312
# Rules for building Rust crates, and several convienence macros for building all transitive
313313
# dependencies.
314314

315-
RULES_RUST_VERSION = "0.54.2"
315+
RULES_RUST_VERSION = "0.59.3"
316316

317-
RULES_RUST_INTEGRITY = "sha256-6hXbBNIbd6EvuBc/B5RMmAEhxLy5cs8EGuHpjqwjcz4="
317+
RULES_RUST_INTEGRITY = "sha256-pPPz9Yewxoqs6ZhcQAaI8AeFCy/S/ipQTEkTbZ3syz4="
318318

319319
maybe(
320320
http_archive,
321321
name = "rules_rust",
322322
integrity = RULES_RUST_INTEGRITY,
323-
strip_prefix = "rules_rust-v{0}".format(RULES_RUST_VERSION),
323+
strip_prefix = "rules_rust-mz-{0}".format(RULES_RUST_VERSION),
324324
urls = [
325-
"https://github.com/MaterializeInc/rules_rust/releases/download/v{0}/rules_rust-v{0}.tar.zst".format(RULES_RUST_VERSION),
325+
"https://github.com/MaterializeInc/rules_rust/releases/download/mz-{0}/rules_rust-mz-{0}.tar.zst".format(RULES_RUST_VERSION),
326326
],
327327
)
328328

@@ -419,7 +419,17 @@ rust_toolchains(
419419
# Rules and Toolchains for running [`bindgen`](https://github.com/rust-lang/rust-bindgen)
420420
# a tool for generating Rust FFI bindings to C.
421421

422-
load("@rules_rust//bindgen:repositories.bzl", "rust_bindgen_dependencies")
422+
maybe(
423+
http_archive,
424+
name = "rules_rust_bindgen",
425+
integrity = RULES_RUST_INTEGRITY,
426+
strip_prefix = "rules_rust-mz-{0}/extensions/bindgen".format(RULES_RUST_VERSION),
427+
urls = [
428+
"https://github.com/MaterializeInc/rules_rust/releases/download/mz-{0}/rules_rust-mz-{0}.tar.zst".format(RULES_RUST_VERSION),
429+
],
430+
)
431+
432+
load("@rules_rust_bindgen//:repositories.bzl", "rust_bindgen_dependencies")
423433

424434
rust_bindgen_dependencies()
425435

@@ -461,6 +471,7 @@ crates_repository(
461471
# Note: The below targets are from the additive build file.
462472
additive_build_file = "@//misc/bazel/c_deps:rust-sys/BUILD.rocksdb.bazel",
463473
compile_data = [":out_dir"],
474+
compile_data_glob_excludes = ["rocksdb/**"],
464475
gen_build_script = False,
465476
rustc_env = {
466477
"OUT_DIR": "$(execpath :out_dir)",
@@ -558,20 +569,20 @@ crates_repository(
558569
"rustc-demangle": [crate.annotation(rustc_flags = ["-Copt-level=3"])],
559570
"timely": [crate.annotation(rustc_flags = ["-Copt-level=3"])],
560571
"differential-dataflow": [crate.annotation(rustc_flags = ["-Copt-level=3"])],
572+
"insta": [crate.annotation(rustc_flags = ["-Copt-level=3"])],
573+
"similar": [crate.annotation(rustc_flags = ["-Copt-level=3"])],
561574
},
562575
cargo_config = "//:.cargo/config.toml",
563576
cargo_lockfile = "//:Cargo.lock",
564577
generator_sha256s = {
565-
"aarch64-apple-darwin": "8204746334a17823bd6a54ce2c3821b0bdca96576700d568e2ca2bd8224dc0ea",
566-
"x86_64-apple-darwin": "2ee14b230d32c05415852b7a388b76e700c87c506459e5b31ced19d6c131b6d0",
567-
"aarch64-unknown-linux-gnu": "3792feb084bd43b9a7a9cd75be86ee9910b46db59360d6b29c9cca2f8889a0aa",
568-
"x86_64-unknown-linux-gnu": "2b9d07f34694f63f0cc704989ad6ec148ff8d126579832f4f4d88edea75875b2",
578+
"aarch64-apple-darwin": "c38c9c0efc11fcf9c32b9e0f4f4849df7c823f207c7f5ba5f6ab1e0e2167693d",
579+
"aarch64-unknown-linux-gnu": "5bdc9a10ec5f17f5140a81ce7cb0c0ce6e82d4d862d3ce3a301ea23f72f20630",
580+
"x86_64-unknown-linux-gnu": "abcd8212d64ea4c0f5e856af663c05ebeb2800a02c251f6eb62061f4e8ca1735",
569581
},
570582
generator_urls = {
571-
"aarch64-apple-darwin": "https://github.com/MaterializeInc/rules_rust/releases/download/v{0}/cargo-bazel-aarch64-apple-darwin".format(RULES_RUST_VERSION),
572-
"x86_64-apple-darwin": "https://github.com/MaterializeInc/rules_rust/releases/download/v{0}/cargo-bazel-x86_64-apple-darwin".format(RULES_RUST_VERSION),
573-
"aarch64-unknown-linux-gnu": "https://github.com/MaterializeInc/rules_rust/releases/download/v{0}/cargo-bazel-aarch64-unknown-linux-gnu".format(RULES_RUST_VERSION),
574-
"x86_64-unknown-linux-gnu": "https://github.com/MaterializeInc/rules_rust/releases/download/v{0}/cargo-bazel-x86_64-unknown-linux-gnu".format(RULES_RUST_VERSION),
583+
"aarch64-apple-darwin": "https://github.com/MaterializeInc/rules_rust/releases/download/mz-{0}/cargo-bazel-aarch64-apple-darwin".format(RULES_RUST_VERSION),
584+
"aarch64-unknown-linux-gnu": "https://github.com/MaterializeInc/rules_rust/releases/download/mz-{0}/cargo-bazel-aarch64-unknown-linux-gnu".format(RULES_RUST_VERSION),
585+
"x86_64-unknown-linux-gnu": "https://github.com/MaterializeInc/rules_rust/releases/download/mz-{0}/cargo-bazel-x86_64-unknown-linux-gnu".format(RULES_RUST_VERSION),
575586
},
576587
# When `isolated` is true, Bazel will create a new `$CARGO_HOME`, i.e. it
577588
# won't use `~/.cargo`, when re-pinning. This is nice but not totally
@@ -611,6 +622,8 @@ crates_repository(
611622
"//:src/dyncfg-launchdarkly/Cargo.toml",
612623
"//:src/dyncfgs/Cargo.toml",
613624
"//:src/environmentd/Cargo.toml",
625+
"//:src/expr-derive/Cargo.toml",
626+
"//:src/expr-derive-impl/Cargo.toml",
614627
"//:src/expr-parser/Cargo.toml",
615628
"//:src/expr-test-util/Cargo.toml",
616629
"//:src/expr/Cargo.toml",
@@ -630,6 +643,7 @@ crates_repository(
630643
"//:src/metrics/Cargo.toml",
631644
"//:src/mysql-util/Cargo.toml",
632645
"//:src/mz/Cargo.toml",
646+
"//:src/mz-debug/Cargo.toml",
633647
"//:src/npm/Cargo.toml",
634648
"//:src/orchestrator-kubernetes/Cargo.toml",
635649
"//:src/orchestrator-process/Cargo.toml",
@@ -664,7 +678,6 @@ crates_repository(
664678
"//:src/s3-datagen/Cargo.toml",
665679
"//:src/secrets/Cargo.toml",
666680
"//:src/segment/Cargo.toml",
667-
"//:src/self-managed-debug/Cargo.toml",
668681
"//:src/server-core/Cargo.toml",
669682
"//:src/service/Cargo.toml",
670683
"//:src/sql-lexer/Cargo.toml",

bin/bump-version

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ version=${1#v}
3838

3939
sed -i.bak \
4040
"s/^version = .*/version = \"$version\"/" \
41-
src/{clusterd,environmentd,materialized,persist-client,testdrive,catalog-debug,balancerd,orchestratord,self-managed-debug}/Cargo.toml
41+
src/{clusterd,environmentd,materialized,persist-client,testdrive,catalog-debug,balancerd,orchestratord,mz-debug}/Cargo.toml
4242

4343
if ! [[ "$version" = *-dev* ]]; then
4444
sed -i.bak \
@@ -58,7 +58,7 @@ else
5858
done
5959
fi
6060

61-
rm -f src/{clusterd,environmentd,materialized,persist-client,testdrive,catalog-debug,balancerd,orchestratord,self-managed-debug}/Cargo.toml.bak LICENSE.bak
61+
rm -f src/{clusterd,environmentd,materialized,persist-client,testdrive,catalog-debug,balancerd,orchestratord,mz-debug}/Cargo.toml.bak LICENSE.bak
6262

6363
cargo update --workspace
6464

bin/ci-builder

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,7 @@ case "$cmd" in
197197
--env LAUNCHDARKLY_API_TOKEN
198198
--env LAUNCHDARKLY_SDK_KEY
199199
--env NIGHTLY_CANARY_APP_PASSWORD
200+
--env MZ_CI_LICENSE_KEY
200201
--env MZ_CLI_APP_PASSWORD
201202
--env MZ_SOFT_ASSERTIONS
202203
--env NO_COLOR

ci/builder/requirements-core.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
# add to this list without consulting with @testing!
55

66
pip==25.0.1
7-
setuptools==77.0.3
7+
setuptools==78.1.0

0 commit comments

Comments
 (0)