Skip to content

feat(spu_state): expose brpc protocol/connection_type via BrpcLinkConfig#411

Merged
FollyCoolly merged 5 commits into
mainfrom
feat/brpc-link-config
Jun 2, 2026
Merged

feat(spu_state): expose brpc protocol/connection_type via BrpcLinkConfig#411
FollyCoolly merged 5 commits into
mainfrom
feat/brpc-link-config

Conversation

@FollyCoolly

Copy link
Copy Markdown
Contributor

No description provided.

@FollyCoolly FollyCoolly requested a review from a team as a code owner June 2, 2026 03:21

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces a configurable BrpcLinkConfig dataclass to customize the brpc-backed SPU link settings (such as protocol, connection type, timeout, and payload size) via environment variables or explicit constructor arguments. Feedback on these changes highlights a potential cache collision issue where the cached template links do not account for the new brpc_config. To address this, reviewers suggest making BrpcLinkConfig frozen (immutable and hashable) so it can be safely included in the cache key, and improving the environment variable parsing to handle empty strings more robustly.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread mplang/backends/spu_state.py
Comment thread mplang/backends/spu_state.py Outdated
Comment thread mplang/backends/spu_state.py
oeqqwq
oeqqwq previously approved these changes Jun 2, 2026

@oeqqwq oeqqwq left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@FollyCoolly FollyCoolly merged commit b15ba72 into main Jun 2, 2026
11 checks passed
@FollyCoolly FollyCoolly deleted the feat/brpc-link-config branch June 2, 2026 07:16
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 2, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants