diff --git a/changelog/2026-10-06-flaky-tests-mcp-test-collections-and-api-updates.mdx b/changelog/2026-10-06-flaky-tests-mcp-test-collections-and-api-updates.mdx new file mode 100644 index 00000000..f22de953 --- /dev/null +++ b/changelog/2026-10-06-flaky-tests-mcp-test-collections-and-api-updates.mdx @@ -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). + + +`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). + diff --git a/changelog/2026-10-06-merge-queue-skip-redundant-bisection-tests.mdx b/changelog/2026-10-06-merge-queue-skip-redundant-bisection-tests.mdx new file mode 100644 index 00000000..8fe71d9a --- /dev/null +++ b/changelog/2026-10-06-merge-queue-skip-redundant-bisection-tests.mdx @@ -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. diff --git a/changelog/index.mdx b/changelog/index.mdx index b61b1290..693d285d 100644 --- a/changelog/index.mdx +++ b/changelog/index.mdx @@ -6,6 +6,20 @@ rss: true ## 2026 +### October 2026 + + + **[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. + + + + **[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. + + ### September 2026 diff --git a/docs.json b/docs.json index 81c822e5..25bf7854 100644 --- a/docs.json +++ b/docs.json @@ -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": [ diff --git a/flaky-tests/changelog.mdx b/flaky-tests/changelog.mdx index cdda14a5..78dee7d6 100644 --- a/flaky-tests/changelog.mdx +++ b/flaky-tests/changelog.mdx @@ -7,6 +7,14 @@ og:title: "Trunk Flaky Tests changelog" ## 2026 +### October 2026 + + + **[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. + + ### September 2026 diff --git a/merge-queue/changelog.mdx b/merge-queue/changelog.mdx index dd3a09b2..14a27eed 100644 --- a/merge-queue/changelog.mdx +++ b/merge-queue/changelog.mdx @@ -7,6 +7,14 @@ og:title: "Trunk Merge Queue changelog" ## 2026 +### October 2026 + + + **[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. + + ### August 2026