From ea844aa6c94b124ced5200438285912415c427f7 Mon Sep 17 00:00:00 2001 From: "mintlify[bot]" <109931778+mintlify[bot]@users.noreply.github.com> Date: Wed, 30 Sep 2026 15:43:00 +0000 Subject: [PATCH] docs: add changelog entry for fork PR uploads to test collections --- ...tests-fork-pr-uploads-test-collections.mdx | 22 +++++++++++++++++++ changelog/index.mdx | 6 +++++ docs.json | 1 + flaky-tests/changelog.mdx | 6 +++++ 4 files changed, 35 insertions(+) create mode 100644 changelog/2026-09-30-flaky-tests-fork-pr-uploads-test-collections.mdx diff --git a/changelog/2026-09-30-flaky-tests-fork-pr-uploads-test-collections.mdx b/changelog/2026-09-30-flaky-tests-fork-pr-uploads-test-collections.mdx new file mode 100644 index 00000000..a39f72ff --- /dev/null +++ b/changelog/2026-09-30-flaky-tests-fork-pr-uploads-test-collections.mdx @@ -0,0 +1,22 @@ +--- +title: "Flaky Tests: Fork PR Uploads for Test Collections" +description: "Test collections can now accept test result uploads from forked pull requests, with no API token in the fork workflow." +slug: flaky-tests-fork-pr-uploads-test-collections +date: 2026-09-30 +category: Flaky Tests +type: new-feature +--- + +**Test collections can now accept uploads from forked pull requests.** + +CI on a fork pull request can't read your repository secrets, so it has no Trunk API token. You can now opt a [test collection](/flaky-tests/test-collections) into accepting those uploads, so outside contributors get flake detection and [quarantining](/flaky-tests/quarantining) too. + +- **Turn it on per collection.** Open the collection, go to **Settings** → **Uploads**, and turn on **Accept uploads from forked pull requests**. Only organization admins can change this setting. +- **No new identifier.** The fork workflow addresses the collection by its existing collection ID, which is safe to commit. The ID grants nothing unless the setting is on. +- **Upload without a token.** Set `allow-forked-pr-uploads: true` alongside `test-collection-id` on `trunk-io/analytics-uploader@v2`. If you call the CLI directly, pass `--allow-forked-pr-uploads` with `--test-collection-id`. +- **Contributors' CI stays green.** A refused fork upload logs a warning and exits successfully. +- **Easy to revoke.** Turning the setting off takes effect within about a minute. + +Requires analytics-cli 0.15.5 or later and `analytics-uploader` v2.1.4 or later. The `@v2` tag already includes it. + +Repositories that don't use test collections can keep using the existing public repo identifier. See [Uploads from forked pull requests](/flaky-tests/get-started/fork-pr-uploads) for both setups. diff --git a/changelog/index.mdx b/changelog/index.mdx index c7f4bb27..b61b1290 100644 --- a/changelog/index.mdx +++ b/changelog/index.mdx @@ -8,6 +8,12 @@ rss: true ### September 2026 + + **[Flaky Tests: Fork PR Uploads for Test Collections](/changelog/2026-09-30-flaky-tests-fork-pr-uploads-test-collections)** + + Test collections can now accept test result uploads from forked pull requests, with no API token in the fork workflow. + + **[Flaky Tests: Test Collections](/changelog/2026-09-15-flaky-tests-test-collections)** diff --git a/docs.json b/docs.json index 69b47651..0db2d6d3 100644 --- a/docs.json +++ b/docs.json @@ -925,6 +925,7 @@ { "group": "September", "pages": [ + "changelog/2026-09-30-flaky-tests-fork-pr-uploads-test-collections", "changelog/2026-09-15-flaky-tests-test-collections" ] }, diff --git a/flaky-tests/changelog.mdx b/flaky-tests/changelog.mdx index 97b406a5..cdda14a5 100644 --- a/flaky-tests/changelog.mdx +++ b/flaky-tests/changelog.mdx @@ -9,6 +9,12 @@ og:title: "Trunk Flaky Tests changelog" ### September 2026 + + **[Flaky Tests: Fork PR Uploads for Test Collections](/changelog/2026-09-30-flaky-tests-fork-pr-uploads-test-collections)** + + Test collections can now accept test result uploads from forked pull requests, with no API token in the fork workflow. + + **[Flaky Tests: Test Collections](/changelog/2026-09-15-flaky-tests-test-collections)**