Commit 58cc592
Add more coverage for InferenceGraph
* Add more coverage for InferenceGraph
* Add more tests for Serverless InferenceGraph to cover for private cases and auth
* Add test cases for Raw InferenceGraph covering basic deployment, auth, private cases, and combinations.
Additionally, this moves to using the unprivileged client for IG-related fixtures.
---
## Summary by CodeRabbit
* New Features
* Added comprehensive tests covering multiple deployment and authentication scenarios for inference graphs, including raw and serverless modes.
* Introduced utilities for creating and managing service accounts and role-based access for inference graph viewing.
* Added new helper functions for handling inference graph pod selection and Kubernetes role creation.
* Enhanced inference utilities to support InferenceGraph objects with improved exposure detection and inference execution.
* Bug Fixes
* Improved handling of authentication and authorization checks in inference response verification, especially for raw deployment scenarios.
* Tests
* Expanded test coverage for inference graphs to validate access control, deployment modes, and service exposure.
* Added fixtures to support flexible, parameterized test setups for various user privilege levels.
* Chores
* Updated fixtures to use unprivileged clients and namespaces, enhancing security and test reliability.
* Refined configuration for ONNX inference endpoint to improve deployment compatibility.
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Jooho Lee <ljhiyh@gmail.com>1 parent 67a427c commit 58cc592
File tree
9 files changed
+483
-44
lines changed- tests/model_serving/model_server
- inference_graph
- utilities
- manifests
9 files changed
+483
-44
lines changedLines changed: 111 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | 3 | | |
3 | 4 | | |
| |||
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| 10 | + | |
9 | 11 | | |
| 12 | + | |
10 | 13 | | |
11 | 14 | | |
12 | | - | |
| 15 | + | |
13 | 16 | | |
| 17 | + | |
14 | 18 | | |
15 | 19 | | |
16 | 20 | | |
17 | 21 | | |
18 | | - | |
19 | | - | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
20 | 25 | | |
21 | 26 | | |
22 | 27 | | |
| |||
34 | 39 | | |
35 | 40 | | |
36 | 41 | | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
37 | 71 | | |
38 | | - | |
39 | | - | |
40 | | - | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
41 | 75 | | |
| 76 | + | |
| 77 | + | |
42 | 78 | | |
43 | 79 | | |
44 | 80 | | |
45 | 81 | | |
46 | 82 | | |
47 | | - | |
| 83 | + | |
48 | 84 | | |
49 | | - | |
50 | | - | |
51 | | - | |
| 85 | + | |
| 86 | + | |
52 | 87 | | |
53 | 88 | | |
54 | 89 | | |
55 | 90 | | |
56 | | - | |
| 91 | + | |
57 | 92 | | |
58 | | - | |
| 93 | + | |
59 | 94 | | |
60 | 95 | | |
61 | 96 | | |
| |||
66 | 101 | | |
67 | 102 | | |
68 | 103 | | |
69 | | - | |
| 104 | + | |
70 | 105 | | |
71 | | - | |
72 | | - | |
73 | | - | |
| 106 | + | |
| 107 | + | |
74 | 108 | | |
75 | 109 | | |
76 | 110 | | |
77 | 111 | | |
78 | | - | |
| 112 | + | |
79 | 113 | | |
80 | | - | |
| 114 | + | |
81 | 115 | | |
82 | 116 | | |
83 | 117 | | |
| |||
86 | 120 | | |
87 | 121 | | |
88 | 122 | | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
Lines changed: 68 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
9 | 11 | | |
10 | | - | |
11 | | - | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
12 | 19 | | |
13 | 20 | | |
14 | 21 | | |
15 | | - | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
16 | 79 | | |
17 | 80 | | |
18 | 81 | | |
19 | 82 | | |
20 | 83 | | |
21 | 84 | | |
22 | 85 | | |
| 86 | + | |
| 87 | + | |
23 | 88 | | |
0 commit comments