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

Feature implementation, code refactoring, new test suite and increasing code coverage #27

Merged
merged 8 commits into from
Jun 9, 2023

Conversation

pebeto
Copy link
Member

@pebeto pebeto commented May 28, 2023

The PR contains variety of changes, mostly related to be a "developer friendly" code and follow some software standards. This changes will make the code base to be more maintainable.

  • There is a types directory where all the "model" stuff is saved
    • types/core.jl contains the general types (MLFlow and MLFlowExperiment)
  • Logs logic was extracted into a logger.jl file, leaving the runs logic isolated
  • Tests were extracted into new individual test files, rewriting some of them in a simpler way. The code coverage increased
  • Implemented the new searchexperiments function for experiments, and removing the deprecated (and removed) listexperiments from MLFlow. Maybe it could be reimplemented but pointing to the new one.
  • Implemented generatefilterfromentity_type, a generalization to avoid code repetition and making it accessible to everyone if there's something more to filter (just like metrics)
  • Code is formatted using the native Julia LSP formatter

@codecov-commenter
Copy link

codecov-commenter commented May 28, 2023

Codecov Report

Merging #27 (4bd02bf) into main (599d87d) will increase coverage by 10.11%.
The diff coverage is 65.11%.

❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

@@             Coverage Diff             @@
##             main      #27       +/-   ##
===========================================
+ Coverage   69.75%   79.86%   +10.11%     
===========================================
  Files           5        9        +4     
  Lines         281      303       +22     
===========================================
+ Hits          196      242       +46     
+ Misses         85       61       -24     
Impacted Files Coverage Δ
src/MLFlowClient.jl 100.00% <ø> (ø)
src/deprecated.jl 0.00% <0.00%> (ø)
src/runs.jl 92.15% <0.00%> (+38.61%) ⬆️
src/types/artifacts.jl 0.00% <0.00%> (ø)
src/types/runs.jl 82.81% <ø> (ø)
src/loggers.jl 67.10% <67.10%> (ø)
src/types/core.jl 76.92% <76.92%> (ø)
src/experiments.jl 88.52% <80.00%> (+5.91%) ⬆️
src/utils.jl 100.00% <100.00%> (ø)

Copy link
Collaborator

@deyandyankov deyandyankov left a comment

Choose a reason for hiding this comment

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

nicely done - please address minor points and let's merge!

Project.toml Outdated Show resolved Hide resolved
docs/src/reference.md Show resolved Hide resolved
src/experiments.jl Outdated Show resolved Hide resolved
src/experiments.jl Outdated Show resolved Hide resolved
@pebeto pebeto requested a review from deyandyankov June 7, 2023 13:14
@deyandyankov deyandyankov merged commit cf9f96c into JuliaAI:main Jun 9, 2023
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