docs(changelog): Flaky Tests AI investigations delivered via webhooks#148
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 action: ready to publish. Mark the PR ready for review and merge. |
|
Code verification (2026-05-28): 4 confirmed / 0 contradicted / 0 ambiguous / 0 unverifiable The entry makes only behavioral claims (no field names, limits, or paths to check). All four resolve against
No contradictions. Entry is safe to publish as written. Source #1 — Triggers when a test first becomes flaky (confirmed)File: event.previous_status === "HEALTHY" &&
(event.new_status === "FLAKY" || event.new_status === "BROKEN");Reasoning: The enqueue guard only fires on a Source #2 — Runs in the background (confirmed)File: const queueUrl = process.env["FLAKY_TESTS_INVESTIGATION_QUEUE_URL"];Reasoning: The detection handler does not run the investigation inline. It enqueues an SQS FIFO message onto the investigation queue, which the separate Source #3 — Gathers context from CI runs, Git history, and related code (confirmed)File: Reasoning: The investigation package's subdirectories map directly to the three named context sources: Source #4 — Emits a structured payload to your webhook (confirmed)File: "test_case.investigation_completed":Reasoning: PR #3372 emits a |
Add changelog entry for AI-powered flaky test investigations that run automatically when a test first becomes flaky, delivering findings to a configured webhook endpoint. Source eng PR: trunk-io/trunk2#3475 (Part 8/9: Trigger AI FT investigations and emit results to Svix), merged 2026-04-06. Linear: TRUNK-17938 (no absorbed duplicates). Date basis: source eng PR mergedAt. Wired into all four sites: changelog/2026-04-06-flaky-tests-ai-investigations-webhooks.mdx, docs.json nav, changelog/index.mdx, flaky-tests/changelog.mdx. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
b9e683c to
81d35d5
Compare
What shipped
AI-powered flaky test investigations now run automatically when a test first becomes flaky. Trunk kicks off a background AI investigation that gathers context from CI runs, Git history, and related code, then emits a structured payload to the configured webhook endpoint.
Source
mergedAt= 2026-04-06Wired into all four sites
changelog/2026-04-06-flaky-tests-ai-investigations-webhooks.mdx(new entry)docs.jsonnav (Changelog 2026 group)changelog/index.mdx(new April 6, 2026 Update block)flaky-tests/changelog.mdx(new April 2026 section + Update block)Docs link: https://docs.trunk.io/flaky-tests/webhooks
🤖 Generated with Claude Code