Skip to content

Conversation

QiJune
Copy link
Collaborator

@QiJune QiJune commented Jul 7, 2025

Summary by CodeRabbit

  • Documentation
    • Added a "Deprecation Policy" section explaining how deprecated features are communicated, including runtime warnings and a 3-month migration period before removal.

Copy link
Collaborator

@laikhtewari laikhtewari left a comment

Choose a reason for hiding this comment

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

One reasonable scenario: you want to deprecate / make breaking change to some of the params of the LLM API, but you won't deprecate the whole LLM API/method/class

I don't think this scenario is explicitly covered in this deprecation policy but should be

@QiJune QiJune requested review from Superjomn and syuoni July 9, 2025 02:48
Copy link
Contributor

coderabbitai bot commented Jul 21, 2025

Walkthrough

A "Deprecation Policy" section was added to the README.md, outlining the process for deprecating APIs and tools, including notification methods, runtime warnings, a 3-month migration period, and subsequent removal aligned with semantic versioning. No changes were made to code or exported entities.

Changes

File(s) Change Summary
README.md Added "Deprecation Policy" section detailing the deprecation process, notification, warnings, migration period, and removal policy.

Estimated code review effort

1 (<30 minutes)

Poem

In README’s meadow, a new note appears,
A policy for changes, to calm all our fears.
Three months to migrate, with warnings in tow,
Old APIs waving as they softly go.
🐇 With versioning clear, we hop right along—
Deprecation’s a journey, but never too long!


🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

🧹 Nitpick comments (2)
README.md (2)

226-226: Heading style violates markdownlint MD003

markdownlint-cli2 flags this line because the file currently mixes setext and ATX heading styles at the same level.
Either convert this heading to setext or configure the linter to accept mixed styles. For consistency with the majority of existing H2 sections, converting to setext is the minimal fix:

-## Deprecation Policy
+Deprecation Policy
+==================

228-231: Split long paragraph into bullets for scannability

The policy is excellent content-wise, but a single dense sentence hampers readability. A bullet list makes each guarantee immediately visible.

-Deprecation notices are communicated in the Release Notes. Deprecated API functions will have a statement in the source documenting when they were deprecated. Deprecated methods and classes will issue deprecation warnings at runtime, if they are used. TensorRT-LLM provides a 3-month migration period after the deprecation. APIs and tools continue to work during the migration period. After the migration period ends, APIs and tools are removed in a manner consistent with semantic versioning.
+Deprecation notices appear in **Release Notes** and the source code.  Deprecated entities:
+
+* include a comment indicating the version in which they were deprecated,
+* emit a `DeprecationWarning` at runtime,
+* remain functional for at least **3 months** to give users time to migrate.
+
+After the migration window, the APIs or tools are removed in accordance with semantic-versioning principles.
📜 Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 88076ee and 41f510b.

📒 Files selected for processing (1)
  • README.md (1 hunks)
🧰 Additional context used
🪛 markdownlint-cli2 (0.17.2)
README.md

226-226: Heading style
Expected: setext; Actual: atx

(MD003, heading-style)

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

🧹 Nitpick comments (2)
README.md (2)

226-226: Prefer Setext‐style for level-2 headings if you want to silence markdownlint

The repo seems to have MD003 enabled with the “setext” preference.
Switching

## Deprecation Policy

to

Deprecation Policy
------------------

will satisfy the rule.
(Everything renders the same in GitHub Markdown; this is purely a style/lint matter.)


230-242: Indent nested bullets four spaces to satisfy MD007 and keep lists crisp

markdownlint is flagging the inner dash lists because they’re only indented by two spaces.
Four-space indentation is the conventional & linter-friendly offset for a sub-list under a numbered item.

-  - Deprecation notices are documented in the Release Notes.
-  - Deprecated APIs, methods, classes, or parameters include a statement in the source code indicating when they were deprecated.
-  - If used, deprecated methods, classes, or parameters issue runtime deprecation warnings.
+    - Deprecation notices are documented in the Release Notes.  
+    - Deprecated APIs, methods, classes, or parameters include a statement in the source code indicating when they were deprecated.  
+    - If used, deprecated methods, classes, or parameters issue runtime deprecation warnings.

-  - TensorRT-LLM provides a 3-month migration period after deprecation.
-  - During this period, deprecated APIs, tools, or parameters continue to work but trigger warnings.
+    - TensorRT-LLM provides a 3-month migration period after deprecation.  
+    - During this period, deprecated APIs, tools, or parameters continue to work but trigger warnings.

