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

perf: avoid loading model def in experiment model #8742

Merged
merged 2 commits into from
Feb 2, 2024

Conversation

NicholasBlaskey
Copy link
Contributor

Description

We often load model def for experiments when we really shouldn't. This change makes it a lot harder to load the model def if you don't mean to.

Test Plan

Existing tests pass

Commentary (optional)

Checklist

  • Changes have been manually QA'd
  • User-facing API changes need the "User-facing API Change" label.
  • Release notes should be added as a separate file under docs/release-notes/.
    See Release Note for details.
  • Licenses should be included for new code which was copied and/or modified from any external code.

Ticket

@cla-bot cla-bot bot added the cla-signed label Jan 24, 2024
Copy link

netlify bot commented Jan 24, 2024

Deploy Preview for determined-ui canceled.

Name Link
🔨 Latest commit 9429267
🔍 Latest deploy log https://app.netlify.com/sites/determined-ui/deploys/65bcfa56eb0bea000874e550

}, user,
)
if err != nil {
return nil, fmt.Errorf("parsing continue experiment request: %w", err)
}
dbExp.ParentID = nil // Not actually a parent though.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

the only parent logic was loading the model def which was unused

@NicholasBlaskey NicholasBlaskey marked this pull request as ready for review January 24, 2024 16:47
@NicholasBlaskey NicholasBlaskey requested a review from a team as a code owner January 24, 2024 16:47
Copy link

codecov bot commented Jan 24, 2024

Codecov Report

Attention: 45 lines in your changes are missing coverage. Please review.

Comparison is base (7698452) 47.72% compared to head (9429267) 47.72%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #8742   +/-   ##
=======================================
  Coverage   47.72%   47.72%           
=======================================
  Files        1049     1049           
  Lines      167238   167238           
  Branches     2241     2243    +2     
=======================================
  Hits        79816    79816           
  Misses      87264    87264           
  Partials      158      158           
Flag Coverage Δ
backend 43.24% <30.76%> (ø)
harness 64.32% <ø> (ø)
web 42.54% <ø> (ø)

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

Files Coverage Δ
master/internal/db/postgres_test_utils.go 91.66% <100.00%> (-0.04%) ⬇️
master/internal/restore.go 10.12% <0.00%> (ø)
master/internal/db/postgres_experiments.go 45.84% <77.77%> (+0.08%) ⬆️
master/internal/experiment.go 27.12% <50.00%> (+0.06%) ⬆️
master/internal/api_experiment.go 54.79% <50.00%> (-0.09%) ⬇️
master/pkg/model/test_utils.go 0.00% <0.00%> (ø)
master/internal/populate_metrics.go 0.00% <0.00%> (ø)
master/pkg/model/experiment.go 12.91% <0.00%> (+0.05%) ⬆️
master/internal/core_experiment.go 61.40% <23.52%> (-1.76%) ⬇️

... and 5 files with indirect coverage changes

Copy link
Contributor

@carolinaecalderon carolinaecalderon left a comment

Choose a reason for hiding this comment

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

LGTM

@NicholasBlaskey NicholasBlaskey merged commit 422f5aa into main Feb 2, 2024
75 of 90 checks passed
@NicholasBlaskey NicholasBlaskey deleted the stop_loading_model_def branch February 2, 2024 14:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants