Commit fb6b3ca
[Evaluation] Recover partial red team results when Foundry execution raises (#45541)
* [Evaluation] Recover partial red team results when Foundry execution raises
When orchestrator.execute() raises (e.g., ConnectTimeout on 1 of 50
objectives), attempt to recover partial results from the orchestrator
before falling back to the empty-result error path.
Previously, any single objective failure caused the entire risk category's
results to be discarded (data_file set to empty string, 0 results returned).
Now, completed objectives are processed through the normal
FoundryResultProcessor pipeline and included in the final output.
The error is demoted from ERROR to WARNING when partial results are
available, since it is not a total failure. The original full-failure
path is preserved when get_attack_results() returns empty.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Address review comments: add debug logging, structured partial_failure info
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Apply black formatting
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
---------
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 7455f91 commit fb6b3ca
1 file changed
Lines changed: 38 additions & 12 deletions
File tree
- sdk/evaluation/azure-ai-evaluation/azure/ai/evaluation/red_team/_foundry
Lines changed: 38 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
162 | 162 | | |
163 | 163 | | |
164 | 164 | | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
176 | 202 | | |
177 | | - | |
| 203 | + | |
178 | 204 | | |
179 | 205 | | |
180 | 206 | | |
| |||
0 commit comments