Skip to content

[None][infra] Check license with both isPermissive and isProprietary flags#13921

Merged
yuanjingx87 merged 2 commits into
NVIDIA:mainfrom
yuanjingx87:user/yuanjingx/plc_nightly_pipeline_update
May 12, 2026
Merged

[None][infra] Check license with both isPermissive and isProprietary flags#13921
yuanjingx87 merged 2 commits into
NVIDIA:mainfrom
yuanjingx87:user/yuanjingx/plc_nightly_pipeline_update

Conversation

@yuanjingx87
Copy link
Copy Markdown
Collaborator

@yuanjingx87 yuanjingx87 commented May 8, 2026

Summary by CodeRabbit

  • Improvements
    • Enhanced license categorization in pipeline scanning to better identify proprietary and non-standard licenses requiring additional review during the build process.

Description

Checking if the license is permissive with both isPermissive and isProprietary flags.

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.

@yuanjingx87 yuanjingx87 requested review from a team as code owners May 8, 2026 20:54
Signed-off-by: Yuanjing Xue <197832395+yuanjingx87@users.noreply.github.com>
@yuanjingx87 yuanjingx87 force-pushed the user/yuanjingx/plc_nightly_pipeline_update branch from 50acbd8 to e77a705 Compare May 8, 2026 20:57
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 8, 2026

📝 Walkthrough

Walkthrough

The pull request adds a helper function to evaluate license review requirements and integrates it into the is_permissive API response handler. The helper determines whether a license should be flagged for review based on permissiveness and NVIDIA proprietary ownership status.

Changes

License Review Helper Logic

Layer / File(s) Summary
Helper Function Definition
jenkins/scripts/pulse_in_pipeline_scanning/utils/common.py
New license_needs_review(license, result) function evaluates whether a license requires review when it is neither permissive nor an NVIDIA proprietary license.
API Response Handler Integration
jenkins/scripts/pulse_in_pipeline_scanning/utils/common.py
The is_permissive function's success path now maps each API result through license_needs_review instead of directly returning the API's isPermissive field.

🎯 2 (Simple) | ⏱️ ~8 minutes

🚥 Pre-merge checks | ✅ 3 | ❌ 2

❌ Failed checks (2 warnings)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 33.33% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
Description check ⚠️ Warning The PR description is incomplete and lacks critical required information such as detailed explanation of the problem, solution, test coverage details, and PR checklist responses. Add a detailed description of the issue being solved, explain why both isPermissive and isProprietary flags are needed, describe the implementation, and provide specific test coverage information with test names or locations.
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly identifies the main change: updating license checking logic to consider both isPermissive and isProprietary flags.
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.

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

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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

Copy link
Copy Markdown
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: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@jenkins/scripts/pulse_in_pipeline_scanning/utils/common.py`:
- Around line 13-15: The function license_needs_review currently returns a
"needs review" boolean but its result is stored as is_permissive elsewhere;
change the function to return true when the license is permissive (and false for
NVIDIA proprietary) by returning result["isPermissive"] and not
is_nvidia_proprietary instead of the current not(...) expression, and update any
callers if they actually need a "needs review" value.
- Line 41: The loop using for lic, result in zip(licenses, resp["data"]) can
silently drop items if the response length differs from licenses; update the
iteration in the function that contains this loop to either (a) use zip(...,
strict=True) so Python raises a ValueError on length mismatch, or (b) add an
explicit length check comparing len(licenses) and len(resp["data"]) before the
loop and raise a clear error if they differ; ensure you update the code around
the for lic, result in zip(licenses, resp["data"]) statement and handle the
raised error appropriately so incomplete compliance decisions cannot be returned
silently.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: 81960237-8c14-447b-9e57-9539d0b5bc11

📥 Commits

Reviewing files that changed from the base of the PR and between f8572ab and 50acbd8.

📒 Files selected for processing (1)
  • jenkins/scripts/pulse_in_pipeline_scanning/utils/common.py

Comment thread jenkins/scripts/pulse_in_pipeline_scanning/utils/common.py Outdated
Comment thread jenkins/scripts/pulse_in_pipeline_scanning/utils/common.py Outdated
Signed-off-by: Yuanjing Xue <197832395+yuanjingx87@users.noreply.github.com>
@yuanjingx87
Copy link
Copy Markdown
Collaborator Author

/bot skip --comment "No need to run CI"

@tensorrt-cicd
Copy link
Copy Markdown
Collaborator

PR_Github #48003 [ skip ] triggered by Bot. Commit: 53dfec5 Link to invocation

@tensorrt-cicd
Copy link
Copy Markdown
Collaborator

PR_Github #48003 [ skip ] completed with state SUCCESS. Commit: 53dfec5
Skipping testing for commit 53dfec5

Link to invocation

@yuanjingx87 yuanjingx87 merged commit ca876e0 into NVIDIA:main May 12, 2026
7 of 8 checks passed
yufeiwu-nv pushed a commit to yufeiwu-nv/TensorRT-LLM that referenced this pull request May 19, 2026
…flags (NVIDIA#13921)

Signed-off-by: Yuanjing Xue <197832395+yuanjingx87@users.noreply.github.com>
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