fix(ci): 修正 nemotron 測試函數體截斷 5000→10000 字元
Some checks failed
CD Pipeline / build-and-deploy (push) Has been cancelled

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
OG T
2026-04-08 21:09:19 +08:00
parent d9e0fab3fe
commit b380b6a34c

View File

@@ -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