Case library and quarantine
Every case Interleave has written for a repo, and how flaky cases stop failing your PRs.
Interleave writes test cases as it runs. Cases worth keeping go into the project's case library, and later runs reuse them alongside new cases for the PR's diff.
The case library
Projects → your repo → Cases. It's also linked from the project's Environment page.
- Filter with All / Active / Quarantined / Draft.
- Each row shows the case's status, its last result, its recent flaky history and its tags.
- Click a row to open the case's newest result.
- The ⋯ menu has Quarantine, Release and Delete.
| Case state | |
|---|---|
| Active | Planned into runs and counted toward the result. |
| Quarantined | Still runs and still shows in reports, but never counts. |
| Draft | Not yet in the library. |
Quarantine
A flaky case that fails your PR on a coin flip trains everyone to ignore Interleave. So flaky cases get quarantined: they keep running, but they can't fail the PR or the check.
Automatic quarantine
An active case with 3 flaky results among its last 10 is quarantined automatically at the end of a run. The run's notices name it, and it stops counting from the next run.
By hand
From the case library, ⋯ → Quarantine on any active case, or Release to make a quarantined case count again. Any org member can do this.
How quarantined cases show up
- PR comment: a "🧊 Quarantined (not counted)" row in the counts, and a "🧊 Quarantined" section with each case's own result. They're never listed under Top failures or Needs a look.
- Check: the title reads, for example, "All 3 passed, 1 quarantined". Quarantined cases are listed last, as "quarantined, not counted".
- Dashboard: the case table tags them Quarantined · not counted.
A result remembers whether its case was quarantined when it ran. Quarantining or releasing a case later doesn't change past runs.
Deleting a case
⋯ → Delete, then confirm. New runs skip the case, and past runs keep their results. Deleting needs the admin or owner role.
Cases marked for update
When the judge calls a failure an intended change, the PR changed the behavior on purpose and the case's expectation is stale. Interleave marks the case for update in the library.