Skip to content

[None][test] Remove test_starlette_constraint_floor on release/1.3 - #20384

Merged
EmmaQiaoCh merged 2 commits into
NVIDIA:release/1.3from
EmmaQiaoCh:emma/fix_constraint_test
Oct 15, 2026
Merged

EmmaQiaoCh merged 2 commits into
NVIDIA:release/1.3from
EmmaQiaoCh:emma/fix_constraint_test

Conversation

@EmmaQiaoCh

@EmmaQiaoCh EmmaQiaoCh commented Oct 15, 2026 •

Copy link
Copy Markdown
Collaborator

The 26.09 NGC base image does not ship starlette, so constraints.txt no longer carries the starlette WAR. The starlette>=1.3.1 floor is still enforced by requirements.txt and checked by
test_web_framework_security_floors.

Dev Engineer Review

The change deletes tests/unittest/others/test_web_dependency_security.py. This removes all checks of dependency version floors and vulnerability exclusions for FastAPI, prometheus_fastapi_instrumentator, and Starlette. The repository no longer has this file’s automated checks for those requirements.

QA Engineer Review

  • Removed tests/unittest/others/test_web_dependency_security.py, including test_web_framework_security_floors and its helper functions.
  • The deleted unit test checked minimum versions, excluded versions, and FastAPI’s lack of an upper bound. No integration test-list entry for this file was found.
  • Coverage verdict: needs follow-up. The deleted checks no longer provide automated validation of these dependency requirements. Test execution results were not provided.

Per-File QA Perspective

  • tests/unittest/others/test_web_dependency_security.py: Removed CPU-only unit coverage for dependency security floors and exclusions. The file was not listed in the integration CI or manual-QA test lists.

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.

The 26.09 NGC base image does not ship starlette, so constraints.txt no
longer carries the starlette WAR. The starlette>=1.3.1 floor is still
enforced by requirements.txt and checked by
test_web_framework_security_floors.

Signed-off-by: EmmaQiaoCh <qqiao@nvidia.com>
@EmmaQiaoCh
EmmaQiaoCh requested a review from a team as a code owner October 15, 2026 05:31
@EmmaQiaoCh

Copy link
Copy Markdown
Collaborator Author

/bot run

@coderabbitai

coderabbitai Bot commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository: NVIDIA/TensorRT-LLM/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Enterprise
  • Run ID: f187871f-141d-4b5e-8185-fa8506072497
📥 Commits

Reviewing files that changed from the base of the PR and between 8a3877e and e8ad8bd.

📒 Files selected for processing: 1
  • tests/unittest/others/test_web_dependency_security.py
💤 Files with no reviewable changes: 1
  • tests/unittest/others/test_web_dependency_security.py

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

Walkthrough

The pull request removes tests and helpers that checked version floors, vulnerability exclusions, and the FastAPI upper-bound condition for web dependencies.

Changes

Web dependency security tests

Layer / File(s) Summary
Remove dependency security tests
tests/unittest/others/test_web_dependency_security.py
Removes tests and helpers that checked FastAPI, prometheus_fastapi_instrumentator, and Starlette version constraints.

Priority: ⬇️ Low

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

Change: Other

Merge Risk: 🔵 Low · up to e8ad8

Current dependency requirements remain intact, but future changes to these security constraints would no longer be caught by the removed tests. This is a bounded follow-up risk rather than an established deployment failure.

Pre-merge checks: Passed 4 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Description check Warning The description explains the Starlette constraint change, but the Test Coverage section is empty, most checklist items are not confirmed, and the stated remaining test conflicts with the objective to … Update the description to accurately state that test_web_dependency_security.py and its remaining floor tests are removed. Add explicit test coverage or validation details. Complete the applicable checklist items.
Passed Passed checks: 4 passed
Check name Status Explanation
Title check Passed The title identifies a real part of the change, but it names only one test while the pull request deletes the entire web dependency security test file.
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 Starlette constraint change, but the Test Coverage section is empty, most checklist items are not confirmed, and the stated remaining test conflicts with the objective to remove it.

  • Fix all pre-merge checks with AI
✨ Finishing Touches
🧪 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.

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #78021 [ run ] triggered by Bot. Commit: 8a3877e 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
EmmaQiaoCh enabled auto-merge (squash) October 15, 2026 05:46
Drop the remaining web framework floor test as well, so the file is
removed entirely on release/1.3.

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

Copy link
Copy Markdown
Collaborator Author

/bot run

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #78036 [ run ] triggered by Bot. Commit: e8ad8bd Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #78021 [ run ] completed with state ABORTED. Commit: 8a3877e

Link to invocation

@EmmaQiaoCh

Copy link
Copy Markdown
Collaborator Author

/bot skip --comment "The previous CI passed x86 single GPU CI"

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #78052 [ skip ] triggered by Bot. Commit: e8ad8bd Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #78036 [ run ] completed with state ABORTED. Commit: e8ad8bd

Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #78052 [ skip ] completed with state SUCCESS. Commit: e8ad8bd
Skipping testing for commit e8ad8bd

Link to invocation

@EmmaQiaoCh
EmmaQiaoCh merged commit 7c2f938 into NVIDIA:release/1.3 Oct 15, 2026
JunyiXu-nv added a commit to JunyiXu-nv/TensorRT-LLM that referenced this pull request Oct 16, 2026
…straint_floor (NVIDIA#20384)

Signed-off-by: JunyiXu-nv <219237550+JunyiXu-nv@users.noreply.github.com>
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.

6 participants