Commit 37248f0
committed
ci(coverage): polish diff-cover step and clarify metric semantics
- Guard against empty SRC_ROOTS before invoking diff-cover; exits with a
readable error instead of letting --fail-under be consumed as a
src-root value.
- Verify that diff-cover actually wrote diff-cover.json; surface the
exit code in the failure message so a runner/binary crash is
diagnosable without hunting through logs.
- Drop the trailing "diff-cover exit code" log; --fail-under=0 means
DIFF_RC is always 0 in the happy path, so the line carries no signal.
- Clarify the metrics panel: Changed-line is LINE coverage (diff-cover)
while Overall / Delta are INSTRUCTION coverage (jacoco-report). Add a
footnote to both the console output and the step summary so readers
do not silently compare the two counters.1 parent ece6e09 commit 37248f0
1 file changed
Lines changed: 12 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
298 | 298 | | |
299 | 299 | | |
300 | 300 | | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
301 | 305 | | |
302 | 306 | | |
303 | 307 | | |
| |||
309 | 313 | | |
310 | 314 | | |
311 | 315 | | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
312 | 321 | | |
313 | 322 | | |
314 | 323 | | |
| |||
332 | 341 | | |
333 | 342 | | |
334 | 343 | | |
335 | | - | |
336 | | - | |
337 | 344 | | |
338 | 345 | | |
339 | 346 | | |
| |||
431 | 438 | | |
432 | 439 | | |
433 | 440 | | |
| 441 | + | |
434 | 442 | | |
435 | 443 | | |
436 | 444 | | |
| |||
445 | 453 | | |
446 | 454 | | |
447 | 455 | | |
| 456 | + | |
| 457 | + | |
448 | 458 | | |
449 | 459 | | |
450 | 460 | | |
| |||
0 commit comments