| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
style(all): Fix ruff-check lint errors across the codebase Co-authored-by: junjieHuang<huangjunjie38@h-partners.com> # message auto-generated for no-merge-commit merge: !4934 merge style-python-format into master style(all): Fix ruff-check lint errors across the codebase Created-by: junjieHuang Commit-by: junjieHuang Merged-by: cann-robot Description: Fix ruff-check lint errors across the codebase See merge request: cann/pypto!4934 | 4 个月前 | |
feat(tool): Speed up swimlane-graph generation Co-authored-by: sunhaoxuan2024<sunhaoxuan3@h-partners.com> # message auto-generated for no-merge-commit merge: !5945 merge master into master feat(tool): Speed up swimlane-graph generation Created-by: sunhaoxuan2024 Commit-by: sunhaoxuan2024 Merged-by: cann-robot Description: 泳道图增加开始结束标识,并且优化泳道图生成性能 See merge request: cann/pypto!5945 | 2 个月前 | |
fix(machine): improve log quality in cellmatch code and remove Chinese from test strings. Co-authored-by: chai-hw<chaizhengtong@huawei.com> # message auto-generated for no-merge-commit merge: !5565 merge fix_logs into master fix(machine): improve log quality in cellmatch code and remove Chinese from test strings. Created-by: chai-hw Commit-by: chai-hw Merged-by: cann-robot Description: 修复cellmatch相关代码中,日志打印错误吗不规范的问题 修复machine 工具组件多处日志中中文字符的问题 See merge request: cann/pypto!5565 | 3 个月前 | |
fix(machine): improve log quality in cellmatch code and remove Chinese from test strings. Co-authored-by: chai-hw<chaizhengtong@huawei.com> # message auto-generated for no-merge-commit merge: !5565 merge fix_logs into master fix(machine): improve log quality in cellmatch code and remove Chinese from test strings. Created-by: chai-hw Commit-by: chai-hw Merged-by: cann-robot Description: 修复cellmatch相关代码中,日志打印错误吗不规范的问题 修复machine 工具组件多处日志中中文字符的问题 See merge request: cann/pypto!5565 | 3 个月前 | |
fix(build): Flush gcov data for pytest-forked subprocess coverage Co-authored-by: chengding888<chengding1@hisilicon.com> # message auto-generated for no-merge-commit merge: !6148 merge master into master fix(build): Flush gcov data for pytest-forked subprocess coverage Created-by: chengding888 Commit-by: chengding888 Merged-by: cann-robot Description: ## 背景 Python UT 通过 --forked(pytest-forked)并行执行用例,子进程以 os._exit() 退出,会跳过 atexit 钩子,导致 gcov 的 __gcov_exit 不被调用、.gcda 覆盖率数据不落盘。因此 --gcov 无法统计到由 Python UT 触发的 C++ 覆盖率(issue #2705)。 ## 解决方案 1. **python/tests/ut/conftest.py**:新增 pytest_runtest_teardown 钩子,当环境变量 PYPTO_GCOV_FLUSH=1 时手动调用 __gcov_dump(),把内存中的计数器写入 .gcda;并补充 duration_estimate 装饰器。 2. **build_ci.py**:--gcov 时注入 PYPTO_GCOV_FLUSH=1。 3. **cmake/intf.cmake**:gcov 模式追加链接选项 -Wl,--export-dynamic,-u,__gcov_dump,--whole-archive,-lgcov,--no-whole-archive。仅加 -u,__gcov_dump 时 _gcov_dump.o 不会被 lgcov.a 拉入,__gcov_dump 保持未定义,ctypes.CDLL(None) 找不到该符号,必须用 --whole-archive 强制拉入。 4. **cmake/scripts/gen_coverage.py**:lcov >= 2.0 时追加 --ignore-errors inconsistent,将 lcov 2.3.1 对 pybind11.cpp 的 mismatched end line 由 ERROR 降级为 WARNING,避免覆盖率生成失败。 5. **tools/scripts/pre_commit_check.sh**: - 修正覆盖率开关(--py_cov → --gcov)、clang 失败退出码、GTEST_FILTER 保存/恢复、覆盖率标签等; - 移除本地增量覆盖率门禁:本地 gen_coverage.py --increment 与 CI 的 get_ai_inc_cov.py(addlcov) 是两套独立实现,增量覆盖率无法保证与 CI 一致,门禁统一由 CI 兜底。 ## 验证 - bash tools/scripts/pre_commit_check.sh --full 全部通过(gnu / clang+ASan / Python / costmodel 仿真,耗时约 4779s)。 - 确认 Python UT 触发场景下 C++ 覆盖率数据(.gcda)可正常落盘并被 --gcov 统计。 Related Issue: #2705 See merge request: cann/pypto!6148 | 2 个月前 | |
feat(interpreter): Interpreter python script remove ml_dtypes Co-authored-by: dingbo929<dingbo24@h-partners.com> # message auto-generated for no-merge-commit merge: !5854 merge master into master feat(interpreter): Interpreter python script remove ml_dtypes Created-by: dingbo929 Commit-by: dingbo929 Merged-by: cann-robot Description: 移除精度工具的python脚本对于第三方库ml_dtypes的依赖,bf16等数据类型的解析用二进制解码方式实现 See merge request: cann/pypto!5854 | 2 个月前 | |
refactor(all): Remove trailing whitespace Co-authored-by: tsungl4<lidongsheng4@huawei.com> # message auto-generated for no-merge-commit merge: !2188 merge pre-commit into master refactor(all): Remove trailing whitespace Created-by: tsungl4 Commit-by: tsungl4 Merged-by: cann-robot Description: Introduce pre-commit tools, and remove trailing white space with default plugin Related Issue: #1017 See merge request: cann/pypto!2188 | 7 个月前 | |
fix(security): Enforce TLS verification and add sha256/md5 integrity checks Co-authored-by: wangzheng97<wangzheng97@hisilicon.com> # message auto-generated for no-merge-commit merge: !4475 merge cann-pr/issue-1377-download-integrity into master fix(security): Enforce TLS verification and add sha256/md5 integrity checks Created-by: wangzheng97 Commit-by: wangzheng97 Merged-by: cann-robot Description: 修复 issue #1377(下载阶段禁用 TLS 证书校验,CWE-295)。 ## 改动(tools/prepare_env.sh) 移除 CANN 与第三方下载路径上的 --no-check-certificate(wget)与 --insecure(curl),恢复服务器证书校验。被下载并执行的安装包的完整性/真实性由经校验的 TLS 连接保证——网络中间人无法伪造 ascend-repo.obs / gitcode 的合法证书来替换安装包,这正是本 issue 描述的威胁。 ## 范围说明 tools/prepare_env.sh 是开发者本机环境引导脚本。针对该场景,恢复 TLS 校验即覆盖 issue 所述的网络 MITM 篡改威胁;未引入 pinned-hash / 签名等更重的完整性机制——其版本耦合与维护成本对一个 dev 引导脚本不成比例。 ## 验证 - bash -n 通过;仓库内已无 --no-check-certificate / --insecure 残留 - 证书正常的环境下下载不受影响(已实测 OBS/gitcode 证书校验通过、可正常下载) See merge request: cann/pypto!4475 | 4 个月前 | |
style(all): Fix ruff-check lint errors across the codebase Co-authored-by: junjieHuang<huangjunjie38@h-partners.com> # message auto-generated for no-merge-commit merge: !4934 merge style-python-format into master style(all): Fix ruff-check lint errors across the codebase Created-by: junjieHuang Commit-by: junjieHuang Merged-by: cann-robot Description: Fix ruff-check lint errors across the codebase See merge request: cann/pypto!4934 | 4 个月前 |
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
| 4 个月前 | ||
| 2 个月前 | ||
| 3 个月前 | ||
| 3 个月前 | ||
| 2 个月前 | ||
| 2 个月前 | ||
| 7 个月前 | ||
| 4 个月前 | ||
| 4 个月前 |