Commit 673cd59
fix(lint): avoid mutating proc models in top_procs
Convert proc models to plain dicts before adding Prometheus runtime metrics, so lint no longer calls dict-style update() on pydantic deployments.
Add a regression test covering top_procs with pydantic-backed workloads and Prometheus metrics.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 10c42ab commit 673cd59
2 files changed
Lines changed: 46 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2680 | 2680 | | |
2681 | 2681 | | |
2682 | 2682 | | |
2683 | | - | |
| 2683 | + | |
| 2684 | + | |
| 2685 | + | |
| 2686 | + | |
| 2687 | + | |
| 2688 | + | |
2684 | 2689 | | |
2685 | 2690 | | |
2686 | 2691 | | |
2687 | 2692 | | |
2688 | 2693 | | |
2689 | 2694 | | |
2690 | | - | |
| 2695 | + | |
2691 | 2696 | | |
2692 | 2697 | | |
2693 | 2698 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
1 | 4 | | |
2 | 5 | | |
3 | 6 | | |
| |||
35 | 38 | | |
36 | 39 | | |
37 | 40 | | |
| 41 | + | |
38 | 42 | | |
39 | 43 | | |
40 | 44 | | |
| |||
329 | 333 | | |
330 | 334 | | |
331 | 335 | | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
332 | 371 | | |
333 | 372 | | |
334 | 373 | | |
| |||
0 commit comments