Gating Check
How to Add Check Items
- Create a folder in ci_check/src/ac to store the check item code.
- Add configuration items to the ac_conf.yaml file.
Configuration File Description
Example =>
spec:
hint: check_spec
module: spec.check_spec
entry: Entry
exclude: true
ignored: []
allow_list: []
deny_list:[]
Entry Implementation Template
from src.ac.framework.ac_base import BaseCheck
from src.ac.framework.ac_result import FAILED, SUCCESS, WARNING
class Entry(BaseCheck):
def __call__(self, *args, **kwargs):
...
def check_case_a(self):
return SUCCESS
Check Result
| Result Code |
Description |
emoji |
| 0 |
SUCCESS |
✅ |
| 1 |
WARNING |
🐛 |
| 2 |
FAILED |
❌ |
Supported Check Items
| Check Item |
Directory |
Description |
| SPEC file |
spec |
Check whether the homepage can be accessed, whether the version number is monotonically increasing, and whether the patch file exists. |
| Code style |
code |
Check the compressed package, check whether the patch can be used, and run the linter tool. |
| YAML file |
package_yaml |
|
| License |
package_license |
|
| Code snippet |
sca |
Currently, this is only for in-house projects. |