Commit 2d3f4b6
committed
fix(qa-coverage): only write the coverage file when material content changed
The script was bumping generated.at on every run, which left qa-coverage.json
dirty in the working tree after every pre-commit hook fire. Each subsequent
commit then started with an immediately-modified file even when nothing in
coverage actually changed.
Fix: compare the new summary to the existing one before writing. When
items_total / items_covered / items_uncovered / items_skipped are all
identical, skip the write and carry the existing timestamp + drift entry
forward. The working tree settles after the first run.1 parent b35f631 commit 2d3f4b6
1 file changed
Lines changed: 31 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
144 | 171 | | |
145 | 172 | | |
146 | 173 | | |
| |||
0 commit comments