Skip to content

Commit 12b847e

Browse files
authored
Update deps (#1649)
* Add support for JSON and SSE responses to invoke endpoint * Updated dependencies * Updated rust version to 1.88.0 * lint * cargo clippy --fix * lint * fix warning
1 parent c70f1ab commit 12b847e

Some content is hidden

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

44 files changed

+944
-766
lines changed

Cargo.lock

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

indexify/poetry.lock

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

indexify/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ httpx = { version = "0.27.2", extras = ["http2"] }
2626
pydantic = "^2.11"
2727
prometheus-client = "^0.22.1"
2828
psutil = "^7.0.0"
29-
boto3 = "^1.39.14"
29+
boto3 = "^1.39.15"
3030
# Adds function-executor binary, utils lib, sdk used in indexify-cli commands.
3131
# We need to specify the tensorlake version exactly because pip install doesn't respect poetry.lock files.
3232
tensorlake = "0.2.33"

rust-toolchain.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
[toolchain]
2-
channel = "1.82.0"
2+
channel = "1.88.0"

server/Cargo.toml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,27 +10,26 @@ resolver = "2"
1010
[dependencies]
1111
async-stream = "0.3.6"
1212
serde = { version = "1.0.219", features = ["derive"] }
13-
serde_json = "1.0.140"
14-
serde_yaml = "0.9.34"
13+
serde_json = "1.0.141"
1514
anyhow = "1.0.98"
1615
figment = { version = "0.10.19", features = ["yaml", "toml"] }
1716
clap = { version = "4.5.40", features = ["derive"] }
1817
tracing = "0.1.41"
1918
axum = { version = "0.8.4", features = ["multipart", "macros", "tokio"] }
20-
tokio = { version = "1.45.1", features = ["full"] }
19+
tokio = { version = "1.47.0", features = ["full"] }
2120
axum-server = "0.7.2"
2221
futures = "0.3.31"
2322
tracing-subscriber = { version = "0.3.19", features = ["env-filter", "json"] }
2423
utoipa = { version = "5.4.0", features = ["axum_extras", "yaml"] }
2524
utoipa-swagger-ui = { version = "9.0.2", features = ["axum"] }
2625
sha2 = "0.10.9"
2726
nanoid = "0.4.0"
28-
object_store = { version="0.12.2", features = ["aws"] }
27+
object_store = { version="0.12.3", features = ["aws"] }
2928
uuid = { version = "1.17.0", features = ["v4"] }
3029
tower-http = { version = "0.6.6", default-features = false, features = ["cors", "trace"] }
3130
bytes = "1.10.1"
3231
ciborium = "0.2.2"
33-
rand = "0.9.1"
32+
rand = "0.9.2"
3433
hex = "0.4.3"
3534
hyper = "1.6.0"
3635
url = "2.5.4"
@@ -42,14 +41,15 @@ opentelemetry-otlp = { version = "0.30.0", features = ["tokio", "metrics", "trac
4241
axum-tracing-opentelemetry = { version = "0.29.0", features = ["tracing_level_info"] }
4342
tower-otel-http-metrics = { version = "0.16.0", features = ["axum"] }
4443
base64 = "0.22.1"
45-
tonic = "0.13.1"
46-
prost = "0.13.5"
47-
tonic-reflection = "0.13.1"
44+
tonic = "0.14.0"
45+
prost = "0.14.1"
46+
tonic-prost = "0.14.0"
47+
tonic-reflection = "0.14.0"
4848
tokio-stream = { version = "0.1.17", features = ["sync"] }
4949
priority-queue = "2.5.0"
5050
tokio-util = { version = "0.7.15", features = ["full"] }
5151
if_chain = "1.0.2"
52-
slatedb = { version="0.6.1" }
52+
slatedb = { version="0.7.0" }
5353
rust-embed = { version = "8.7.2", features = ["mime-guess"] }
5454
pin-project-lite = "0.2.16"
5555
pin-project = "1.1.10"
@@ -60,7 +60,7 @@ itertools = "0.14.0"
6060
async-trait = "0.1.88"
6161
reqwest = { version = "0.12.20", default-features = false, features = ["json", "rustls-tls"] }
6262
rocksdb = { version = "0.23.0" }
63-
strum = { version = "0.27.1", features = ["derive"] }
63+
strum = { version = "0.27.2", features = ["derive"] }
6464
derive_builder = "0.20.2"
6565
tempfile = "3.20.0"
6666

@@ -74,7 +74,7 @@ tokio = { version = "1.45.1", features = ["full", "test-util"] }
7474
anyhow = "1.0.98"
7575
# All features enabled
7676
vergen = { version = "9.0.6", features = ["build", "cargo", "rustc", "si"] }
77-
tonic-build = "0.13.1"
77+
tonic-prost-build = "0.14.0"
7878

7979
[package.metadata.deb]
8080
maintainer = "Diptanu Gon Choudhury <diptanu@tensorlake.ai>"

server/build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ fn main() -> Result<()> {
3232
let proto_files = ["./proto/executor_api.proto"];
3333
let out_dir = PathBuf::from(env::var("OUT_DIR").unwrap());
3434

35-
tonic_build::configure()
35+
tonic_prost_build::configure()
3636
.build_client(false) // Don't build client code as it's not needed for now
3737
.build_server(true)
3838
.file_descriptor_set_path(out_dir.join("executor_api_descriptor.bin"))

server/rust-toolchain.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
[toolchain]
2-
channel = "1.82.0"
2+
channel = "1.88.0"

server/src/blob_store/mod.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,8 @@ impl BlobStorage {
120120
let _timer = Timer::start_with_labels(&self.metrics.operations, timer_kvs);
121121
let mut hasher = Sha256::new();
122122
let mut hashed_stream = data.map(|item| {
123-
item.map(|bytes| {
124-
hasher.update(&bytes);
125-
bytes
123+
item.inspect(|bytes| {
124+
hasher.update(bytes);
126125
})
127126
});
128127

server/src/data_model/filter.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ impl Serialize for Expression {
5959
where
6060
S: Serializer,
6161
{
62-
format!("{}", self).serialize(serializer)
62+
format!("{self}").serialize(serializer)
6363
}
6464
}
6565

server/src/data_model/host_resources_tests.rs

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -262,8 +262,8 @@ mod tests {
262262
}),
263263
expected_host_resources_after: Some(HostResources {
264264
cpu_ms_per_sec: 1000,
265-
memory_bytes: 1 * 1024 * 1024 * 1024,
266-
disk_bytes: 1 * 1024 * 1024 * 1024,
265+
memory_bytes: 1024 * 1024 * 1024,
266+
disk_bytes: 1024 * 1024 * 1024,
267267
gpu: None,
268268
}),
269269
},
@@ -379,8 +379,8 @@ mod tests {
379379
}),
380380
expected_host_resources_after: Some(HostResources {
381381
cpu_ms_per_sec: 1000,
382-
memory_bytes: 1 * 1024 * 1024 * 1024,
383-
disk_bytes: 1 * 1024 * 1024 * 1024,
382+
memory_bytes: 1024 * 1024 * 1024,
383+
disk_bytes: 1024 * 1024 * 1024,
384384
gpu: Some(GPUResources {
385385
count: 1,
386386
model: GPU_MODEL_NVIDIA_A10.to_string(),
@@ -569,8 +569,8 @@ mod tests {
569569
description: "free cpu/mem/disk only",
570570
host_resources: HostResources {
571571
cpu_ms_per_sec: 1000,
572-
memory_bytes: 1 * 1024 * 1024 * 1024,
573-
disk_bytes: 1 * 1024 * 1024 * 1024,
572+
memory_bytes: 1024 * 1024 * 1024,
573+
disk_bytes: 1024 * 1024 * 1024,
574574
gpu: None,
575575
},
576576
fe_resources: FunctionExecutorResources {
@@ -591,8 +591,8 @@ mod tests {
591591
description: "free with gpu",
592592
host_resources: HostResources {
593593
cpu_ms_per_sec: 1000,
594-
memory_bytes: 1 * 1024 * 1024 * 1024,
595-
disk_bytes: 1 * 1024 * 1024 * 1024,
594+
memory_bytes: 1024 * 1024 * 1024,
595+
disk_bytes: 1024 * 1024 * 1024,
596596
gpu: Some(GPUResources {
597597
count: 1,
598598
model: GPU_MODEL_NVIDIA_A10.to_string(),
@@ -622,8 +622,8 @@ mod tests {
622622
description: "free with gpu, wrong model",
623623
host_resources: HostResources {
624624
cpu_ms_per_sec: 1000,
625-
memory_bytes: 1 * 1024 * 1024 * 1024,
626-
disk_bytes: 1 * 1024 * 1024 * 1024,
625+
memory_bytes: 1024 * 1024 * 1024,
626+
disk_bytes: 1024 * 1024 * 1024,
627627
gpu: Some(GPUResources {
628628
count: 1,
629629
model: GPU_MODEL_NVIDIA_A100_40GB.to_string(),
@@ -645,8 +645,8 @@ mod tests {
645645
description: "free with gpu, no gpu on host",
646646
host_resources: HostResources {
647647
cpu_ms_per_sec: 1000,
648-
memory_bytes: 1 * 1024 * 1024 * 1024,
649-
disk_bytes: 1 * 1024 * 1024 * 1024,
648+
memory_bytes: 1024 * 1024 * 1024,
649+
disk_bytes: 1024 * 1024 * 1024,
650650
gpu: None,
651651
},
652652
fe_resources: FunctionExecutorResources {

0 commit comments

Comments
 (0)