From 0c98b54b6a72ff7bf5b51f4daacd2782dfd1cbba Mon Sep 17 00:00:00 2001 From: admin Date: Sun, 6 Sep 2026 06:56:10 +0800 Subject: [PATCH] =?UTF-8?q?chore(bioflow):=20compile=5Fsdk=20=E7=99=BD?= =?UTF-8?q?=E5=90=8D=E5=8D=95=E8=A1=A5=20bioflow=5Fproxy.py=E2=80=94?= =?UTF-8?q?=E2=80=94SSE=20=E6=B5=81=E5=BC=8F=E5=8F=8D=E4=BB=A3=E5=B1=9E?= =?UTF-8?q?=E6=96=AD=E6=B5=81=E5=B4=A9=E6=BA=83=E6=A0=B9=E6=B2=BB=E5=90=8C?= =?UTF-8?q?=E5=9E=8B=E9=AB=98=E5=8D=B1=E7=82=B9(TL=20=E8=BF=90=E7=BB=B4,20?= =?UTF-8?q?26-09-03=20=E5=85=88=E4=BE=8B)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Fable 5 --- tooling/compile/compile_sdk.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tooling/compile/compile_sdk.sh b/tooling/compile/compile_sdk.sh index 9becc45..fdd6ad7 100755 --- a/tooling/compile/compile_sdk.sh +++ b/tooling/compile/compile_sdk.sh @@ -31,11 +31,13 @@ rsync -a --exclude '__pycache__' --exclude 'test_*.py' --exclude 'data' --exclud "$SOURCE_ROOT/" "$OUTPUT_DIR/" # 白名单明文:main.py + config.py + __init__.py(编译前从发现集排除) -WHITELIST_PY=("app/main.py" "app/config.py" "app/schemas.py" "app/db.py" "app/routers/qa.py" "app/services/sse_relay.py") +WHITELIST_PY=("app/main.py" "app/config.py" "app/schemas.py" "app/db.py" "app/routers/qa.py" "app/services/sse_relay.py" "app/routers/bioflow_proxy.py") # 白名单理由:main.py=uvicorn 入口;config.py=运维可读面; # schemas.py=pydantic v2 模型(validator 方法被 Cython 转 cyfunction 触发 # PydanticUserError,实测编译后无法导入——纯数据契约面,无敏感逻辑,明文保留); # db.py=2026-09-03 断流崩溃根治:客户端中途断开流时 Cython 协程 +# bioflow_proxy.py=2026-09-06 生信流式反代(SSE 逐块 yield,同型断流高危点,TL 补) +# db.py=2026-09-03 断流崩溃根治:客户端中途断开流时 Cython 协程 # __Pyx_Coroutine_SendEx 断言 abort 整个 BFF(Cython 3.2.8/3.3.0 均复现, # A/B 证据见 docs/team/deploy_plan.md 附档)。db 是崩溃协程热点, # 降级明文 Python 走 CPython 原生协程取消,根治断言崩溃