Skip to content

Update TI_FS_TOKEN instruction in quick start guide - #23955

Open
guangleibao wants to merge 1 commit into
release-8.5from
guangleibao-patch-5
Open

guangleibao wants to merge 1 commit into
release-8.5from
guangleibao-patch-5

Conversation

@guangleibao

@guangleibao guangleibao commented Sep 26, 2026 •

Copy link
Copy Markdown

Clarified instructions for setting TI_FS_TOKEN in different environments.

First-time contributors' checklist

What is changed, added, or deleted? (Required)

Which TiDB version(s) do your changes apply to? (Required)

Tips for choosing the affected version(s):

By default, CHOOSE MASTER ONLY so your changes will be applied to the next TiDB major or minor releases. If your PR involves a product feature behavior change or a compatibility change, CHOOSE THE AFFECTED RELEASE BRANCH(ES) AND MASTER.

For details, see tips for choosing the affected versions.

  • master (the latest development version)
  • v9.0 (TiDB 9.0 versions)
  • v8.5 (TiDB 8.5 versions)
  • v8.1 (TiDB 8.1 versions)
  • v7.5 (TiDB 7.5 versions)
  • v7.1 (TiDB 7.1 versions)
  • v6.5 (TiDB 6.5 versions)

What is the related PR or file link(s)?

  • Related code change PR links (if applicable):
  • This PR is translated from:
  • Other reference link(s):

AI agent involvement

  • The changes in this PR were primarily made by an AI agent on behalf of the PR author.

Do your changes match any of the following descriptions?

  • Delete files
  • Change aliases
  • Need modification after applied to another branch
  • Might cause conflicts after applied to another branch

Summary by CodeRabbit

  • Documentation
    • Updated the TiDB Cloud Filesystem quick-start to show TI_FS_TOKEN setup as a commented command for users continuing in a different environment.

Clarified instructions for setting TI_FS_TOKEN in different environments.
@guangleibao
guangleibao requested a review from qiancai September 26, 2026 06:44
@ti-chi-bot ti-chi-bot Bot added the first-time-contributor Indicates that the PR was contributed by an external member and is a first-time contributor. label Sep 26, 2026
@ti-chi-bot

ti-chi-bot Bot commented Sep 26, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign hfxsd for approval. For more information see the Code Review Process.
Please ensure that each of them provides their approval before proceeding.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ti-chi-bot ti-chi-bot Bot added missing-translation-status This PR does not have translation status info. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Sep 26, 2026
@coderabbitai

coderabbitai Bot commented Sep 26, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

📝 Walkthrough

Walkthrough

The TiDB Cloud Filesystem quick-start comments out the TI_FS_TOKEN setting command for readers continuing in a different environment.

Changes

Quick-start documentation

Layer / File(s) Summary
Token-setting instruction
ai/ti/ti-quick-start.md
The example presents the token-setting command as a comment for readers continuing in a different environment.

Priority: ⬇️ Low

Estimated code review effort: 1 (Trivial) | ~2 minutes

Change: Other

Merge Risk: 🔵 Low · up to 496b8

Readers using a new environment without a stored filesystem credential may be unable to complete the mount as documented. This is a bounded documentation issue with a straightforward correction.

Architecture Summary

Architecture risk: 🔵 Low · up to 496b8

The change affects 1 system.

Changed systems: ai

Architecture concerns
No architecture-level concerns identified.

Review details

Systems and components

  • observed — ai (service) was modified; 1 changed file maps to changed impact.

Before / after behavior

  • observed — Modified behavior in ai/ti/ti-quick-start.md: The example changes the token-setting instruction from an uncommented export that readers should skip in the same terminal to a commented export for readers continuing in a different environment.
🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description explains the documentation change and uses the repository template, but it does not select the affected TiDB version. The PR objectives identify the release-8.5 branch, while all versi… Select the applicable TiDB version checkbox, including v8.5 if the change targets the release-8.5 branch. Keep the change summary in the required section if needed.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely describes the change to the TI_FS_TOKEN instruction in the quick-start guide.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Full details: Description check

Explanation

