执行摘要
将工具解析器单元测试移动至 tests/tool_parsers 目录,分离单元测试与集成测试。
PR body 明确指出目的是让 CPU-only 的工具解析器测试在 tests/tool_parsers/ 下运行(在 misc.yaml 中运行,无需 GPU),而集成测试使用 RemoteOpenAIServer 保留在原始位置。这有助于改进测试结构,使测试更清晰和可维护。
建议工程师快速浏览此 PR 以了解测试目录结构调整,但无需深入分析代码逻辑。重点关注 test_granite4_tool_parser.py 中流式测试的潜在问题,可在后续 PR 中修复。
review 中,gemini-code-assist[bot] 指出 tests/tool_parsers/test_granite4_tool_parser.py 中的流式测试不正确,因为 previous_text 和 current_text 参数被硬编码为空字符串,未能正确模拟流式场景。作者 bbrowning 回复说:“This isn't newly added logic - just moving of existing logic. So, while the comment may be valid, the scope of this PR is just reorganization and not changing the tests themself.” DarkLight1337 批准了 PR。讨论未解决测试逻辑问题,PR 已合并。
参与讨论