| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
feat(st-framework): migrate evals.md to evals.json and integrate skill-creator format Co-authored-by: hello_simida<wangyi206@huawei.com> # message auto-generated for no-merge-commit merge: !650 merge master into master feat(st-framework): migrate evals.md to evals.json and integrate skill-creator format Created-by: hello_simida Commit-by: hello_simida Merged-by: cann-robot Description: ## 描述 将全部 95 个 evals/evals.md 评测用例文件迁移为 evals/evals.json 统一 JSON 格式,改造 ST 测试框架直接读取 JSON。新格式兼容器 skill-creator 工具和 ST 框架双消费者。 ### 主要变更 **新增文件:** - scripts/convert_evals.py — evals.md → evals.json 批量转换脚本 - tests/system/scripts/evals_json_parser.py — JSON 解析器,输出与旧 parse_evals_md() 同结构 **修改文件:** - tests/system/scripts/common.py — evals.md → evals.json 路径,改用 evals_json_parser - tests/system/scripts/conftest.py — 函数重命名 + 测试描述更新 - tests/system/scripts/test_skill_basic.py / test_team_basic.py — import + 测试方法名 - tests/system/scripts/test_skill_evals.py / test_team_evals.py — import 名 - tests/system/scripts/main.py — import + 路径检测模式 - tests/gate_check.sh — cann_bench 检测路径更新为新 evals.json 结构 **删除文件:** - 95 个 evals/evals.md(位于 ops/graph/model/infra/plugins-official) **文档更新:** - tests/system/README.md — 重写评测用例格式节为 JSON - tests/system/docs/ST_DESIGN_AND_DEVELOPMENT_GUIDE.md — 更新用例文件组织说明 - tests/system/docs/USER_GUIDE.md — 更新用例格式示例 - tests/system/docs/ST_COVERAGE_REPORT.md — 追加格式变更记录 ## 关联的Issue Closes #442 ## 测试 - test_skill_basic.py — 1075 passed, 5 skipped - test_team_basic.py — 186 passed - main.py CI 入口增量模式 — 全部通过 - gate_check.sh 语法验证 — OK ## 文档更新 已同步更新 tests/system/ 下的相关文档 ## 类型标签 - [x] ♻️ 重构 - [x] 📝 文档更新 - [ ] 🐛 Bug 修复 - [ ] ✨ 新特性 - [ ] ⚡ 性能优化 - [ ] 🧪 测试 - [ ] 📦 构建/CI - [ ] 🔧 配置变更 - [ ] ⬆️ 依赖升级 - [ ] 🔒 安全修复 - [ ] 🧹 代码清理 - [ ] ❓ 其他,请描述: See merge request: cann/cannbot-skills!650 | 4 天前 | |
feat(gitcode-issue-handler): 优先读取 local git 配置并复用当前 fork 目录 Co-authored-by: heweidong<heweidong7@huawei.com> # message auto-generated for no-merge-commit merge: !467 merge feat/git-config-and-workdir into master feat(gitcode-issue-handler): 优先读取 local git 配置并复用当前 fork 目录 Created-by: winton_he Commit-by: heweidong Merged-by: cann-robot Description: ## 描述 对 gitcode-issue-handler PR 路径的两项改进: 1. **Git author 检测策略**:从仅读 global 改为三级 fallback(local → global → 询问用户)。服务器多人共用时, git config --global 往往返回他人身份;项目级 git config --local 才是更常见且符合预期的来源。 2. **当前目录复用**:在 clone 到 /tmp 之前,先检测当前工作目录是否已指向目标 fork(通过比对 remote URL)。若匹配则复用当前目录、仅新建 branch;否则走原有 clone 流程。同时处理 upstream remote 名称冲突——使用备选名称而非覆盖用户已有配置。 ## 关联的Issue Fixes #114 ## 测试 Skill 定义文件变更,人工审查确认。无运行时测试适用。 ## 文档更新 更新了以下 skill 定义文件: - infra/gitcode-toolkit/references/env-check.md — 第 5 节 git author 读取策略 - infra/gitcode-issue-handler/references/pr-path.md — Step 2 目录检测流程 - infra/gitcode-issue-handler/SKILL.md — Step 0 和 PR 路径概述同步 ## 类型标签 - [ ] 🌟 新特性 - [x] ✨ 特性增强 - [ ] 🐛 Bug 修复 - [ ] ⚡ 性能优化 - [ ] 🧪 测试用例 - [ ] 📦 构建 / CI - [ ] 📝 文档更新 - [ ] 🔧 配置变更 - [ ] ⬆️ 依赖升级 - [ ] 🔒 安全修复 - [ ] ♻️ 代码重构 - [ ] 🧹 代码清理 - [ ] ❓ 其他,请描述: ## 流水线故障排查 N/A — 仅 skill 定义文件变更,无代码改动。 See merge request: cann/cannbot-skills!467 | 17 天前 | |
refactor(infra): gitcode-toolkit 渐进式披露重构 + 确定性操作脚本化 Co-authored-by: kpge90<gekangping@huawei.com> # message auto-generated for no-merge-commit merge: !338 merge master into master refactor(infra): gitcode-toolkit 渐进式披露重构 + 确定性操作脚本化 Created-by: kpge90 Commit-by: kpge90 Merged-by: cann-robot Description: ## 描述 对 infra/gitcode-toolkit 进行两项结构化改进: ### 1. 渐进式披露重构 - SKILL.md 从 289 行缩减至 86 行(**-70%**) - 完整 PR 创建工作流(7 步)迁移至 references/pr-creation-workflow.md - 速查索引表增加约束级别标注(MUST / SHOULD / MAY) - 移除不存在的消费者引用(code-review、pr-to-design-doc、pr-compile 等) ### 2. 确定性操作脚本化 新增 scripts/ 目录,将原本以 prose + shell 片段描述的操作实现为确定性脚本: | 脚本 | 功能 | |------|------| | scripts/parse_gitcode_url.py | URL 解析(输入 URL → 输出 JSON: owner/repo/type/number)| | scripts/preflight.sh | 环境预检(token/git/curl/python3/tmp/git-author → 结构化报告)| | scripts/fetch_pr_context.py | PR 上下文一键获取(clone + checkout + merge-base + diff + log)| 消费者 skill 的流程从"读 N 个 reference + 手工拼装 8+ 条命令"变为"调 2-3 个脚本 + 读 JSON 输出"。 ## 关联的Issue Fixes #258 ## 测试 - [x] parse_gitcode_url.py 通过 3 种 URL 格式测试(pull/pulls/merge_requests + issue) - [x] preflight.sh 输出结构化 JSON,6 项检查全部 pass - [x] 消费者 skill 相对路径引用一致性检查通过 - [x] 无回归:所有 references 路径保持不变 ## 文档更新 - [x] SKILL.md 更新为渐进式披露结构 - [x] references/env-check.md 增加脚本引用 - [x] references/clone-and-checkout.md 增加脚本替代说明 ## 类型标签 - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [x] 其他(重构) See merge request: cann/cannbot-skills!338 | 30 天前 | |
refactor(infra): gitcode-toolkit 渐进式披露重构 + 确定性操作脚本化 Co-authored-by: kpge90<gekangping@huawei.com> # message auto-generated for no-merge-commit merge: !338 merge master into master refactor(infra): gitcode-toolkit 渐进式披露重构 + 确定性操作脚本化 Created-by: kpge90 Commit-by: kpge90 Merged-by: cann-robot Description: ## 描述 对 infra/gitcode-toolkit 进行两项结构化改进: ### 1. 渐进式披露重构 - SKILL.md 从 289 行缩减至 86 行(**-70%**) - 完整 PR 创建工作流(7 步)迁移至 references/pr-creation-workflow.md - 速查索引表增加约束级别标注(MUST / SHOULD / MAY) - 移除不存在的消费者引用(code-review、pr-to-design-doc、pr-compile 等) ### 2. 确定性操作脚本化 新增 scripts/ 目录,将原本以 prose + shell 片段描述的操作实现为确定性脚本: | 脚本 | 功能 | |------|------| | scripts/parse_gitcode_url.py | URL 解析(输入 URL → 输出 JSON: owner/repo/type/number)| | scripts/preflight.sh | 环境预检(token/git/curl/python3/tmp/git-author → 结构化报告)| | scripts/fetch_pr_context.py | PR 上下文一键获取(clone + checkout + merge-base + diff + log)| 消费者 skill 的流程从"读 N 个 reference + 手工拼装 8+ 条命令"变为"调 2-3 个脚本 + 读 JSON 输出"。 ## 关联的Issue Fixes #258 ## 测试 - [x] parse_gitcode_url.py 通过 3 种 URL 格式测试(pull/pulls/merge_requests + issue) - [x] preflight.sh 输出结构化 JSON,6 项检查全部 pass - [x] 消费者 skill 相对路径引用一致性检查通过 - [x] 无回归:所有 references 路径保持不变 ## 文档更新 - [x] SKILL.md 更新为渐进式披露结构 - [x] references/env-check.md 增加脚本引用 - [x] references/clone-and-checkout.md 增加脚本替代说明 ## 类型标签 - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [x] 其他(重构) See merge request: cann/cannbot-skills!338 | 30 天前 |