[None][feat] Add AD model list validation checks to pre-commit and PR…#12036
Conversation
… check Signed-off-by: Tal Cherckez <127761168+tcherckez-nvidia@users.noreply.github.com>
e4b0aeb to
d8e6701
Compare
📝 WalkthroughWalkthroughThis PR adds validation for an AutoDeploy model registry by introducing a GitHub Actions workflow and pre-commit hook that both execute a new Python script to validate the YAML model registry file structure and content. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~13 minutes 🚥 Pre-merge checks | ❌ 3❌ Failed checks (2 warnings, 1 inconclusive)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
.github/workflows/model-registry-check.yml (1)
18-22: Consider removing theeditedtrigger type.The
editedevent fires when the PR title or description is changed, not when code changes. This will cause unnecessary workflow runs. For code validation,opened,synchronize, andreopenedare sufficient.♻️ Suggested fix
on: pull_request: - types: [opened, edited, synchronize, reopened] + types: [opened, synchronize, reopened] paths: - examples/auto_deploy/model_registry/models.yaml🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In @.github/workflows/model-registry-check.yml around lines 18 - 22, Remove the unnecessary "edited" pull_request trigger from the types array in the model-registry-check workflow so the job only runs on PR code changes; update the types list to ["opened", "synchronize", "reopened"] in the on: pull_request configuration (remove "edited" from the array in the existing YAML block).
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Nitpick comments:
In @.github/workflows/model-registry-check.yml:
- Around line 18-22: Remove the unnecessary "edited" pull_request trigger from
the types array in the model-registry-check workflow so the job only runs on PR
code changes; update the types list to ["opened", "synchronize", "reopened"] in
the on: pull_request configuration (remove "edited" from the array in the
existing YAML block).
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: 20170758-73ca-4bba-9cf0-263c70652b62
📒 Files selected for processing (3)
.github/workflows/model-registry-check.yml.pre-commit-config.yamlscripts/check_model_registry.py
|
/bot help |
GitHub Bot Help
Provide a user friendly way for developers to interact with a Jenkins server. Run See details below for each supported subcommand. Details
Launch build/test pipelines. All previously running jobs will be killed.
kill
Kill all running builds associated with pull request. skip
Skip testing for latest commit on pull request. reuse-pipeline
Reuse a previous pipeline to validate current commit. This action will also kill all currently running builds associated with the pull request. IMPORTANT NOTE: This is dangerous since lack of user care and validation can cause top of tree to break. |
|
/bot skip --comment "Adding PR and pre-commit check to model list, not related to functionality" |
|
PR_Github #38315 [ skip ] triggered by Bot. Commit: |
|
PR_Github #38315 [ skip ] completed with state |
… check
Summary by CodeRabbit
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.