| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
fix: normalize and escape binary configuration directory paths Co-authored-by: Ethan_Zou<tianjun.zou@foxmail.com> # message auto-generated for no-merge-commit merge: !11733 merge fix/rated-20261011-merge-config-path into master fix: normalize and escape binary configuration directory paths Created-by: Ethan_Zou Commit-by: Ethan_Zou Merged-by: cann-robot Description: ## 描述 规范化二进制配置目录再构造输出名,并通过 glob.escape 按字面匹配目录,修复末尾分隔符、重复运行及方括号构建路径产生错误合并结果的问题。配置内容及冲突处理不变;源文件按本仓 Ruff 格式整理。 ## 关联的 Issue 对应本次目录路径问题,创建后由关联 Issue 链接补全。 ## 测试 ~~~bash python3 -m unittest discover -s scripts/kernel/binary_script/tests -p test_merge_ops_config_json.py -v ~~~ 修复前:9 个场景断言失败,3 个控制场景通过。 修复后:6 个方法、12 个场景全部通过,执行 16 次真实 CLI。覆盖 4 种目录写法、重复运行、绝对路径、方括号目录及合法算子名所在的方括号父目录,并验证 op_type 冲突仍报错。 原生 pre-commit(含 Ruff 0.14.14、OAT)和 git diff --check 均通过。 仅 Host CLI 验证,未执行 NPU 或真实 CANN 构建;远端 CI 按当前源提交跟踪。 ## 文档更新 不涉及用户接口或算子文档变更。 ## 类型标签 - [x] Bug 修复 Closes https://gitcode.com/cann/ops-nn/issues/6497 See merge request: cann/ops-nn!11733 | 12 天前 |