Contributing Guide
【免费下载链接】runtime 本项目提供CANN运行时组件和维测功能组件。 项目地址: https://gitcode.com/cann/runtime
This project welcomes developers to experience and contribute. Before participating in community contributions, refer to cann-community to understand the code of conduct, sign the CLA agreement, and learn about the contribution process for source code repositories.
Developers should pay attention to the following points when preparing local code and submitting PRs:
- When submitting a PR, follow the PR template and carefully fill in the business background, purpose, and solution information for this PR.
- If your modification is not a simple bug fix but involves adding new features, new interfaces, new configuration parameters, or modifying code flows, discuss the solution through an Issue first to avoid having your code rejected. If you are unsure whether your modification qualifies as a "simple bug fix", you can also submit an Issue for solution discussion.
Additionally, before coding, writing tests, and preparing design proposals, please read the development guides in the docs/guidelines/ directory first and follow the relevant standards:
- Development Guide Overview
- pre-commit Usage: For configuring pre-commit and running formatting and compliance checks before committing code
- Coding Standards: Unified coding standards for Runtime repository source code implementation
- UT Coding Standards: Implementation standards for UT code under
tests/** - UT Case Development Guide: For UT scenario design, validation methods, and test implementation
- Design Document Template: For new features, interfaces, configuration parameters, or flow modifications, it is recommended to complete the design description using the template first
Follow these principles:
- Before modifying source code, read and follow the corresponding coding standards.
- When modifying UT code, in addition to the general coding standards, also follow
ut-coding-guidelines.mdandUT Case Development Guide. - For changes involving new capabilities, interfaces, or flow adjustments, complete the design description first before coding.
Developer contribution scenarios mainly include:
-
Bug Fixes
If you discover certain bugs in this project and want to fix them, you are welcome to create a new Issue for feedback and tracking.
You can follow the Submit Issue/Handle Issue Task guide to create a
Bug-Report|Defect Feedbacktype Issue to describe the bug, then enter "/assign" or "/assign @yourself" in the comment box to assign the Issue to yourself for handling. -
Documentation Corrections
If you discover errors in certain operator documentation descriptions in this project, you are welcome to create a new Issue for feedback and correction.
You can follow the Submit Issue/Handle Issue Task guide to create a
Documentation|Documentation Feedbacktype Issue to point out the corresponding documentation issues, then enter "/assign" or "/assign @yourself" in the comment box to assign the Issue to yourself for correcting the corresponding documentation description. -
Help Resolve Others' Issues
If you have appropriate solutions for problems encountered by others in the community, you are welcome to comment in the Issue for discussion, helping others solve problems and pain points, and jointly improving usability.
If the corresponding Issue requires code modifications, you can enter "/assign" or "/assign @yourself" in the Issue comment box to assign the Issue to yourself for tracking and assisting in problem resolution.
【免费下载链接】runtime 本项目提供CANN运行时组件和维测功能组件。 项目地址: https://gitcode.com/cann/runtime
创作声明:本文部分内容由AI辅助生成(AIGC),仅供参考



