已合并
[core] ci: pre-commit 全量格式化:clang-format/ruff,仅格式无逻辑变更 #930
shilinlee创建于 7月8日
[core] ci: pre-commit 全量格式化:clang-format/ruff,仅格式无逻辑变更 #930
已合并
Pull Request已成功合入, 合并人@zhangjinshi
(感谢 shilinlee 的贡献)7月8日 修改标题为 “[core] ci: pre-commit 全量格式化:clang-format/ruff,仅格式无逻辑变更”,原标题为“[core] ci: 临时跳过 ruff/pylint/bandit 三个 pre-commit hook”
7月8日 修改标题为 “[core] ci: pre-commit 全量格式化:clang-format/ruff,仅格式无逻辑变更”,原标题为“[core] ci: 临时跳过 ruff/pylint/bandit 三个 pre-commit hook”
7月8日 修改了pull request 的描述
7月8日 修改了pull request 的描述
7月8日 关联了issue:[Usage]: 门禁开启pre-commit,格式化代码
ascend-robot
7月8日 评论:
7月8日 评论:
7月8日 添加了label:ci-pipeline-running
7月8日 添加了label:ascend-cla/yes
7月8日 添加了label:stat/needs-squash
ascend-robot
7月8日 评论:
7月8日 评论:
Thanks for your pull-request.
The full list of commands accepted by me can be found at here。
You can get sig-info at here
PR Approval Progress
⚠️ This PR does not yet meet the following requirements:lgtm (requires ≥ 3 person(s) per module)、approve (requires ≥ 1 person(s) per module)
Module Approval Details
| module | lgtm status | approve status |
|---|---|---|
| repo-Ascend/memfabric_hybrid | ❌ (0/3)(You can also ask: xu-jingru, gaopu2024, p_chenhui, wuxiaotong, swagglian_gitcode) | ❌ (0/1)(You can also ask: yangjingyao, weihaoran1, yuncliu, liu1103xwxw, shepherd-cheung) |
💡 Tip:
- Committer can comment
/approveor/lgtm- Commenting
/approveimplies both code review (lgtm) and intent to merge (approve)
CLA Signature Pass
shilinlee_com, thanks for your pull request. All authors of the commits have signed the CLA. 👍


7月8日 删除了label:ci-pipeline-running
7月8日 添加了label:ci-pipeline-failed
shilinlee
7月9日 评论:
7月9日 评论:
retry UT_memfabric-hybrid


7月9日 删除了label:ci-pipeline-failed
7月9日 添加了label:ci-pipeline-running
shilinlee
7月9日 评论:
7月9日 评论:
retry CodeCheck_mf


shilinlee
7月9日 评论:
7月9日 评论:
retry SCA_mf


7月9日 修改了pull request 的描述
7月9日 删除了label:ci-pipeline-running
7月9日 添加了label:ci-pipeline-failed
ascend-robot
7月9日 评论:
7月9日 评论:
流水线 PR-pipeline_memfabric_hybrid#4145 (重试第1次) [ commitID:56c6efd5 ] 运行失败
| 阶段 | 任务名 | 状态 | 详情 |
|---|---|---|---|
| 编译构建 | Build_memfabric-hybrid | ✅ | >>> |
| Build_memfabric-hybrid-bazel | ✅ | >>> | |
| 恶意代码检查 | Antipoison_mf | ✅ | >>> |
| 编码安全与规范检查 | pre-commit | ✅ | >>> |
| CodeCheck_mf | ✅ | >>> | |
| 开源片段检查 | SCA_mf | ✅ | >>> |
| 开发者测试 | UT_memfabric-hybrid | ❌ | >>> |
| 流水线 | PR-pipeline_memfabric_hybrid | ❌ | >>> |
- compile : 运行流水线
- retry : 重试流水线所有失败子任务
- retry <任务名> : 仅重试指定失败子任务
- stop : 停止流水线


shilinlee
7月9日 评论:
7月9日 评论:
retry UT_memfabric-hybrid


7月9日 删除了label:ci-pipeline-failed
7月9日 添加了label:ci-pipeline-running
7月9日 删除了label:ci-pipeline-running
7月9日 添加了label:ci-pipeline-passed
ascend-robot
7月9日 评论:
7月9日 评论:
流水线 PR-pipeline_memfabric_hybrid#4145 (重试第3次) [ commitID:56c6efd5 ] 已完成
| 阶段 | 任务名 | 状态 | 详情 |
|---|---|---|---|
| 编译构建 | Build_memfabric-hybrid | ✅ | >>> |
| Build_memfabric-hybrid-bazel | ✅ | >>> | |
| 恶意代码检查 | Antipoison_mf | ✅ | >>> |
| 编码安全与规范检查 | pre-commit | ✅ | >>> |
| CodeCheck_mf | ✅ | >>> | |
| 开源片段检查 | SCA_mf | ✅ | >>> |
| 开发者测试 | UT_memfabric-hybrid | ✅ | >>> |
| 流水线 | PR-pipeline_memfabric_hybrid | ✅ | >>> |
- compile : 运行流水线
- retry : 重试流水线所有失败子任务
- retry <任务名> : 仅重试指定失败子任务
- stop : 停止流水线


7月9日 通过审查
7月9日 关闭了关联的issue
7月9日 合入了pull request
合入来源
问题/功能描述
仓库代码风格不统一(C++ 指针对齐、大括号位置、行宽;Python 引号、行宽、换行),且缺乏强制校验。需引入 pre-commit 全量格式化与 CI PR 检查,统一全仓风格基线。
修改方案描述
pre-commit run --all-files全部通过;95 个 Python 文件 AST 比对无语义差异;C++ 抽查(common_def.h、pytransfer.cpp 等)均为纯格式化。是否涉及UT/ST
开发自检