Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
title: "Flaky Tests: MCP Test Collection Support and API Updates"
description: "The Trunk MCP server now reads test collections, the v2 API can link tickets to tests, and the CLI downloads from trunk.io."
date: 2026-10-06
category: Flaky Tests
type: new-feature
---

**Your AI tools and API integrations now work with test collections.**

### New features

- **MCP server reads test collections.** [`search-test`](/flaky-tests/reference/mcp-reference/search-test) and [`investigate-ci-failure`](/flaky-tests/reference/mcp-reference/investigate-ci-failure) now include results from your [test collections](/flaky-tests/test-collections). Search results show each test's Collection ID and quarantine state.
- **New `list-test-collections` MCP tool.** [List the collections](/flaky-tests/reference/mcp-reference/list-test-collections) a repository uploads to. Pass a Collection ID to `search-test` to search just that collection.
- **Link a ticket through the v2 API.** The new [Link a ticket to a test](/flaky-tests/reference/api-reference/v2/tests/link-a-ticket-to-a-test) endpoint closes the last gap with the v1 API.

### Updates

- **v2 API endpoints renamed to `tests`.** The v2 `test-cases` endpoints are now under `/v2/tests`. See the [API reference](/flaky-tests/reference/api-reference).
- **Download the CLI from trunk.io.** The analytics CLI is now served from `https://trunk.io/releases/analytics-cli/prod`. GitHub rate-limits release downloads, so switch your CI scripts over for more reliable uploads. See [Manual Download](/flaky-tests/reference/cli-reference#manual-download).

<Note>
`fix-flaky-test` doesn't support test collections yet. If your organization has fully moved to collections, use `search-test` instead. See [AI agents and the MCP server](/flaky-tests/get-started/migrate-to-test-collections#ai-agents-and-the-mcp-server).
</Note>
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
title: "Merge Queue: Skip Redundant Bisection Tests"
description: "Bisection now skips combinations of PRs that already failed and re-splits them right away, saving CI runs and time."
date: 2026-10-06
category: Merge Queue
type: update
---

**Find the PR that broke a batch faster, with fewer CI runs.**

With **Skip Redundant Bisection Tests** enabled, Trunk won't re-test a set of PRs that already failed in the same bisection. It reuses that failure instead.

- **Immediate re-splits.** Skipped groups are split and re-tested right away, alongside the rest of the bisection, instead of waiting on the tests ahead of them.
- **Only failures are reused.** A cached result never marks a PR as passed. Trunk discards a reused failure if the base changes or the bisection restarts.
- **Opt-in.** Turn it on in your queue's **Settings** under **Batching**, through the [API](/merge-queue/reference/api-v2/mergequeues/update-a-merge-queues-configuration), or with [Terraform](/merge-queue/administration/terraform).

If your queue sees many flaky failures, pair this with [Anti-flake protection](/merge-queue/optimizations/anti-flake-protection). See [Test caching during bisection](/merge-queue/optimizations/batching#test-caching-during-bisection) for details.
14 changes: 14 additions & 0 deletions changelog/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,20 @@ rss: true

## 2026

### October 2026

<Update label="October 6, 2026" tags={["Flaky Tests"]}>
**[Flaky Tests: MCP Test Collection Support and API Updates](/changelog/2026-10-06-flaky-tests-mcp-test-collections-and-api-updates)**

The Trunk MCP server now reads test collections, the v2 API can link tickets to tests, and the CLI downloads from trunk.io.
</Update>

<Update label="October 6, 2026" tags={["Merge Queue"]}>
**[Merge Queue: Skip Redundant Bisection Tests](/changelog/2026-10-06-merge-queue-skip-redundant-bisection-tests)**

Bisection now skips combinations of PRs that already failed and re-splits them right away, saving CI runs and time.
</Update>

### September 2026

<Update label="September 30, 2026" tags={["Flaky Tests"]}>
Expand Down
7 changes: 7 additions & 0 deletions docs.json
Original file line number Diff line number Diff line change
Expand Up @@ -926,6 +926,13 @@
{
"group": "2026",
"pages": [
{
"group": "October",
"pages": [
"changelog/2026-10-06-flaky-tests-mcp-test-collections-and-api-updates",
"changelog/2026-10-06-merge-queue-skip-redundant-bisection-tests"
]
},
{
"group": "September",
"pages": [
Expand Down
8 changes: 8 additions & 0 deletions flaky-tests/changelog.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@ og:title: "Trunk Flaky Tests changelog"

## 2026

### October 2026

<Update label="October 6, 2026" tags={["Flaky Tests"]}>
**[Flaky Tests: MCP Test Collection Support and API Updates](/changelog/2026-10-06-flaky-tests-mcp-test-collections-and-api-updates)**

The Trunk MCP server now reads test collections, the v2 API can link tickets to tests, and the CLI downloads from trunk.io.
</Update>

### September 2026

<Update label="September 30, 2026" tags={["Flaky Tests"]}>
Expand Down
8 changes: 8 additions & 0 deletions merge-queue/changelog.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@ og:title: "Trunk Merge Queue changelog"

## 2026

### October 2026

<Update label="October 6, 2026" tags={["Merge Queue"]}>
**[Merge Queue: Skip Redundant Bisection Tests](/changelog/2026-10-06-merge-queue-skip-redundant-bisection-tests)**

Bisection now skips combinations of PRs that already failed and re-splits them right away, saving CI runs and time.
</Update>

### August 2026

<Update label="August 26, 2026" tags={["Merge Queue"]}>
Expand Down
Loading