Skip to content

[None][fix] Cherry pick cancel fix#11790

Merged
pcastonguay merged 2 commits intoNVIDIA:release/1.3.0rc5.post1from
pcastonguay:cherry_pick_cancel_fix
Mar 2, 2026
Merged

[None][fix] Cherry pick cancel fix#11790
pcastonguay merged 2 commits intoNVIDIA:release/1.3.0rc5.post1from
pcastonguay:cherry_pick_cancel_fix

Conversation

@pcastonguay
Copy link
Collaborator

@pcastonguay pcastonguay commented Feb 27, 2026

Summary by CodeRabbit

  • Bug Fixes
    • Resolved an issue where generation-only requests would emit responses after completion.

Description

Test Coverage

PR Checklist

Please review the following before submitting your PR:

  • PR description clearly explains what and why. If using CodeRabbit's summary, please make sure it makes sense.

  • PR Follows TRT-LLM CODING GUIDELINES to the best of your knowledge.

  • Test cases are provided for new code paths (see test instructions)

  • Any new dependencies have been scanned for license and vulnerabilities

  • CODEOWNERS updated if ownership changes

  • Documentation updated as needed

  • Update tava architecture diagram if there is a significant design change in PR.

  • The reviewers assigned automatically/manually are appropriate for the PR.

  • Please check this after reviewing the above items as appropriate for this PR.

GitHub Bot Help

To see a list of available CI bot commands, please comment /bot help.

…gen server (NVIDIA#11695)

Signed-off-by: Iman Tabrizian <10105175+tabrizian@users.noreply.github.com>
Signed-off-by: Iman Tabrizian <10105175+tabrizian@users.noreply.github.com>
@pcastonguay pcastonguay requested a review from a team as a code owner February 27, 2026 17:21
@pcastonguay pcastonguay requested review from Naveassaf and Tabrizian and removed request for Naveassaf February 27, 2026 17:21
@pcastonguay
Copy link
Collaborator Author

/bot run --disable-fail-fast

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Feb 27, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 630fccb and 3e67f2a.

📒 Files selected for processing (1)
  • tensorrt_llm/_torch/pyexecutor/py_executor.py

📝 Walkthrough

Walkthrough

A single-line conditional check is added to the _handle_responses method to prevent emitting responses for generation-only requests that have already completed. This refines the response finalization logic without altering public APIs.

Changes

Cohort / File(s) Summary
Response Handling Logic
tensorrt_llm/_torch/pyexecutor/py_executor.py
Added a condition check to guard against emitting responses for generation-only requests that have already finished, ensuring responses are only emitted for active requests.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

🚥 Pre-merge checks | ✅ 1 | ❌ 2

❌ Failed checks (2 warnings)

Check name Status Explanation Resolution
Description check ⚠️ Warning The PR description contains only the template placeholder text with no concrete explanation of the issue, solution, test coverage, or rationale provided by the author. Fill in the Description section explaining what cancel-related bug is being fixed and why, and provide concrete test coverage details under Test Coverage.
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (1 passed)
Check name Status Explanation
Title check ✅ Passed The title '[None][fix] Cherry pick cancel fix' follows the correct template format with [None] ticket indicator and [fix] type, and references the main intent of cherry-picking cancel/cancellation fixes.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Tip

Try Coding Plans. Let us write the prompt for your AI agent so you can ship faster (with fewer bugs).
Share your feedback on Discord.


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

@pcastonguay
Copy link
Collaborator Author

/bot run --disable-fail-fast

@tensorrt-cicd
Copy link
Collaborator

PR_Github #37105 [ run ] triggered by Bot. Commit: 3e67f2a Link to invocation

@pcastonguay pcastonguay enabled auto-merge (squash) February 27, 2026 18:11
@tensorrt-cicd
Copy link
Collaborator

PR_Github #37105 [ run ] completed with state SUCCESS. Commit: 3e67f2a
/LLM/release-1.3.0rc5.post1/L0_MergeRequest_PR pipeline #2 completed with status: 'FAILURE'

⚠️ Action Required:

  • Please check the failed tests and fix your PR
  • If you cannot view the failures, ask the CI triggerer to share details
  • Once fixed, request an NVIDIA team member to trigger CI again

Link to invocation

@Tabrizian
Copy link
Member

/bot run --disable-fail-fast

@tensorrt-cicd
Copy link
Collaborator

PR_Github #37136 [ run ] triggered by Bot. Commit: 3e67f2a Link to invocation

@pcastonguay
Copy link
Collaborator Author

/bot kill

@pcastonguay
Copy link
Collaborator Author

/bot run --disable-fail-fast

@tensorrt-cicd
Copy link
Collaborator

PR_Github #37227 [ run ] triggered by Bot. Commit: 3e67f2a Link to invocation

@tensorrt-cicd
Copy link
Collaborator

PR_Github #37227 [ run ] completed with state SUCCESS. Commit: 3e67f2a
/LLM/release-1.3.0rc5.post1/L0_MergeRequest_PR pipeline #6 completed with status: 'FAILURE'

⚠️ Action Required:

  • Please check the failed tests and fix your PR
  • If you cannot view the failures, ask the CI triggerer to share details
  • Once fixed, request an NVIDIA team member to trigger CI again

Link to invocation

@pcastonguay
Copy link
Collaborator Author

/bot run --disable-fail-fast

@tensorrt-cicd
Copy link
Collaborator

PR_Github #37240 [ run ] triggered by Bot. Commit: 3e67f2a Link to invocation

@tensorrt-cicd
Copy link
Collaborator

PR_Github #37240 [ run ] completed with state SUCCESS. Commit: 3e67f2a
/LLM/release-1.3.0rc5.post1/L0_MergeRequest_PR pipeline #7 completed with status: 'FAILURE'

⚠️ Action Required:

  • Please check the failed tests and fix your PR
  • If you cannot view the failures, ask the CI triggerer to share details
  • Once fixed, request an NVIDIA team member to trigger CI again

Link to invocation

@pcastonguay
Copy link
Collaborator Author

/bot run --disable-fail-fast

@tensorrt-cicd
Copy link
Collaborator

PR_Github #37247 [ run ] triggered by Bot. Commit: 3e67f2a Link to invocation

@tensorrt-cicd
Copy link
Collaborator

PR_Github #37247 [ run ] completed with state SUCCESS. Commit: 3e67f2a
/LLM/release-1.3.0rc5.post1/L0_MergeRequest_PR pipeline #8 completed with status: 'SUCCESS'

Link to invocation

@pcastonguay pcastonguay merged commit 0f49066 into NVIDIA:release/1.3.0rc5.post1 Mar 2, 2026
8 of 9 checks passed
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.

3 participants