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

fix: test_mlflow_registry #412

Closed
wants to merge 4 commits into from
Closed

fix: test_mlflow_registry #412

wants to merge 4 commits into from

Conversation

yleilawang
Copy link
Collaborator

There existed errors in test logs while test cases still passed. One example is the ConnectionError due to not mocking mlflow function calls properly.

Fixed through modifying a few syntax for patch mock calls. The test cases should pass with no logging errors now.

Copy link

codecov bot commented Sep 13, 2024

Codecov Report

Attention: Patch coverage is 94.73684% with 2 lines in your changes missing coverage. Please review.

Project coverage is 92.22%. Comparing base (f6ce546) to head (0906086).

Files with missing lines Patch % Lines
numalogic/registry/mlflow_registry.py 94.73% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #412      +/-   ##
==========================================
+ Coverage   92.18%   92.22%   +0.03%     
==========================================
  Files          97       97              
  Lines        4775     4811      +36     
  Branches      429      434       +5     
==========================================
+ Hits         4402     4437      +35     
+ Misses        276      275       -1     
- Partials       97       99       +2     

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

Comment on lines 18 to +20
import mlflow.pyfunc
import mlflow.pytorch
import mlflow.sklearn
Copy link
Contributor

Choose a reason for hiding this comment

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

As discussed, I don't think we need this anymore.
Just import mlflow should work.

@yleilawang yleilawang closed this Sep 18, 2024
@yleilawang
Copy link
Collaborator Author

not needed, new PR created.

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.

2 participants