Set up Cursor Cloud dev environment for sgl-model-gateway - #1
Draft
Moersity wants to merge 1 commit into
Draft
Conversation
… sgl-model-gateway Co-authored-by: Moersity <Moersity@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Sets up and verifies a working Cursor Cloud development environment for this repo. SGLang is a GPU-first monorepo and this VM has no GPU, so the fully CPU-runnable product —
sgl-model-gateway/(the Rust HTTP/gRPC model router) — was the target for build/lint/test/run. This PR only addsAGENTS.md(no source changes); the environment itself is captured via the VM snapshot + update script.What was set up (captured in the VM snapshot)
libssl-dev,pkg-config,protobuf-compiler,build-essential,redis-server,python3.12-venv.scripts/ci/cuda/ci_install_gateway_dependencies.sh) +nightlyforrustfmt./usr/local/cargo/config.tomlforcingCC=gcc/CXX=g++andlinker = "g++", because the system defaultcc/c++is clang, which can't find libstdc++<cstdint>(breaksesaxx-rs) and tripsrust-lldwithunable to find library -lstdc++.pre-commitin~/.venvs/precommitfor repo-wide lint.Update script (dependency refresh only):
cargo fetchfor the gateway.Verification (Rust 1.90, CPU-only)
cargo build --bin sgl-model-gatewaycargo clippy --all-targets --all-features -- -D warningscargo +nightly fmt -- --checkcargo test --no-fail-fastpre-commit run --all-filesEnd-to-end demo (hello world)
Launched the gateway in IGW mode (
--enable-igw, no GPU workers needed), then exercised control plane + data plane against a lightweight mock worker:/liveness→ OK,/health→ 200/parse/reasoning(deepseek_r1) correctly split<think>…</think>from the answer/parse/function_call(json) extracted aget_weathertool callPOST /workers(health/metadata discovered), visible in/workersand/v1/modelsPOST /v1/chat/completionsclient → gateway → worker → clientEnd-to-end gateway demo transcript
CI checks summary
Notes
policies::tree::tests::test_tree_structure_integrity_after_stressis a randomized 8-thread stress test that can flake ("Tenant … should have positive size"); it passes in isolation and in the pinned-toolchain full run.sglangruntime andsgl-kernelrequire NVIDIA CUDA and are intentionally out of scope on this CPU-only VM.To show artifacts inline, enable in settings.