Commit 9f970d3
committed
fix(coverage): exclude failed/partial-coverage tests from coverage map
Fix 1: in build_coverage_map Phase 2, a test with non-empty failures produced
only partial .gcda files (crash mid-pipeline). Previously those tests were
still added to test_results, and their truncated coverage was cached. A later
.fpp change that ran only in the missing stage would be silently skipped.
Fix: when failures is non-empty, record in all_failures and continue without
adding to test_results — absent entries are conservatively included by
select_tests (rung 5).
Fix 2: in _parse_gcov_json_output, a mid-stream json.JSONDecodeError returned
the partial result set, which is untrustworthy (the truncated JSON stream may
be missing coverage for .fpp files that were not yet serialised). Fix: return
None on that error path so the caller omits the test from the map entirely.
Fix 6 (comment): correct the post_process comment (~line 347) — the regular
suite runs post_process only under --test-all (which CI sets), not never.1 parent 9811cfc commit 9f970d3
1 file changed
Lines changed: 21 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
136 | | - | |
137 | | - | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
138 | 143 | | |
139 | 144 | | |
140 | 145 | | |
| |||
367 | 372 | | |
368 | 373 | | |
369 | 374 | | |
370 | | - | |
371 | | - | |
372 | | - | |
373 | | - | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
374 | 380 | | |
375 | 381 | | |
376 | 382 | | |
| |||
478 | 484 | | |
479 | 485 | | |
480 | 486 | | |
481 | | - | |
482 | 487 | | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
483 | 495 | | |
| 496 | + | |
| 497 | + | |
484 | 498 | | |
485 | 499 | | |
486 | 500 | | |
| |||
0 commit comments