Commit 9d45154
committed
fix(upgrade): close twelfth-round compliance findings
M1: emit upgrade.http_body_read_error Error before returning a mid-body
read failure; distinguishes a truncated transfer from a refused
connection in forensic reconstruction (SOC2 CC7.3)
M3: add captureLog() test helper that redirects the global zerolog logger
to a buffer for test duration; use it to assert upgrade.http_request_failed,
upgrade.download_size_limit_reached, and upgrade.github_api_rejected are
actually emitted — test coverage now proves audit events fire, not just
that errors propagate
M4: add .Err(err) to upgrade.rollback_succeeded so the root cause of the
apply failure is in the structured log record alongside the rollback
outcome (SOC1 completeness and accuracy)1 parent c25d185 commit 9d45154
2 files changed
Lines changed: 28 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
498 | 498 | | |
499 | 499 | | |
500 | 500 | | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
501 | 506 | | |
502 | 507 | | |
503 | 508 | | |
| |||
587 | 592 | | |
588 | 593 | | |
589 | 594 | | |
590 | | - | |
591 | | - | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
592 | 598 | | |
593 | 599 | | |
594 | 600 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
| 30 | + | |
29 | 31 | | |
30 | 32 | | |
31 | 33 | | |
32 | 34 | | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
33 | 47 | | |
34 | 48 | | |
35 | 49 | | |
| |||
137 | 151 | | |
138 | 152 | | |
139 | 153 | | |
| 154 | + | |
140 | 155 | | |
141 | 156 | | |
142 | 157 | | |
| |||
145 | 160 | | |
146 | 161 | | |
147 | 162 | | |
| 163 | + | |
148 | 164 | | |
149 | 165 | | |
150 | 166 | | |
151 | 167 | | |
152 | 168 | | |
| 169 | + | |
153 | 170 | | |
154 | 171 | | |
155 | 172 | | |
| |||
168 | 185 | | |
169 | 186 | | |
170 | 187 | | |
| 188 | + | |
171 | 189 | | |
172 | 190 | | |
173 | 191 | | |
| |||
238 | 256 | | |
239 | 257 | | |
240 | 258 | | |
| 259 | + | |
241 | 260 | | |
242 | 261 | | |
243 | 262 | | |
244 | 263 | | |
245 | 264 | | |
246 | 265 | | |
| 266 | + | |
247 | 267 | | |
248 | 268 | | |
249 | 269 | | |
| |||
0 commit comments