Commit 9917c0d
Bug 1387418: Handle empty push resultset from hg (#9074)
* Bug 1387418: Handle empty push resultset from hg
This patch parses the hg push resultset and handles cases
where pushes are not present by raising an appropriate error
and logging the error correctly.
* Bug 1387418: Address review comments
Made the below changes to push_loader.py
* Used an f-string in line 267 to log exception
* Corrected comment where we log data in warning
* Used `NewRelic event failed for malformed Hg push data` in place of `NewRelic event failed for malformed data`
* Inserted f-string declaration and corrected typo in it too
* Renamed `ResultsetFetchError` to `HgPushFetchError`
* Renamed `resultset_fetch_failure` to `hg_push_fetch_failure`
* Corrected typo from `fecht` to `fetch`
Made the below change to test_push_loader.py
* Replace `ResultsetFetchError` with `HgPushFetchError`1 parent 1807b56 commit 9917c0d
2 files changed
+63
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
218 | 219 | | |
219 | 220 | | |
220 | 221 | | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
261 | 261 | | |
262 | 262 | | |
263 | 263 | | |
264 | | - | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
265 | 305 | | |
266 | 306 | | |
267 | 307 | | |
| |||
285 | 325 | | |
286 | 326 | | |
287 | 327 | | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
0 commit comments