Skip to content

fix(gateway): pin internal crate dependencies to exact versions - #19224

Merged
slin1237 merged 1 commit into
mainfrom
slin/amd-fixes
Feb 24, 2026
Merged

slin1237 merged 1 commit into
mainfrom
slin/amd-fixes

Conversation

@slin1237

Copy link
Copy Markdown
Collaborator

Summary

Fix CI Docker build failures caused by unpinned internal crate dependencies resolving to newer versions with breaking API changes.

What changed

  • sgl-model-gateway/Cargo.toml: Pin 11 internal crates from ~1.0.0 to =1.0.0

Why

The ~1.0.0 version specifier allows patch bumps (1.0.1, 1.0.2, etc.). Since Cargo.lock is gitignored, CI resolves fresh dependencies and picks up newer versions of smg-wasm, wfaas, etc. that have breaking API changes (WasmModuleManager::new() return type, Arc<Vec<u8>> field type), causing Rust compilation failures.

Pinning to =1.0.0 ensures CI builds use the same versions that work locally.

Refs: https://github.com/sgl-project/sglang/actions/runs/22335011921/job/64625492351

Test plan

  • Removed Cargo.lock and ran maturin build --release --features vendored-openssl — builds successfully
  • CI Docker build passes with pinned versions

Change version specifiers from ~1.0.0 (allows patch bumps) to =1.0.0
(exact pin) for all internal smg/wfaas crates in sgl-model-gateway.

The ~1.0.0 range allowed cargo to resolve newer patch versions (e.g.
smg-wasm 1.0.1, wfaas 1.0.2) which introduced breaking API changes
(WasmModuleManager::new return type, Arc<Vec<u8>> field type), causing
CI Docker builds to fail since Cargo.lock is gitignored.

What changed:
- sgl-model-gateway/Cargo.toml: pin 11 internal crates from ~1.0.0 to
  =1.0.0 (reasoning-parser, openai-protocol, tool-parser, llm-tokenizer,
  smg-auth, wfaas, data-connector, smg-mcp, smg-wasm, smg-mesh,
  smg-grpc-client)

Verified: clean build with lock file removed and maturin build --release.
Signed-off-by: Simo Lin <[email protected]>
@gemini-code-assist

Copy link
Copy Markdown
Contributor

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@github-actions github-actions Bot added dependencies Pull requests that update a dependency file model-gateway labels Feb 24, 2026
@slin1237
slin1237 merged commit b2166a2 into main Feb 24, 2026
51 of 53 checks passed
@slin1237
slin1237 deleted the slin/amd-fixes branch February 24, 2026 06:35
magicYang1573 pushed a commit to magicYang1573/sglang that referenced this pull request Mar 9, 2026
Wangzheee pushed a commit to Wangzheee/sglang that referenced this pull request Mar 21, 2026
JustinTong0323 pushed a commit to JustinTong0323/sglang that referenced this pull request Apr 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file model-gateway

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant