Commit 4d422bf
committed
fix(backend): counter parity in plan/sub runners, FK-safe batch writes, onchain version gate
H4: runPlanTest + runSubPlanTest now increment testedNodes only when
result.actualMbps != null (else failedNodes++), and call recomputeCounters(state)
before the terminal status='done' — mirroring runAudit's reconciliation so the
two subscription runners no longer over-count tested vs failed. The new else
branch lives inside if(result); the thrown-error path is a separate (result
falsy) branch, so no double failedNodes++.
M8: continuous.js gates insertBatchResult on batchId > 0 to avoid an FK violation
when an upstream insertBatch failed and currentBatchId stayed 0.
M7: onchain-report.js _decodeCsv rejects any SNTR1 record whose version != v2
(returns null) instead of misparsing a future v3+ memo as v2.1 parent 1a55dc3 commit 4d422bf
3 files changed
Lines changed: 48 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
281 | 281 | | |
282 | 282 | | |
283 | 283 | | |
284 | | - | |
285 | | - | |
286 | | - | |
287 | | - | |
288 | | - | |
289 | | - | |
290 | | - | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
291 | 296 | | |
292 | 297 | | |
293 | 298 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1724 | 1724 | | |
1725 | 1725 | | |
1726 | 1726 | | |
1727 | | - | |
1728 | 1727 | | |
1729 | 1728 | | |
1730 | 1729 | | |
1731 | 1730 | | |
1732 | 1731 | | |
1733 | 1732 | | |
1734 | | - | |
1735 | | - | |
1736 | | - | |
| 1733 | + | |
| 1734 | + | |
| 1735 | + | |
| 1736 | + | |
| 1737 | + | |
| 1738 | + | |
| 1739 | + | |
| 1740 | + | |
| 1741 | + | |
| 1742 | + | |
| 1743 | + | |
1737 | 1744 | | |
1738 | 1745 | | |
1739 | 1746 | | |
| |||
1767 | 1774 | | |
1768 | 1775 | | |
1769 | 1776 | | |
| 1777 | + | |
| 1778 | + | |
| 1779 | + | |
1770 | 1780 | | |
1771 | 1781 | | |
1772 | 1782 | | |
| |||
2198 | 2208 | | |
2199 | 2209 | | |
2200 | 2210 | | |
2201 | | - | |
2202 | 2211 | | |
2203 | 2212 | | |
2204 | 2213 | | |
| |||
2208 | 2217 | | |
2209 | 2218 | | |
2210 | 2219 | | |
2211 | | - | |
2212 | | - | |
2213 | | - | |
| 2220 | + | |
| 2221 | + | |
| 2222 | + | |
| 2223 | + | |
| 2224 | + | |
| 2225 | + | |
| 2226 | + | |
| 2227 | + | |
| 2228 | + | |
| 2229 | + | |
| 2230 | + | |
| 2231 | + | |
2214 | 2232 | | |
2215 | 2233 | | |
2216 | 2234 | | |
| |||
2251 | 2269 | | |
2252 | 2270 | | |
2253 | 2271 | | |
| 2272 | + | |
| 2273 | + | |
| 2274 | + | |
2254 | 2275 | | |
2255 | 2276 | | |
2256 | 2277 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
173 | | - | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
174 | 176 | | |
175 | 177 | | |
176 | 178 | | |
| |||
189 | 191 | | |
190 | 192 | | |
191 | 193 | | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
192 | 198 | | |
193 | 199 | | |
194 | 200 | | |
| |||
0 commit comments