From bcd2b7ad1bffeb8c472f3e1c2af775896de1a1c3 Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 15 May 2026 10:59:28 +0000 Subject: [PATCH] docs(flaky-tests): clarify that monitor detection type is editable after creation Classification type (Flaky or Broken) can now be changed after a monitor is created. Previously the docs implied only the action type could be switched; this makes clear that both fields are editable and that in-flight detections are re-evaluated immediately on save. trunk2 PR: https://github.com/trunk-io/trunk2/pull/3951 Co-Authored-By: Claude Opus 4.6 --- flaky-tests/detection/failure-count-monitor.md | 2 +- flaky-tests/detection/failure-rate-monitor.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/flaky-tests/detection/failure-count-monitor.md b/flaky-tests/detection/failure-count-monitor.md index db6ef251..7d025cf2 100644 --- a/flaky-tests/detection/failure-count-monitor.md +++ b/flaky-tests/detection/failure-count-monitor.md @@ -79,7 +79,7 @@ Branch patterns work the same way as [failure rate monitor branch patterns](fail ### Action -What happens when the monitor activates on a test. You pick the action at creation and can switch it at any time. +What happens when the monitor activates on a test. You pick the action at creation and can change both the action type and the detection type (Flaky or Broken) at any time. If the monitor is active on any tests when you switch the detection type, those tests are re-evaluated immediately with the new classification. #### Classify test status (default) diff --git a/flaky-tests/detection/failure-rate-monitor.md b/flaky-tests/detection/failure-rate-monitor.md index 87e5bb65..df50e659 100644 --- a/flaky-tests/detection/failure-rate-monitor.md +++ b/flaky-tests/detection/failure-rate-monitor.md @@ -150,7 +150,7 @@ each pattern. --> ### Action -What happens when the monitor activates on a test. You pick the action at creation and can switch it at any time. +What happens when the monitor activates on a test. You pick the action at creation and can change both the action type and the detection type (Flaky or Broken) at any time. If the monitor is active on any tests when you switch the detection type, those tests are re-evaluated immediately with the new classification. #### Classify test status (default)