Commit 5a9acd4
committed
refactor(coverage): streamline coverage checking workflow and enhance reporting
- Simplify Makefile targets by removing redundant coverage-check-full, coverage-dir,
coverage-server, coverage-json, and coverage-html targets
- Update CI workflow to use 'Run coverage' instead of 'Run coverage check'
- Modify check_coverage.py to default to 'main' branch instead of 'master'
- Add detailed failure reporting with specific threshold violations
- Improve incremental coverage calculation and directory coverage processing
- Remove commented server module coverage thresholds in coverage.yaml
- Add coverage.json to .gitignore
The coverage script now provides comprehensive reporting with clear failure
indications and processes both full and incremental coverage checks in a unified manner.
===
重构覆盖率检查工作流程并增强报告功能
- 简化 Makefile 目标,移除冗余的 coverage-check-full、coverage-dir、
coverage-server、coverage-json 和 coverage-html 目标
- 更新 CI 工作流程,使用 'Run coverage' 替代 'Run coverage check'
- 修改 check_coverage.py 默认使用 'main' 分支而不是 'master'
- 添加详细的失败报告和具体的阈值违规信息
- 改进增量覆盖率计算和目录覆盖率处理
- 在 coverage.yaml 中移除注释的服务器模块覆盖率阈值
- 将 coverage.json 添加到 .gitignore
覆盖率脚本现在提供全面的报告,包含清晰的失败指示,并以统一的方式处理全量和增量覆盖率检查。
footer(s):
===
脚注:
===
Change-Id: I95bc072129d71ce478875748c83696327a0cce4a
Signed-off-by: OhYee <[email protected]>1 parent 8ebd015 commit 5a9acd4
File tree
6 files changed
+89
-7422
lines changed- .github/workflows
- scripts
6 files changed
+89
-7422
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
105 | | - | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | 149 | | |
165 | 150 | | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
0 commit comments