Skip to content

[None][fix] Apply ruff-format to model_engine.py DSpark properties - #21307

Merged
chzblych merged 1 commit into
NVIDIA:mainfrom
EmmaQiaoCh:emma/fix_tot_format
Oct 30, 2026
Merged

chzblych merged 1 commit into
NVIDIA:mainfrom
EmmaQiaoCh:emma/fix_tot_format

Conversation

@EmmaQiaoCh

@EmmaQiaoCh EmmaQiaoCh commented Oct 30, 2026 •

Copy link
Copy Markdown
Collaborator

Dev Engineer Review

The reported changes reformat three DSpark property expressions in tensorrt_llm/_torch/pyexecutor/model_engine.py. No behavior or public API change is reported. The supplied shell output contains no diff, so the source changes could not be independently verified.

QA Engineer Review

No test changes.

Per-File QA Perspective

  • tensorrt_llm/_torch/pyexecutor/model_engine.py: The reported changes only alter formatting. No observable behavior change is expected.

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)

  • If PR introduces API changes, an appropriate PR label is added - either api-compatible or api-breaking. For api-breaking, include BREAKING in the PR title.

  • 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.

Signed-off-by: EmmaQiaoCh <qqiao@nvidia.com>
@coderabbitai

coderabbitai Bot commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Walkthrough

This change reformats two DSpark decoder-runner checks and removes whitespace inside a fallback tuple in model_engine.py. Conditions, returned values, and behavior remain unchanged.

Changes

DSpark formatting

Layer / File(s) Summary
Reflow DSpark accessors
tensorrt_llm/_torch/pyexecutor/model_engine.py
The decoder-runner checks are reflowed. The fallback tuple still returns eight zeros.

Priority: Low

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

Change: Other

Possibly related PRs

Suggested reviewers: zhaoyuanh-nvidia

Merge Risk: Minimal · up to 3dce9

No merge-blocking issues were identified; the formatting cleanup is safe to merge.

Pre-merge checks: Passed 3 · Failed 2

Failed Failed checks: 2 warnings

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat… Write docstrings for the functions missing them to satisfy the coverage threshold.
Description check Warning The pull request includes the required section headings and checklist, but it does not provide an actual issue summary, solution description, or test coverage. The content remains template text, so th… Replace the placeholder text with a concise explanation of the formatting changes in model_engine.py and state whether tests or formatting checks were run. Confirm the checklist items that apply to this formatting-only change.
Passed Passed checks: 3 passed
Check name Status Explanation
Title check Passed The title clearly identifies the formatting change, target file, and affected DSpark properties.
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: Docstring Coverage

Explanation

Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 3 functions across 1 files.

Resolution

Write docstrings for the functions missing them to satisfy the coverage threshold.

Full details: Description check

Explanation

The pull request includes the required section headings and checklist, but it does not provide an actual issue summary, solution description, or test coverage. The content remains template text, so the description is largely incomplete.

Resolution

Replace the placeholder text with a concise explanation of the formatting changes in model_engine.py and state whether tests or formatting checks were run. Confirm the checklist items that apply to this formatting-only change.

Finishing Touches: 💡 1
🛠️ Fix failing CI checks: 💡
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

@EmmaQiaoCh

Copy link
Copy Markdown
Collaborator Author

/bot run

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #81551 [ run ] triggered by Bot. Commit: 3dce940 Link to invocation

@github-actions

Copy link
Copy Markdown

Automatically added "ci: full pre-merge approved" because this PR has satisfied the required GitHub review approvals. Unresolved review conversations and other required checks remain independent merge requirements.

@EmmaQiaoCh

Copy link
Copy Markdown
Collaborator Author

/bot skip --comment "Only fix format"

@EmmaQiaoCh
EmmaQiaoCh enabled auto-merge (squash) October 30, 2026 02:06
@chzblych
chzblych disabled auto-merge October 30, 2026 02:06
@chzblych

Copy link
Copy Markdown
Collaborator

Force merge this PR to unblock pre-merge pipeline.

@chzblych
chzblych merged commit bba275b into NVIDIA:main Oct 30, 2026
20 of 23 checks passed
@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #81564 [ ] completed with state FAILURE. Commit: 3dce940
Not allowed on merged PR

Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #81551 [ run ] completed with state ABORTED. Commit: 3dce940

Link to invocation

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants