| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
Initial commit | 9 个月前 | |
fix: [slog] 将 src/dfx/log 文件覆盖率提升至 100% (#719) Co-authored-by: zhangjie<zhangjie230@huawei.com> # message auto-generated for no-merge-commit merge: !3627 merge fix-issue-719 into master fix: [slog] 将 src/dfx/log 文件覆盖率提升至 100% (#719) Created-by: newstarzj Commit-by: zhangjie Merged-by: cann-robot Description: ## 描述 - 修复摘要: 当前 src/dfx/log (slog模块) 的文件覆盖率为 **77.4%**,需要提升至 **100%**。 - 变更文件: - src/dfx/log/syslog/slog/log_server/log_mgr/file_mgr/slogd_compress.c - src/dfx/log/utils/log_compress/log_software_zip.h - tests/ut/slog/ut/alog/CMakeLists.txt - tests/ut/slog/ut/alog/stub/unified_timer.h - tests/ut/slog/ut/alog/testcase/dlog_unified_timer_api_ut.cc - tests/ut/slog/ut/ep/log_daemon/CMakeLists.txt - tests/ut/slog/ut/ep/log_daemon/stub/log_daemon_stub.c - tests/ut/slog/ut/ep/log_daemon/testcase/msnpureport/msnpureport_level_utest.cc - tests/ut/slog/ut/ep/slogd/CMakeLists.txt - tests/ut/slog/ut/ep/slogd/file_mgr/testcase/high_mem_utest.cc - tests/ut/slog/ut/ep/slogd/file_mgr/testcase/log_software_zip_utest.cc ### Diff 摘要 text .../log_server/log_mgr/file_mgr/slogd_compress.c | 7 +- src/dfx/log/utils/log_compress/log_software_zip.h | 8 ++ tests/ut/slog/ut/alog/CMakeLists.txt | 4 + tests/ut/slog/ut/alog/stub/unified_timer.h | 27 +++++++ .../ut/alog/testcase/dlog_unified_timer_api_ut.cc | 35 +++++++++ tests/ut/slog/ut/ep/log_daemon/CMakeLists.txt | 7 ++ .../slog/ut/ep/log_daemon/stub/log_daemon_stub.c | 22 +++++- .../msnpureport/msnpureport_level_utest.cc | 86 ++++++++++++++++++++++ tests/ut/slog/ut/ep/slogd/CMakeLists.txt | 48 +++++++----- .../ep/slogd/file_mgr/testcase/high_mem_utest.cc | 53 +++++++++++++ .../file_mgr/testcase/log_software_zip_utest.cc | 70 ++++++++++++++++++ 11 files changed, 344 insertions(+), 23 deletions(-) ## 变更类型 <!-- [x] 表示选中 --> - [x] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [ ] 其他,请描述: ## 关联的Issue https://gitcode.com/cann/runtime/issues/719 ## 如何测试 - 测试结论: PASS - 检测到代码变更文件 11 个: src/dfx/log/syslog/slog/log_server/log_mgr/file_mgr/slogd_compress.c, src/dfx/log/utils/log_compress/log_software_zip.h, tests/ut/slog/ut/alog/CMakeLists.txt, tests/ut/slog/ut/alog/stub/unified_timer.h, tests/ut/slog/ut/alog/testcase/dlog_unified_timer_api_ut.cc, tests/ut/slog/ut/ep/log_daemon/CMakeLists.txt, tests/ut/slog/ut/ep/log_daemon/stub/log_daemon_stub.c, tests/ut/slog/ut/ep/log_daemon/testcase/msnpureport/msnpureport_level_utest.cc - 测试日志包含通过信号 ## 核对清单 <!-- [x] 表示选中 --> - [ ] 我的代码遵循了项目的代码风格 - [ ] 我已对代码进行了自测 - [ ] 我已更新了相关的文档 - [ ] 我在标题中使用了合适的类型标签(如:feat:, fix:) - [ ] 我已经详细阅读了贡献指南(CONTRIBUTING.md),并遵守了其中的所有规定,包括但不限于commit message的格式、无效commit的合并等 ## 其他信息 在此添加任何其他关于本次 PR 的说明。 ## 风险和遗留问题 - 测试日志未能映射到 plan 测试计划中的关键输入或命令 See merge request: cann/runtime!3627 | 2 个月前 | |
Initial commit | 9 个月前 | |
Initial commit | 9 个月前 | |
Initial commit | 9 个月前 | |
Initial commit | 9 个月前 | |
Initial commit | 9 个月前 | |
Initial commit | 9 个月前 | |
Initial commit | 9 个月前 | |
Initial commit | 9 个月前 | |
Initial commit | 9 个月前 | |
Initial commit | 9 个月前 | |
Initial commit | 9 个月前 | |
Initial commit | 9 个月前 | |
Initial commit | 9 个月前 | |
fix: correct INVLID_MOUDLE_ID spelling to INVALID_MODULE_ID in log_types.h (#707) Co-authored-by: GuoWenbo<guowenbo13@h-partners.com> # message auto-generated for no-merge-commit merge: !3695 merge master into master fix: correct INVLID_MOUDLE_ID spelling to INVALID_MODULE_ID in log_types.h (#707) Created-by: GuoWenbo Commit-by: GuoWenbo Merged-by: cann-robot Description: ## 问题描述 修复 issue [#707](https://gitcode.com/cann/runtime/issues/707): include/dfx/base/log_types.h 中 module id 枚举值 INVLID_MOUDLE_ID 存在拼写错误。 - INVLID → INVALID - MOUDLE → MODULE ## 修复内容 1. 在三个 log_types.h 文件中将枚举值 INVLID_MOUDLE_ID 重命名为 INVALID_MODULE_ID 2. 添加向后兼容宏 #define INVLID_MOUDLE_ID INVALID_MODULE_ID,确保旧代码(包括测试文件和外部引用)继续编译通过 3. 将所有 src/dfx/log/ 内部引用更新为正确拼写 INVALID_MODULE_ID 4. 更新 slog.h 中的相关注释 ## 修改文件 - include/dfx/base/log_types.h - 枚举定义 + 兼容宏 - src/dfx/log/inc/toolchain/log_types.h - 枚举定义 + 兼容宏 - src/dfx/log/inc/toolchain/slog.h - 注释更新 - src/dfx/log/utils/log_level.h - 引用更新 - src/dfx/log/liblog/slog/*.c - 引用更新 (7 files) - src/dfx/log/syslog/**/*.c - 引用更新 (6 files) - src/dfx/log/liblog/mergeslog/mergeslog.c - 引用更新 ## 测试结论 - TEST 1 (枚举定义): PASS - TEST 2 (向后兼容宏): PASS - TEST 3 (src/无旧拼写): PASS - TEST 4 (新拼写引用): PASS - TEST 5 (注释更新): PASS - TEST 6 (测试文件兼容): PASS - TEST 7 (git diff --check): PASS - TEST 8 (commit diff stat): PASS ## 风险说明 - 兼容宏确保所有使用旧拼写的代码(测试文件、外部模块)继续编译通过 - 枚举值 76 不变,ABI/API 语义完全一致 - 无行为变更,仅拼写规范化 See merge request: cann/runtime!3695 | 2 个月前 | |
Initial commit | 9 个月前 | |
【PR】: fix write no space left on device bug Co-authored-by: newstarzj<zhangjie230@huawei.com> # message auto-generated for no-merge-commit merge: !2074 merge master_plog_nospace into master 【PR】: fix write no space left on device bug Created-by: newstarzj Commit-by: newstarzj Merged-by: cann-robot Description: # Pull Request ## 描述 fix write no space left on device bug ## 变更类型 请选择本次引入的变更类型: <!-- [x] 表示选中 --> - [x] 🐛 Bug 修复 - [ ] ✨ 新功能 - [ ] 💄 代码风格更新(格式化,局部变量) - [ ] ♻️ 重构(既不修复错误也不增加功能的代码变动) - [ ] 📦 构建过程或辅助工具的变动 - [ ] 📝 文档内容更新 ## 关联的Issue NA ## 如何测试 UT ## 核对清单 <!-- [x] 表示选中 --> - [x] 我的代码遵循了项目的代码风格 - [x] 我已对代码进行了自测 - [x] 我已更新了相关的文档 - [x] 我在标题中使用了合适的类型标签(如: feat:, fix:) - [x] 我已经详细阅读了贡献指南(CONTRIBUTING.md),并遵守了其中的所有规定,包括但不限于commit message的格式、无效commit的合并等 ## 其他信息 在此添加任何其他关于本次 PR 的说明。 See merge request: cann/runtime!2074 | 4 个月前 | |
Initial commit | 9 个月前 | |
Initial commit | 9 个月前 | |
Initial commit | 9 个月前 | |
Initial commit | 9 个月前 | |
Initial commit | 9 个月前 | |
Initial commit | 9 个月前 | |
Initial commit | 9 个月前 | |
Initial commit | 9 个月前 | |
Initial commit | 9 个月前 | |
Initial commit | 9 个月前 | |
Initial commit | 9 个月前 | |
Initial commit | 9 个月前 |
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
| 9 个月前 | ||
| 2 个月前 | ||
| 9 个月前 | ||
| 9 个月前 | ||
| 9 个月前 | ||
| 9 个月前 | ||
| 9 个月前 | ||
| 9 个月前 | ||
| 9 个月前 | ||
| 9 个月前 | ||
| 9 个月前 | ||
| 9 个月前 | ||
| 9 个月前 | ||
| 9 个月前 | ||
| 9 个月前 | ||
| 2 个月前 | ||
| 9 个月前 | ||
| 4 个月前 | ||
| 9 个月前 | ||
| 9 个月前 | ||
| 9 个月前 | ||
| 9 个月前 | ||
| 9 个月前 | ||
| 9 个月前 | ||
| 9 个月前 | ||
| 9 个月前 | ||
| 9 个月前 | ||
| 9 个月前 | ||
| 9 个月前 | ||
| 9 个月前 |