Diagnose a Failed ExperimentBeta
Find the error behind failed replays in a Candidate and Baseline Experiment, fix the cause, and rerun only the replays that failed.
About This Task
A replay sends a test case to a pipeline version again. When replays fail, the Experiment has fewer results to compare, or none. The Experiment detail page lists the errors, so you can fix the cause before you rerun. A rerun replays the same test cases against the same versions, so it fails again if you change nothing.
The page reacts to how much failed:
- Every replay of a side failed, or a side couldn't be scored: One diagnosis panel replaces the Results and Test cases sections. It lists each distinct error once, with the number of replays that hit it on each side. An error that belongs to the side itself, for example a deleted Metric Group or scoring that couldn't start, comes first.
- Only some replays failed: Results and Test cases show the replays that succeeded. A warning strip above Results and a link in the side's header give the number of failed replays. The test cases of the failed replays are left out of the comparison.
If one side is still replaying while the other failed, the panel doesn't cover it. Check that side's status in its header and under Run details.
Prerequisites
- An Experiment that compares a Candidate with a Baseline. To create one, see Compare Two Pipeline Versions.
Inspect and Rerun the Failed Replays
- Open the Experiment. In the diagnosis panel, click View replays. For a partial failure, click the failed replays link in the side's header or in the warning strip.
- In the replays drawer, use the Side and Status filters to show the failed replays of one side or of both.
- Expand an error group to see one row per affected test case.
- To read the details of an error, click Stack trace. To share it, click Copy error. To read the setup and cleanup output of a replay, open Setup and cleanup logs.
- To read the conversation of a failed replay, open its chat. A failed replay keeps the traces of the turns it ran, including the failing turn's trace when the runtime reports one, so you can open them like any other trace. Chat and trace links don't exist for a replay that failed before any turn ran.
- Fix the cause, for example in the pipeline version or in a test case's setup script.
- Click Rerun failed replays in the diagnosis panel or in the warning strip. Replays that succeeded aren't repeated. While the panel or the strip shows, the same action in the page header is hidden, so there is one place to rerun.
When the Experiment finishes, the Results section shows both sides. If errors remain, the diagnosis shows them again.
What To Do Next
- To fix evaluations that failed instead of replays, see Fix Failed Evaluations.
- For other evaluation problems, see Troubleshoot Evaluation.
Was this page helpful?