重构:将语音评估脚本收口到 scripts - #2576
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
🔗 Linked repositories identifiedCodeRabbit considers these linked repositories for cross-repo context during reviews:
Walkthrough本次变更将 voice-turn 资产准备和 Smart Turn 评估脚本迁移至 ChangesVoice-turn 脚本迁移
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
Suggested labels: Poem
🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Greptile Summary本 PR 将语音评估与资源准备脚本统一迁移到
Confidence Score: 5/5当前变更未发现仍需阻止合并的故障,看起来可以安全合并喵。 未发现仍然存在的阻塞性失败喵。
|
| Filename | Overview |
|---|---|
| scripts/prepare_voice_turn_assets.py | 资源准备脚本迁移到 scripts/,并将项目根解析调整为匹配新的目录深度喵。 |
| scripts/evaluate_smart_turn_v3.py | Smart Turn v3 评估脚本迁移到 scripts/,其项目根解析保持正确喵。 |
| tests/unit/voice_turn/test_prepare_assets.py | 测试导入、脚本路径及子进程工作目录已同步到新位置喵。 |
| tests/unit/voice_turn/test_build_contracts.py | 构建合同断言已更新,覆盖工作流和 Dockerfile 中的新调用路径喵。 |
| .github/workflows/docker-multi-arch.yml | 两个多架构镜像构建任务均改为从 scripts/ 调用资源准备脚本喵。 |
| docker/Dockerfile | 标准镜像在完整源码复制后通过新路径执行资源准备脚本喵。 |
| docker/Dockerfile.full | 完整镜像在完整源码复制后通过新路径执行资源准备脚本喵。 |
Reviews (2): Last reviewed commit: "fix(tests): unify voice asset preparer i..." | Re-trigger Greptile
摘要
tools/voice_eval/prepare_voice_turn_assets.py平铺迁移为scripts/prepare_voice_turn_assets.pytools/voice_eval/evaluate_smart_turn_v3.py平铺迁移为scripts/evaluate_smart_turn_v3.py风险与边界
这是可独立回滚的纯路径整理。GitNexus 评估为 LOW,未命中任何生产执行流。后续 endpointing 与模型资产迁移将作为堆叠的独立 PR 提交,避免在本 PR 留下半迁移状态。
验证状态
--help:通过git diff --check:通过tools/voice_eval与tools.voice_eval零残留test_smoke.py收集冲突阻断;项目主测试树已另行启动,最终结果将随 CI 一并跟进Summary by CodeRabbit