Commit a2d841b
authored
Fix e2e test flake when setting fake metrics (#346)
adds retry logic to setting llm-d simulator fake metrics.
- e2e_benchmark_test.go tests patch the simulator deployment via patchSimArgs(...)
which runs kubectl patch deployment llm-sim. This causes Kubernetes to
terminate the old llm-sim pod and spawn a new one.
connections across requests.
- Previously, setSimWaitingRequests in test/e2e/utils_test.go
made only a single HTTP attempt. Any transient connection reset or socket
transition during container rollouts caused the entire suite to fail immediately.
Signed-off-by: Jacob Murry <jacobmurry@google.com>1 parent 4a036eb commit a2d841b
1 file changed
Lines changed: 16 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
132 | 141 | | |
133 | 142 | | |
134 | 143 | | |
| |||
0 commit comments