docs(changelog): Flaky Tests detect consistently failing tests as Broken#144
Conversation
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Workflows to automatically generate PRs for you. |
|
Verification status (2026-05-28): Verified: customers can use this. Ready to publish.
Next: ready to mark non-draft and publish. |
|
Code verification (2026-05-28): 3 confirmed / 0 contradicted / 0 ambiguous / 0 unverifiable
Every factual claim in the entry matches source. The feature ships as a Source #1 — Detection type Broken marks tests as BROKEN (confirmed)File: // Priority-based status resolution: BROKEN > FLAKY > HEALTHY
const status = anyBrokenActive
? "BROKEN"
: anyFlakyActive
? "FLAKY"
: "HEALTHY";Reasoning: A monitor's Source #2 — Status priority Broken > Flaky > Healthy (confirmed)File: // Priority-based status resolution: BROKEN > FLAKY > HEALTHY
const status = anyBrokenActive
? "BROKEN"
: anyFlakyActive
? "FLAKY"
: "HEALTHY";Reasoning: The ternary evaluates broken before flaky before healthy, so a test with both a broken-type and flaky-type monitor active resolves to Source #3 — v2.test_case.status_changed webhook includes BROKEN (confirmed)File: "Emitted when the health status of a test case changes. Test status can transition between HEALTHY, FLAKY, and BROKEN. Learn how test health is detected: https://docs.trunk.io/flaky-tests/detection",Reasoning: The event definition for |
New changelog entry for the Broken detection type on threshold monitors. Source eng PR: trunk-io/trunk2#3197 (Add broken state detector) Linear: TRUNK-17699 (no absorbed duplicates) Date basis: trunk2#3197 mergedAt 2026-03-10 Wired into all 4 sites: - changelog/2026-03-10-flaky-tests-detect-broken-tests.mdx - docs.json (Changelog 2026 group) - changelog/index.mdx (March 2026 section) - flaky-tests/changelog.mdx (March 2026 section) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
d2fb26a to
5c213ae
Compare
What shipped
Threshold monitors can now classify consistently failing tests as Broken, distinct from Flaky, via a "Detection type: Broken" setting. Test status priority is Broken > Flaky > Healthy, and the
v2.test_case.status_changedwebhook now emitsBROKEN.Source
mergedAt= 2026-03-10Wired into all 4 sites
changelog/2026-03-10-flaky-tests-detect-broken-tests.mdxdocs.json(Changelog 2026 group)changelog/index.mdx(March 2026 section)flaky-tests/changelog.mdx(March 2026 section)Docs link target: https://docs.trunk.io/flaky-tests/detection/failure-rate-monitor (documents the Detection type: Broken setting directly).
🤖 Generated with Claude Code