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: assign only run in a single run experiment as best_trial_id #9051

Merged
merged 9 commits into from
Jul 24, 2024

Conversation

corban-beaird
Copy link
Contributor

Description

Currently if a single-run/trial experiment doesn't store validation metrics, then it will not be assigned a best_trial_id, so when there are single trial experiments that are using report_metrics and do not use the validation metrics group, features like experiment comparison are unable to display data.

This PR adds an additional trigger, and backfill logic, that runs on experiment completions that have no best_trial_id assigned. This will then populate the best_trial_id field if it's a single run/trial experiment.

Test Plan

  • automated test case added to master/internal/api_experiment_intg_test.go

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

ET-115

@corban-beaird corban-beaird requested a review from a team as a code owner March 26, 2024 16:00
@cla-bot cla-bot bot added the cla-signed label Mar 26, 2024
Copy link

netlify bot commented Mar 26, 2024

Deploy Preview for determined-ui canceled.

Name Link
🔨 Latest commit 669eaa8
🔍 Latest deploy log https://app.netlify.com/sites/determined-ui/deploys/66a10d497532ae0008719b82

Copy link

codecov bot commented Mar 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 57.40%. Comparing base (543380d) to head (669eaa8).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #9051      +/-   ##
==========================================
+ Coverage   53.57%   57.40%   +3.83%     
==========================================
  Files        1255      761     -494     
  Lines      152855   102902   -49953     
  Branches     3298     3298              
==========================================
- Hits        81885    59072   -22813     
+ Misses      70820    43680   -27140     
  Partials      150      150              
Flag Coverage Δ
backend 43.77% <ø> (-1.06%) ⬇️
harness 71.47% <ø> (-1.38%) ⬇️
web 52.03% <ø> (ø)

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

see 510 files with indirect coverage changes

@garrett361
Copy link
Contributor

Thank you for doing this! The description sound like the desired behavior, but I don't really know this part of the code base (or go or sql), so I will leave the technical review to someone else.

Copy link
Contributor

@NicholasBlaskey NicholasBlaskey left a comment

Choose a reason for hiding this comment

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

looks pretty good just some questions around if we can make any simplifications to this

@corban-beaird corban-beaird force-pushed the corban/single-run-experiment-best-run branch from 512c8f5 to cb9948e Compare June 17, 2024 16:37
@corban-beaird corban-beaird force-pushed the corban/single-run-experiment-best-run branch from 7939f76 to abd4a60 Compare June 24, 2024 21:27
Copy link
Contributor

@AmanuelAaron AmanuelAaron left a comment

Choose a reason for hiding this comment

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

LGTM

@bitfyre
Copy link

bitfyre commented Jul 11, 2024

@corban-beaird what is the status of the PR?

@corban-beaird
Copy link
Contributor Author

@corban-beaird what is the status of the PR?

Right now my focus is on 2 high priority items for CM, once these are complete I'll be coming back to this PR and resolving the CI failures. I should be looking at having those items taken care by the end of this week at the latest; so currently on track to get this in prior to the release branch being cut this upcoming Tuesday.

@corban-beaird corban-beaird force-pushed the corban/single-run-experiment-best-run branch from abd4a60 to 2f665eb Compare July 24, 2024 13:44
@corban-beaird corban-beaird merged commit 4f81548 into main Jul 24, 2024
81 of 95 checks passed
@corban-beaird corban-beaird deleted the corban/single-run-experiment-best-run branch July 24, 2024 14:44
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.

5 participants