Commit a4194bd
[py] Fix race in negative tests.
This fix attempts to address the following race:
- Pipeline panics during a negative test (as expected)
- The client keeps polling the pipeline, e.g., with /completion_status.
- Before the client request hits the pipeline, the runner detects the
panic and starts stopping the pipeline.
- At this point, instead of an error indicating that the pipeline failed
with a panic, the client will get back a different error - that the
manager cannot interact with the pipeline in the stopping state.
The problem with this is that the test expects the exceptiont to
contain a specific substring, and will fail if the string is not
found.
Note that the error description is still available in the
deployment_error field of the pipeline descriptor.
The fix attempts to address this by enriching the exception thrown
by the pipeline with the text in the deployment_error field of the
pipeline.
This issue is not easy to reproduce deterministically, so I wasn't able
to test the fix.
Signed-off-by: Leonid Ryzhyk <ryzhyk@gmail.com>1 parent a111820 commit a4194bd
1 file changed
+39
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
145 | 145 | | |
146 | 146 | | |
147 | 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 | + | |
148 | 179 | | |
149 | 180 | | |
150 | 181 | | |
| |||
210 | 241 | | |
211 | 242 | | |
212 | 243 | | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
213 | 252 | | |
214 | 253 | | |
215 | 254 | | |
| |||
0 commit comments