-  - Full API/Method/Class Deprecation: The entire API/method/class is marked for removal.
-  - Partial Deprecation: If only specific parameters of an API/method are deprecated (e.g., param1 in LLM.generate(param1, param2)), the method itself remains functional, but the deprecated parameters will be removed in a future release.
+    - Full API/Method/Class Deprecation: the entire API/method/class is marked for removal.  
+    - Partial Deprecation: if only specific parameters of an API/method are deprecated (e.g., `param1` in `LLM.generate(param1, param2)`), the method itself remains functional, but the deprecated parameters will be removed in a future release.

-  - After the 3-month migration period ends, deprecated APIs, tools, or parameters are removed in a manner consistent with semantic versioning (major version changes may include breaking removals).
+    - After the 3-month migration period ends, deprecated APIs, tools, or parameters are removed in a manner consistent with semantic versioning (major version changes may include breaking removals).

This keeps rendering identical while quieting MD004/MD007.

📜 Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 41f510b and 04258e8.

📒 Files selected for processing (1)
  • README.md (1 hunks)
🧰 Additional context used
🪛 markdownlint-cli2 (0.17.2)
README.md

226-226: Heading style
Expected: setext; Actual: atx

(MD003, heading-style)


231-231: Unordered list style
Expected: asterisk; Actual: dash

(MD004, ul-style)


231-231: Unordered list indentation
Expected: 0; Actual: 2

(MD007, ul-indent)


232-232: Unordered list style
Expected: asterisk; Actual: dash

(MD004, ul-style)


232-232: Unordered list indentation
Expected: 0; Actual: 2

(MD007, ul-indent)


233-233: Unordered list style
Expected: asterisk; Actual: dash

(MD004, ul-style)


233-233: Unordered list indentation
Expected: 0; Actual: 2

(MD007, ul-indent)


235-235: Unordered list style
Expected: asterisk; Actual: dash

(MD004, ul-style)


235-235: Unordered list indentation
Expected: 0; Actual: 2

(MD007, ul-indent)


236-236: Unordered list style
Expected: asterisk; Actual: dash

(MD004, ul-style)


236-236: Unordered list indentation
Expected: 0; Actual: 2

(MD007, ul-indent)


238-238: Unordered list style
Expected: asterisk; Actual: dash

(MD004, ul-style)


238-238: Unordered list indentation
Expected: 0; Actual: 2

(MD007, ul-indent)


239-239: Unordered list style
Expected: asterisk; Actual: dash

(MD004, ul-style)


239-239: Unordered list indentation
Expected: 0; Actual: 2

(MD007, ul-indent)


241-241: Unordered list style
Expected: asterisk; Actual: dash

(MD004, ul-style)


241-241: Unordered list indentation
Expected: 0; Actual: 2

(MD007, ul-indent)

@QiJune
Copy link
Collaborator Author

QiJune commented Jul 21, 2025

One reasonable scenario: you want to deprecate / make breaking change to some of the params of the LLM API, but you won't deprecate the whole LLM API/method/class

I don't think this scenario is explicitly covered in this deprecation policy but should be

@laikhtewari , updated the deprecation policy, and introduce "Partial Deprecation". Please have another look.

Copy link
Collaborator

@laikhtewari laikhtewari left a comment

Choose a reason for hiding this comment

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

Nice addition of partial deprecation. Lgtm

@QiJune
Copy link
Collaborator Author

QiJune commented Jul 21, 2025

/bot skip --comment "doc changes"

@QiJune QiJune enabled auto-merge (squash) July 21, 2025 10:25
@tensorrt-cicd
Copy link
Collaborator

PR_Github #12441 [ skip ] triggered by Bot

@tensorrt-cicd
Copy link
Collaborator

PR_Github #12441 [ skip ] completed with state SUCCESS
Skipping testing for commit 04258e8

@QiJune QiJune merged commit aea91b2 into NVIDIA:main Jul 21, 2025
3 checks passed
timlee0212 pushed a commit to timlee0212/TensorRT-LLM that referenced this pull request Jul 21, 2025
NVShreyas pushed a commit to NVShreyas/TensorRT-LLM that referenced this pull request Jul 28, 2025
Ransiki pushed a commit to Ransiki/TensorRT-LLM that referenced this pull request Jul 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants