| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
add pull request and issue templates Co-authored-by: qq_41667743<wangchao725@huawei.com> # message auto-generated for no-merge-commit merge: !5 merge add_pr_issue_template into master add pull request and issue templates Created-by: qq_41667743 Commit-by: qq_41667743 Merged-by: cann-robot Description: <!-- 感谢您的合入申请! --> ### 当前PR是否有AI参与: [x] 否 [ ] 是 __1. AI Agent 平台: __2. AI 模型: __3. Prompt上下文 : ### PR功能描述 / 为什么需要这个合入**: <!-- 本 PR 做了什么,为什么需要 / What does this PR do and why --> ### 该PR关联的issue *(格式为fixes #<issue号>, 或者resolves #<issue号>)*: fixes # ### 希望检视人员了解: ## 改动类型 / Change Type - [ ] Bug 修复 / Bug Fix - [ ] 新功能 / New Feature - [ ] 性能优化 / Performance - [ ] 代码重构 / Refactoring - [ ] 文档更新 / Documentation - [ ] 测试相关 / Test - [ ] 其它 / Other ## 测试信息 / Testing <!-- 简要测试说明或关键结果 / Brief test description or key results --> - [ ] 单元测试通过 / UT passed - [ ] 集成测试通过 / ST passed - [ ] 人工验证通过 / Manual verified ## 检查清单 / Checklist - [ ] 代码符合规范 / Code follows style guide - [ ] 测试添加并通过 / Tests added and passed - [ ] 文档已更新 / Docs updated if needed - [ ] 无硬编码敏感信息 / No secrets hardcoded - [ ] 提交信息符合规范 / Commit message follows convention See merge request: cann/cannbot-knowledge!5 | 1 个月前 | |
add pull request and issue templates Co-authored-by: qq_41667743<wangchao725@huawei.com> # message auto-generated for no-merge-commit merge: !5 merge add_pr_issue_template into master add pull request and issue templates Created-by: qq_41667743 Commit-by: qq_41667743 Merged-by: cann-robot Description: <!-- 感谢您的合入申请! --> ### 当前PR是否有AI参与: [x] 否 [ ] 是 __1. AI Agent 平台: __2. AI 模型: __3. Prompt上下文 : ### PR功能描述 / 为什么需要这个合入**: <!-- 本 PR 做了什么,为什么需要 / What does this PR do and why --> ### 该PR关联的issue *(格式为fixes #<issue号>, 或者resolves #<issue号>)*: fixes # ### 希望检视人员了解: ## 改动类型 / Change Type - [ ] Bug 修复 / Bug Fix - [ ] 新功能 / New Feature - [ ] 性能优化 / Performance - [ ] 代码重构 / Refactoring - [ ] 文档更新 / Documentation - [ ] 测试相关 / Test - [ ] 其它 / Other ## 测试信息 / Testing <!-- 简要测试说明或关键结果 / Brief test description or key results --> - [ ] 单元测试通过 / UT passed - [ ] 集成测试通过 / ST passed - [ ] 人工验证通过 / Manual verified ## 检查清单 / Checklist - [ ] 代码符合规范 / Code follows style guide - [ ] 测试添加并通过 / Tests added and passed - [ ] 文档已更新 / Docs updated if needed - [ ] 无硬编码敏感信息 / No secrets hardcoded - [ ] 提交信息符合规范 / Commit message follows convention See merge request: cann/cannbot-knowledge!5 | 1 个月前 | |
ci: 添加 KnowledgeCheck 流水线 Co-authored-by: AndyKong2020<konghao7@huawei.com> # message auto-generated for no-merge-commit merge: !8 merge master into master ci: 添加 KnowledgeCheck 流水线 Created-by: AndyKong2020 Commit-by: AndyKong2020 Merged-by: cann-robot Description: # Pull Request 说明 > Depends on [#4](https://gitcode.com/cann/cannbot-knowledge/pull/4):本分支基于 PR #4 的 head e330ae105。#4 合入前,本 PR 页面会同时显示其知识与治理变更;请在 #4 合入后刷新或变基,再合入本 PR。 ## 变更说明 - 关联 Issue:无 - 主要改动: - 增加 FormatCheck、GraphCheck、ContentCheck 三个独立 Job,由 /compile 评论触发。 - 使用目标分支可信检查代码校验 fork PR 的候选 knowledge/,并通过 Job Summary 与 OBS JSON 返回结果。 - Format 全量输出分级 Findings;Graph 编译显式链接图;Content 对变更知识卡并发执行独立 reviewer。 - 将治理检查按职责拆分,并以内置 Schema 子集实现移除 jsonschema 运行依赖。 - Summary 与公开 JSON 仅保留检查结果,完整展示 Findings,不发布 Runner 路径、模型/执行元数据或流水线内部状态。 - 补充说明:ContentCheck 实际不参与阻断;模型 ID、端点和凭据均由仓库 Secrets 注入,未写入仓库或公开结果。 ## 变更类型 - [ ] 知识卡 - [x] 治理规则(Schema / Profile / Registry / Contract / Spec) - [x] Knowledge Skill(Ingest / Query / Lint) - [x] 检索、评测或测试 - [x] 安装、脚本、依赖或 CI - [x] 文档 - [ ] 其他: ## 验证 - [x] bash check.sh 已通过:Format 3512/0、Retrieval 19、Evals 109、Ingest 11、Graph 3080/16。 - [x] .gitcode/scripts Ruff、knowledge_check.sh Bash 语法和 git diff --check 已通过。 - [x] GitCode E2E 已覆盖全绿、P0/P1、零页、三页模型并发、跨 PR 并行、同 PR 抢占和 OBS JSON 回读。 - [x] 已按需同步导航、链接、日志、规则消费者、文档和测试。 - [x] 未提交敏感信息、大段上游原文或 artifacts/ 等可重建产物。 - [x] 变更保持最小、相关,并符合 CONTRIBUTING.md。 ### E2E 记录 - Format:[clean #90](https://gitcode.com/opencann/cannbot-knowledge/actions/runs/b8ff836198034d0990cc50aa17c0f064)、[P0 #91](https://gitcode.com/opencann/cannbot-knowledge/actions/runs/d50e5a1554d749e88c24e4ab67dd84a3)、[P1 #92](https://gitcode.com/opencann/cannbot-knowledge/actions/runs/600b4aa4e1804e3189405a0392acf8f7) - Content:[零页 #95](https://gitcode.com/opencann/cannbot-knowledge/actions/runs/1f8cd71691bd443f882bbdfec3d4e429)、[被抢占 #96](https://gitcode.com/opencann/cannbot-knowledge/actions/runs/2d174029bbfd4b0592b07443d8631d69)、[三页并发 #97](https://gitcode.com/opencann/cannbot-knowledge/actions/runs/3f2148732d5849fea2ece03801088e54) See merge request: cann/cannbot-knowledge!8 | 1 个月前 | |
ci: adapt ContentCheck to CANNBot gateway and log usage Co-authored-by: AndyKong2020<konghao7@huawei.com> # message auto-generated for no-merge-commit merge: !74 merge codex/content-check-cannbot-gateway-20260929 into master ci: adapt ContentCheck to CANNBot gateway and log usage Created-by: AndyKong2020 Commit-by: AndyKong2020 Merged-by: cann-robot Description: ContentCheck 接入 CANNBot OpenAI-compatible 网关,实际模型在 content_check.toml 配置,自动检查上限为 120 页,并发保持 3。关联 #20。 改动: - BASE_URL 为完整 /v1 地址;AUTH_TOKEN、CANNBOT_VKEY 通过 Secrets 注入,不再读取 MODEL Secret。 - 日志累计每次尝试、重试及失败调用已返回的 token,保留整数精度;计数不完整时明确标记。 - 错误日志只输出固定说明、HTTP 状态或进程退出码,不回显服务端原始错误或 stderr;解码后的检查结论对已配置凭据脱敏。 - Summary/公开 JSON 协议及非阻断语义保持不变;当天日志收敛为一条当前变更记录。 验证: - 当前版本 ffcc9285a:完整 bash check.sh 通过,298 项仓库测试(1 跳过)、36 项 trace 测试和 Ruff 通过。其中 15 项 ContentCheck 回归覆盖重试/失败累计、大整数精度、超时部分计数和敏感输出隔离。 - 之前版本的 opencann 测试覆盖三页真实模型、22 项临时集成场景、121 页自动跳过和 OBS 授权下载一致性: https://gitcode.com/opencann/cannbot-knowledge/actions/runs/e941034a17f04c21b9725e586b77e365 https://gitcode.com/opencann/cannbot-knowledge/actions/runs/401ea7b02e2143ea87b492fdbe47dea7 - 当前 ffcc9285a 已在 opencann 按完全一致的正式 workflow 跑过三页真实模型检查(2026-09-30):https://gitcode.com/opencann/cannbot-knowledge/actions/runs/bfdc66adf1c44f0eac0a9520dd3535d3 。独立下载原始 OBS 产物确认三页完成、无运行错误或跳过、六项内容检查覆盖,以及格式/图谱产物有效:https://gitcode.com/opencann/cannbot-knowledge/actions/runs/e9484c7928df45cc91571a9e82da58e1 。正式运行无模拟 CLI 或测试夹具。120 页真实模型时延和平台抢占未实测。 See merge request: cann/cannbot-knowledge!74 | 16 天前 |
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
| 1 个月前 | ||
| 1 个月前 | ||
| 1 个月前 | ||
| 16 天前 |