From b380b6a34cd40c009b5e14c144049a196e864888 Mon Sep 17 00:00:00 2001 From: OG T Date: Wed, 8 Apr 2026 21:09:19 +0800 Subject: [PATCH] =?UTF-8?q?fix(ci):=20=E4=BF=AE=E6=AD=A3=20nemotron=20?= =?UTF-8?q?=E6=B8=AC=E8=A9=A6=E5=87=BD=E6=95=B8=E9=AB=94=E6=88=AA=E6=96=B7?= =?UTF-8?q?=205000=E2=86=9210000=20=E5=AD=97=E5=85=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Sonnet 4.6 --- apps/api/tests/test_phase22_nemotron_collab.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/api/tests/test_phase22_nemotron_collab.py b/apps/api/tests/test_phase22_nemotron_collab.py index 03952d8d..81108ef3 100644 --- a/apps/api/tests/test_phase22_nemotron_collab.py +++ b/apps/api/tests/test_phase22_nemotron_collab.py @@ -164,7 +164,8 @@ class TestNemotronFailureFallback: source = f.read() idx_func = source.find("async def generate_incident_proposal_with_tools") - func_body = source[idx_func:idx_func + 5000] + # 函數體較長,使用 10000 字元避免截斷 (2026-04-08 Claude Sonnet 4.6 修正) + func_body = source[idx_func:idx_func + 10000] # except 區塊捕捉 nemotron 失敗 (exhausted 為重試耗盡的 log key) assert "nemotron_collaboration_exhausted" in func_body