From b4ef90302389a2188acb607cf5a43acb0aaca967 Mon Sep 17 00:00:00 2001 From: Chang Su Date: Sat, 21 Feb 2026 03:03:18 -0800 Subject: [PATCH 1/2] docs(grpc-proto): add remote dev workflow for testing proto changes Signed-off-by: Chang Su --- grpc_client/python/README.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/grpc_client/python/README.md b/grpc_client/python/README.md index d80713e012..8731011a66 100644 --- a/grpc_client/python/README.md +++ b/grpc_client/python/README.md @@ -46,6 +46,24 @@ cp grpc_client/proto/*.proto grpc_client/python/smg_grpc_proto/proto/ pip install -e grpc_client/python/ ``` +### Testing proto changes on a remote GPU machine + +After editing `.proto` files locally, build a wheel and install it in the remote environment (e.g. vLLM): + +```bash +# 1. Build wheel (regenerates Python stubs from latest .proto files) +cd grpc_client/python +pip wheel . --no-deps -w dist/ + +# 2. Copy to remote +scp dist/smg_grpc_proto-*.whl remote-gpu:/tmp/ + +# 3. Install on remote (into vLLM's env or whichever env needs it) +pip install --force-reinstall /tmp/smg_grpc_proto-*.whl +``` + +No import changes are needed on the remote side — vLLM already imports from `smg_grpc_proto`. + ## License Apache-2.0 From fcee8cb3c67671bac000484cb24da71e0db6c766 Mon Sep 17 00:00:00 2001 From: Chang Su Date: Sat, 21 Feb 2026 03:44:12 -0800 Subject: [PATCH 2/2] fix: add proto file copy step before wheel build Signed-off-by: Chang Su --- grpc_client/python/README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/grpc_client/python/README.md b/grpc_client/python/README.md index 8731011a66..e393415df4 100644 --- a/grpc_client/python/README.md +++ b/grpc_client/python/README.md @@ -53,6 +53,10 @@ After editing `.proto` files locally, build a wheel and install it in the remote ```bash # 1. Build wheel (regenerates Python stubs from latest .proto files) cd grpc_client/python +# Copy proto files into the package tree (the repo uses a symlink which +# won't survive wheel packaging) +mkdir -p smg_grpc_proto/proto +cp ../proto/*.proto smg_grpc_proto/proto/ pip wheel . --no-deps -w dist/ # 2. Copy to remote