Commit bce97bc
fix: Add RollingUpdateSpec validation and deploying_revision_id null check
- Add Pydantic model_validator to reject max_surge=0 + max_unavailable=0
(deadlock scenario where no progress is possible)
- Add explicit ValueError when deploying_revision_id is None in
evaluate_cycle to fix mypy arg-type error
- Update test to expect ValueError for None deploying_revision_id
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 4b40e96 commit bce97bc
3 files changed
Lines changed: 15 additions & 9 deletions
File tree
- src/ai/backend/manager
- models/deployment_policy
- sokovan/deployment/strategy
- tests/unit/manager/sokovan/deployment/strategy
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
41 | 47 | | |
42 | 48 | | |
43 | 49 | | |
| |||
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
73 | 76 | | |
74 | 77 | | |
75 | 78 | | |
| |||
Lines changed: 4 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
724 | 724 | | |
725 | 725 | | |
726 | 726 | | |
727 | | - | |
728 | | - | |
| 727 | + | |
| 728 | + | |
729 | 729 | | |
730 | 730 | | |
731 | 731 | | |
732 | 732 | | |
733 | | - | |
734 | | - | |
735 | | - | |
736 | | - | |
737 | | - | |
| 733 | + | |
| 734 | + | |
738 | 735 | | |
739 | 736 | | |
740 | 737 | | |
| |||
0 commit comments