Repository navigation
docs(flaky-tests): onboard with the trunk CLI and an API key (TRUNK-23375) - #495
Merged
acatxnamedvirtue merged 4 commits intoNov 19, 2026
Merged
Conversation
Contributor
|
Preview deployment for your docs. Learn more about Mintlify Previews.
|
This was referenced Nov 16, 2026
acatxnamedvirtue
force-pushed
the
tylerbeebe/trunk-23375-trunk-cli-onboarding
branch
from
November 18, 2026 20:05
ed5e2a7 to
e6a1bb5
Compare
…3375) Add a Trunk CLI page for Flaky Tests: install (macOS/Linux, Windows experimental), store a v2 API key with `trunk auth api-key set`, upload with `trunk flakytests`, CI use, version pinning, self-update and telemetry. Move Getting Started, Other CI, GitHub Actions (analytics-uploader @V3), the CLI reference and fork PR uploads to that flow, replacing the organization token with an API key that has Upload test results. Keep a path for running trunk-analytics-cli directly with `--token`, with the release-download curl calls bounded by --connect-timeout/--max-time. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…rs for v3 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
analytics-cli 1.0.0 was promoted for its major only, so channel.json stays on 0.17.0, which takes no API key. The direct-download snippets read channel-1.json, as the trunk CLI and analytics-uploader v3 do. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
acatxnamedvirtue
force-pushed
the
tylerbeebe/trunk-23375-trunk-cli-onboarding
branch
from
November 19, 2026 16:32
64b465e to
51d715f
Compare
acatxnamedvirtue
marked this pull request as ready for review
November 19, 2026 16:35
Contributor
|
Docs PR opened: #540 I added a November 19 changelog post about uploading Flaky Tests results with the new trunk CLI and an API key. |
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of TRUNK-23375
Summary
Onboarding docs: upload test results with the new
trunkCLI and a v2 API key.flaky-tests/get-started/trunk-cli.mdx(in Getting Started): install (macOS/Linux; Windows marked experimental), create an API key with Upload test results,trunk auth api-key set,trunk flakytests upload/test, CI use, version pins, self-update, telemetry, env vars.trunk-io/analytics-uploader@v3, plus an "Upgrading from v2" section), the CLI reference and fork PR uploads now use that flow. "Organization API token (v1)" becomes "an API key with the Upload test results permission".--token= API key).channel-1.json, notchannel.json. analytics-cli 1.0.0 was promoted for its major only, sochannel.jsonstays on 0.17.0, which doesn't accept an API key.curlcalls carry--connect-timeout 10 --max-time 60 --retry 3, as TRD-0031 requires.api/authentication.mdx: Upload test results no longer says the CLI and uploader "don't use it yet".Ready to merge
Everything these pages depend on has shipped:
channel-1.json(channel.jsonstays on 0.17.0 on purpose).https://install.trunk.ioserves bothinstall.shandinstall.ps1.trunk-io/analytics-uploaderv3.0.0 is released and marked latest, and thev3tag resolves.@v3everywhereThe docs recommend
trunk-io/analytics-uploader@v3, with an API key with Upload test results stored asTRUNK_API_KEY. Besides the onboarding pages above, three pages that still showed@v2with the organization token now match:TRUNK_API_KEY.TRUNK_API_KEYnow serves both the uploader and the script, since reading tests needs no permission. The note about two different credentials is replaced.Only the dated changelog entries still mention
@v2.Rebased onto
mainafter the Agents → Recipes move and the new API permission rows. Inapi/authentication.mdx, main's new Flaky Tests permission rows are kept, with this PR's Upload test results row. In the CLI reference, main's warning about pre-1.0 CLIs uploading without a collection ID is kept, since it still applies to 0.17.x.Testing
channel-1.jsonandtrunk-analytics-cli --versionprinted1.0.0. All four Linux and macOS 1.0.0 assets the snippets name exist.docs.jsonparses, the new page is in the navigation, and every internal link in the changed pages resolves (API reference links aside, which come from the spec).Follow-up (not in this PR)
./trunk-analytics-cli. A follow-up PR will update them.channel.json. Its consumers table needs the switch tochannel-1.json.🤖 Generated with Claude Code