Commit ff2b5fb
ci: fix diff-cover path resolution for mono-repo coverage
Each sub-package's coverage.xml records filenames relative to the
package directory (e.g. "jumpstarter_cli_common/oidc.py"), but
diff-cover resolves paths relative to the git root. This mismatch
caused diff-cover to miss coverage data from per-package test runs,
resulting in artificially low coverage percentages on changed lines.
Fix by injecting the correct <source> element into each coverage.xml
before running diff-cover, allowing it to reconstruct absolute paths
that match the git diff output.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent e307bdb commit ff2b5fb
1 file changed
Lines changed: 22 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
125 | 147 | | |
126 | 148 | | |
127 | 149 | | |
| |||
0 commit comments