Skip to content

armgit / sie

Public Imported from GitHub
0

Open-source inference server and production cluster for all the models your agent needs.

fix(toolchain): upgrade Rust to 1.98.1 and patch rustls (#276)

Attila László Nagya1f6fab356cb
diff --git a/.github/workflows/release-audio.yml b/.github/workflows/release-audio.yml
index 015a36ff7..f8bc8e85b 100644
--- a/.github/workflows/release-audio.yml
+++ b/.github/workflows/release-audio.yml
@@ -42,10 +42,10 @@ jobs:
cache: false
- name: Install pinned native build tools
run: |
- test "$(mise --no-config exec [email protected] [email protected] [email protected] [email protected] -- rustc --version | cut -d' ' -f2)" = 1.97.0
- test "$(mise --no-config exec [email protected] [email protected] [email protected] [email protected] -- cargo --version | cut -d' ' -f2)" = 1.97.0
- test "$(mise --no-config exec [email protected] [email protected] [email protected] [email protected] -- zig version)" = 0.13.0
+ test "$(mise --no-config exec [email protected] [email protected] [email protected] [email protected] -- rustc --version | cut -d' ' -f2)" = 1.98.1
+ test "$(mise --no-config exec [email protected] [email protected] [email protected] [email protected] -- cargo --version | cut -d' ' -f2)" = 1.98.1
+ test "$(mise --no-config exec [email protected] [email protected] [email protected] [email protected] -- zig version)" = 0.13.0
- id: contract
name: Validate exact release identity and asset filename
env:
@@ -56,12 +56,12 @@ jobs:
set -euo pipefail
test "$RELEASE_TAG" = "v$RELEASE_VERSION"
test "$(git rev-parse HEAD)" = "$RELEASE_SHA"
- filename="$(mise --no-config exec [email protected] [email protected] [email protected] [email protected] -- python -c 'import runpy; print(runpy.run_path("packages/sie_audio_prep/build_wheel.py")["AUDIO_WHEEL_FILENAME"])')"
+ filename="$(mise --no-config exec [email protected] [email protected] [email protected] [email protected] -- python -c 'import runpy; print(runpy.run_path("packages/sie_audio_prep/build_wheel.py")["AUDIO_WHEEL_FILENAME"])')"
test "$filename" = "sie_audio_prep-$RELEASE_VERSION-cp312-abi3-manylinux_2_28_x86_64.whl"
echo "filename=$filename" >> "$GITHUB_OUTPUT"
- name: Build and validate exact Linux wheel
run: >-
python tools/ci/build_audio_prep_release_asset.py --out dist
- name: Record exact tested wheel and original run provenance
run: >-
diff --git a/mise.toml b/mise.toml
index c3264d88e..378e93f7f 100644
--- a/mise.toml
+++ b/mise.toml
@@ -4,7 +4,7 @@ experimental = true
[tools]
python = "3.12.12"
uv = "0.5.31"
-rust = { version = "1.97.0", profile = "default", components = ["rustfmt", "clippy", "llvm-tools"] }
+rust = { version = "1.98.1", profile = "default", components = ["rustfmt", "clippy", "llvm-tools"] }
"cargo:cargo-deny" = "0.20.2"
"cargo:cargo-llvm-cov" = "0.8.7"
node = ["24.12.0", "22.23.2"]
diff --git a/packages/sie_audio_prep/src/lib.rs b/packages/sie_audio_prep/src/lib.rs
index 9ab4deaaf..b6fc8ade7 100644
--- a/packages/sie_audio_prep/src/lib.rs
+++ b/packages/sie_audio_prep/src/lib.rs
@@ -837,7 +837,9 @@ mod tests {
decode_audio(wav_pcm16(16_000, 1, &frames), None, AudioLimits::default()).unwrap();
let pcm = prepared.pcm_s16le();
let reconstructed = pcm
- .chunks_exact(2)
+ .as_chunks::<2>()
+ .0
+ .iter()
.map(|bytes| f32::from(i16::from_le_bytes([bytes[0], bytes[1]])) / 32_768.0)
.collect::<Vec<_>>();
assert_eq!(reconstructed.len(), prepared.samples.len());
diff --git a/packages/sie_gateway/Dockerfile b/packages/sie_gateway/Dockerfile
index 2c1d2cd58..7cd76a28f 100644
--- a/packages/sie_gateway/Dockerfile
+++ b/packages/sie_gateway/Dockerfile
@@ -1,4 +1,4 @@
-FROM rust:1.97.0-slim-bookworm@sha256:6d220bf85c74e842a79da63997af8d2e74455c0b8847d8bb3a5888572334991d AS chef
+FROM rust:1.98.1-slim-bookworm@sha256:ebd900bae66fd508b466cef82d64a83a5fb34682e4c8b2797a42908bddc95a57 AS chef
RUN cargo install cargo-chef --locked
WORKDIR /app
diff --git a/packages/sie_gateway/src/handlers/proxy.rs b/packages/sie_gateway/src/handlers/proxy.rs
index 3a1a9d5a5..5577b100e 100644
--- a/packages/sie_gateway/src/handlers/proxy.rs
+++ b/packages/sie_gateway/src/handlers/proxy.rs
@@ -12084,7 +12084,9 @@ fn decode_dtype_values(dtype: &str, data: &[u8]) -> Option<Vec<serde_json::Value
return None;
}
Some(
- data.chunks_exact(4)
+ data.as_chunks::<4>()
+ .0
+ .iter()
.map(|chunk| {
let val = f32::from_le_bytes([chunk[0], chunk[1], chunk[2], chunk[3]]);
serde_json::Value::from(val as f64)
@@ -12097,7 +12099,9 @@ fn decode_dtype_values(dtype: &str, data: &[u8]) -> Option<Vec<serde_json::Value
return None;
}
Some(
- data.chunks_exact(8)
+ data.as_chunks::<8>()
+ .0
+ .iter()
.map(|chunk| {
let val = f64::from_le_bytes([
chunk[0], chunk[1], chunk[2], chunk[3], chunk[4], chunk[5], chunk[6],
@@ -12113,7 +12117,9 @@ fn decode_dtype_values(dtype: &str, data: &[u8]) -> Option<Vec<serde_json::Value
return None;
}
Some(
- data.chunks_exact(2)
+ data.as_chunks::<2>()
+ .0
+ .iter()
.map(|chunk| {
let bits = u16::from_le_bytes([chunk[0], chunk[1]]);
let val = f16_to_f32(bits);
@@ -12127,7 +12133,9 @@ fn decode_dtype_values(dtype: &str, data: &[u8]) -> Option<Vec<serde_json::Value
return None;
}
Some(
- data.chunks_exact(4)
+ data.as_chunks::<4>()
+ .0
+ .iter()
.map(|chunk| {
let val = i32::from_le_bytes([chunk[0], chunk[1], chunk[2], chunk[3]]);
serde_json::Value::from(val as i64)
@@ -12140,7 +12148,9 @@ fn decode_dtype_values(dtype: &str, data: &[u8]) -> Option<Vec<serde_json::Value
return None;
}
Some(
- data.chunks_exact(8)
+ data.as_chunks::<8>()
+ .0
+ .iter()
.map(|chunk| {
let val = i64::from_le_bytes([
chunk[0], chunk[1], chunk[2], chunk[3], chunk[4], chunk[5], chunk[6],
@@ -12156,7 +12166,9 @@ fn decode_dtype_values(dtype: &str, data: &[u8]) -> Option<Vec<serde_json::Value
return None;
}
Some(
- data.chunks_exact(2)
+ data.as_chunks::<2>()
+ .0
+ .iter()
.map(|chunk| {
let val = i16::from_le_bytes([chunk[0], chunk[1]]);
serde_json::Value::from(val as i64)
@@ -12169,7 +12181,9 @@ fn decode_dtype_values(dtype: &str, data: &[u8]) -> Option<Vec<serde_json::Value
return None;
}
Some(
- data.chunks_exact(4)
+ data.as_chunks::<4>()
+ .0
+ .iter()
.map(|chunk| {
let val = u32::from_le_bytes([chunk[0], chunk[1], chunk[2], chunk[3]]);
serde_json::Value::from(val as u64)
@@ -12182,7 +12196,9 @@ fn decode_dtype_values(dtype: &str, data: &[u8]) -> Option<Vec<serde_json::Value
return None;
}
Some(
- data.chunks_exact(8)
+ data.as_chunks::<8>()
+ .0
+ .iter()
.map(|chunk| {
let val = u64::from_le_bytes([
chunk[0], chunk[1], chunk[2], chunk[3], chunk[4], chunk[5], chunk[6],
diff --git a/packages/sie_server_rust/Dockerfile b/packages/sie_server_rust/Dockerfile
index 217ef371d..d10b02889 100644
--- a/packages/sie_server_rust/Dockerfile
+++ b/packages/sie_server_rust/Dockerfile
@@ -9,7 +9,7 @@
# contract to the worker-sidecar. Native engines such as Candle run inside this
# process rather than through a sibling Python adapter process.
-ARG RUST_VERSION=1.97.0
+ARG RUST_VERSION=1.98.1
ARG CARGO_FEATURES=""
FROM rust:${RUST_VERSION}-slim-bookworm AS chef
diff --git a/packages/sie_server_rust/Dockerfile.candle b/packages/sie_server_rust/Dockerfile.candle
index 07606d4f9..71476ddaf 100644
--- a/packages/sie_server_rust/Dockerfile.candle
+++ b/packages/sie_server_rust/Dockerfile.candle
@@ -10,7 +10,7 @@
# by the sidecar for engine=candle pools.
ARG CUDA_VERSION=12.4.1
-ARG RUST_VERSION=1.97.0
+ARG RUST_VERSION=1.98.1
# Candle CUDA kernels cannot detect compute capability during Docker builds.
# Local builds default to the currently supported L4 target, and releases publish
# sie-server-rust:<version>-cuda12-sm89. Override for ad-hoc target GPUs when
diff --git a/packages/sie_server_sidecar/Dockerfile b/packages/sie_server_sidecar/Dockerfile
index 5cb8dbaa8..fd7f5acbf 100644
--- a/packages/sie_server_sidecar/Dockerfile
+++ b/packages/sie_server_sidecar/Dockerfile
@@ -25,12 +25,11 @@
# testing mount a socket path and set SIE_IPC_SOCKET_PATH accordingly.
ARG FEATURES=cloud-storage
-ARG RUST_VERSION=1.97.0
# =============================================================================
# Dependency planner: capture the Cargo graph only.
# =============================================================================
-FROM rust:${RUST_VERSION}-slim-bookworm@sha256:6d220bf85c74e842a79da63997af8d2e74455c0b8847d8bb3a5888572334991d AS chef
+FROM rust:1.98.1-slim-bookworm@sha256:ebd900bae66fd508b466cef82d64a83a5fb34682e4c8b2797a42908bddc95a57 AS chef
RUN cargo install cargo-chef --locked --version 0.1.77
WORKDIR /build
diff --git a/tools/ci/check_release_contract.py b/tools/ci/check_release_contract.py
index 7691dffac..782c072cc 100755
--- a/tools/ci/check_release_contract.py
+++ b/tools/ci/check_release_contract.py
@@ -504,16 +504,16 @@ def audio_release_errors() -> list[str]:
if mise_tools.get("zig") != "0.13.0":
errors.append("native audio release must pin Zig 0.13.0")
rust = mise_tools.get("rust", {})
- if not isinstance(rust, dict) or rust.get("version") != "1.97.0":
- errors.append("native audio release must use the repository Rust 1.97.0 pin")
+ if not isinstance(rust, dict) or rust.get("version") != "1.98.1":
+ errors.append("native audio release must use the repository Rust 1.98.1 pin")
workflow = (ROOT / ".github/workflows/release-audio.yml").read_text()
required = (
"ref: ${{ inputs.sha }}",
AUDIO_MANYLINUX_IMAGE,
"version: 2026.7.11",
- "[email protected] -- rustc --version",
- "[email protected] -- cargo --version",
+ "[email protected] -- rustc --version",
+ "[email protected] -- cargo --version",
"python tools/ci/build_audio_prep_release_asset.py --out dist",
expected_filename.replace(version, "$RELEASE_VERSION"),
"tools/ci/upload_audio_prep_release_asset.bash",
diff --git a/tools/ci/tests/test_release_contract.py b/tools/ci/tests/test_release_contract.py
index 87f2c1b3f..287d36c80 100644
--- a/tools/ci/tests/test_release_contract.py
+++ b/tools/ci/tests/test_release_contract.py
@@ -239,9 +239,9 @@ def test_native_audio_builder_installs_exact_rust_and_never_clobbers() -> None:
uploader = (contract.ROOT / "tools/ci/upload_native_release_asset.bash").read_text()
assert contract.AUDIO_MANYLINUX_IMAGE in workflow
assert "version: 2026.7.11" in workflow
- assert "mise --no-config install [email protected] [email protected] [email protected] [email protected]" in workflow
- assert "[email protected] -- rustc --version" in workflow
- assert "[email protected] -- cargo --version" in workflow
+ assert "mise --no-config install [email protected] [email protected] [email protected] [email protected]" in workflow
+ assert "[email protected] -- rustc --version" in workflow
+ assert "[email protected] -- cargo --version" in workflow
assert "--clobber" not in workflow
assert "--clobber" not in uploader
assert "sha256sum" in uploader