The description explains the documentation change and uses the repository template, but it does not select the affected TiDB version. The PR objectives identify the release-8.5 branch, while all version checkboxes remain unchecked.

  • Fix all pre-merge checks with AI
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1


ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository: pingcap/docs/.coderabbit.yaml

Review profile: ASSERTIVE

Plan: Advanced

Run ID: a8f99e30-b737-4250-be4d-3239dddb4ccc

📥 Commits

Reviewing files that changed from the base of the PR and between 8503bb1 and 496b8d5.

📒 Files selected for processing (1)
  • ai/ti/ti-quick-start.md

Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 3 remain after this review.

Comment thread ai/ti/ti-quick-start.md

```bash
export TI_FS_TOKEN="<owner-token>" # Skip this line if you are continuing in the same terminal as step 1, where TI_FS_TOKEN is already set.
# export TI_FS_TOKEN="<owner-token>" # If you are continuing on a different environment as step 1, pass in the TI_FS_TOKEN you get from step 1 here.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

🔎 Supported by static analysis

🏁 Script executed:

git diff --no-ext-diff --unified=25 8503bb1394cc88fa56657dbd1675f90753a2e552 496b8d5c6f0084ec2dc0a5841f7a6cef8ce1ab10 -- ai/ti/ti-quick-start.md
sed -n '1,190p' ai/ti/ti-quick-start.md
sed -n '20,45p' ai/ti/reference/ti-fs-read-file.md
sed -n '45,80p' tidb-cloud-filesystem/manage-filesystem-tokens.md
rg -n 'TI_FS_TOKEN|fs-token|token' ai/ti tidb-cloud-filesystem

Repository: pingcap/docs

Length of output: 41310


🏁 Script executed:

#!/bin/bash
set -o pipefail
printf '%s\n' '--- quick-start diff and relevant lines ---'
git diff --no-ext-diff --unified=12 8503bb1394cc88fa56657dbd1675f90753a2e552 496b8d5c6f0084ec2dc0a5841f7a6cef8ce1ab10 -- ai/ti/ti-quick-start.md
printf '%s\n' '--- access guide ---'
cat -n tidb-cloud-filesystem/access-filesystem.md
printf '%s\n' '--- mount docs and references mentioning credential fallback ---'
rg -n -C 5 'mount-file-system|TI_FS_TOKEN|local token|API key|fs-token|credential' tidb-cloud-filesystem ai/ti/reference ai/ti/guides | head -n 320
printf '%s\n' '--- repository implementation or contract references ---'
rg -n -C 4 'mount-file-system|resolve.*token|token.*precedence|TI_FS_TOKEN|local.*token' --glob '!node_modules/**' --glob '!dist/**' .

Repository: pingcap/docs

Length of output: 42051


🤖 get_repo_knowledge executed:

get_repo_knowledge pingcap/docs /tmp/coderabbit-repo-knowledge/pingcap-docs-9c73f70c

Length of output: 876


Provide a token when the environment has no local credential.

The CLI can use a locally stored token, so TI_FS_TOKEN is optional on a machine with that credential. A new environment without a local credential needs the token. The proposed prompt should run only in an interactive terminal so injected secrets and non-interactive agent workflows continue to work.

Suggested fix
-    # export TI_FS_TOKEN="<owner-token>" # If you are continuing on a different environment as step 1, pass in the TI_FS_TOKEN you get from step 1 here.
+    if [ -z "${TI_FS_TOKEN:-}" ] && [ -t 0 ]; then
+      read -r -s -p "Enter the owner token from step 1: " TI_FS_TOKEN
+      echo
+      export TI_FS_TOKEN
+    fi
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
# export TI_FS_TOKEN="<owner-token>" # If you are continuing on a different environment as step 1, pass in the TI_FS_TOKEN you get from step 1 here.
if [ -z "${TI_FS_TOKEN:-}" ] && [ -t 0 ]; then
read -r -s -p "Enter the owner token from step 1: " TI_FS_TOKEN
echo
export TI_FS_TOKEN
fi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

first-time-contributor Indicates that the PR was contributed by an external member and is a first-time contributor. missing-translation-status This PR does not have translation status info. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant