Skip to content

refactor: rework SPDK proxy to utilize fastapi - #1298

Open
mxsrc wants to merge 28 commits into
mainfrom
fastapi-spdk-proxy
Open

mxsrc wants to merge 28 commits into
mainfrom
fastapi-spdk-proxy

Conversation

@mxsrc

@mxsrc mxsrc commented Sep 2, 2026

Copy link
Copy Markdown
Collaborator

The existing proxy executed at import time and utilized global state, making it difficult to reason about. Converting this to FastAPI addresses this issue, aligns the proxy with the other API code, and enables simpler integration of richer SPDK-side interaction.

Comment thread simplyblock_core/services/spdk_http_proxy_server.py Fixed
Comment thread tests/integration/test_spdk_proxy_e2e.py Fixed
def _close(writer: asyncio.StreamWriter) -> None:
try:
writer.close()
except OSError:
Comment thread simplyblock_core/rpc_client.py Dismissed
Comment thread simplyblock_core/rpc_client.py Dismissed
@mxsrc
mxsrc force-pushed the fastapi-spdk-proxy branch 4 times, most recently from 2154d5d to 6e60e9e Compare September 7, 2026 19:07
Comment thread tests/unit/test_core_tls_settings.py Fixed
@mxsrc
mxsrc force-pushed the fastapi-spdk-proxy branch from 819f664 to 858fa10 Compare September 7, 2026 20:21
These broke tests that executed later and relied on sleep behaving as
intended.
The pyupgrade ruleset landed on main while this branch rewrote the proxy,
so the rewritten files never went through it. rpc_client additionally lost
the `typing.Optional` import upstream while this branch added a new
`Optional[SecretStr]` annotation, leaving an undefined name at import time.

Claude-Session: https://claude.ai/code/session_014BUR7tZ9uyss93sLwKb6gz
@mxsrc
mxsrc force-pushed the fastapi-spdk-proxy branch from 858fa10 to 43f0fcb Compare September 14, 2026 11:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants