Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add spec ilab_model_list #4311

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

wushiqinlou
Copy link
Contributor

@wushiqinlou wushiqinlou commented Dec 18, 2024

Signed-off-by: jiazhang [email protected]

rh-pre-commit.version: 2.3.1
rh-pre-commit.check-secrets: ENABLED

All Pull Requests:

Check all that apply:

  • Have you followed the guidelines in our Contributing document, including the instructions about commit messages?
  • No Sensitive Data in this change?
  • Is this PR to correct an issue?
  • Is this PR an enhancement?

Complete Description of Additions/Changes:

Add this spec for a new Advisor rule

Signed-off-by: jiazhang <[email protected]>

rh-pre-commit.version: 2.3.1
rh-pre-commit.check-secrets: ENABLED
@codecov-commenter
Copy link

codecov-commenter commented Dec 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 77.17%. Comparing base (952f219) to head (909213d).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #4311   +/-   ##
=======================================
  Coverage   77.17%   77.17%           
=======================================
  Files         765      766    +1     
  Lines       41753    41774   +21     
  Branches     8815     8821    +6     
=======================================
+ Hits        32221    32241   +20     
  Misses       8464     8464           
- Partials     1068     1069    +1     
Flag Coverage Δ
unittests 77.16% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@xiangce xiangce left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks good to me. However, please open an Insights Spec Jira card to get it being approved.

if line.startswith("|") and "Model Name" not in line:
split_items = line.split("|")
if len(split_items) == 5:
data.append(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nitpick, how about remove the local var data and append dict item to the list directly? e.g.

if len(split_items) == 5:
   ...
   self.append(...)
else
   raise

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