-
Notifications
You must be signed in to change notification settings - Fork 347
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: await_first_trial errors when Experiment is terminal #9022
Conversation
✅ Deploy Preview for determined-ui canceled.
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #9022 +/- ##
==========================================
+ Coverage 47.78% 47.80% +0.01%
==========================================
Files 1161 1161
Lines 143441 143471 +30
Branches 2372 2372
==========================================
+ Hits 68547 68580 +33
+ Misses 74741 74738 -3
Partials 153 153
Flags with carried forward coverage won't be shown. Click here to find out more.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks for the improvement
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
…9022) Pre-patch, when running await_first_trial on an Experiment the method would never exit if the experiment that backed it was in a terminal state and no trials started. It now checks that the underlying experiment is not terminal, and raises an exception if it becomes such (believing no trial will ever be started). Side effect: Like wait, await_first_trial now reloads the underlying Experiment object.
Pre-patch, when running
await_first_trial
on anExperiment
the method would never exit if the experiment that backed it was in a terminal state and no trials started. It now checks that the underlying experiment is not terminal, and raises an exception if it becomes such (believing no trial will ever be started).Side effect: Like
wait
,await_first_trial
now reloads the underlying Experiment object.MD-335
Description
Test Plan
Find or create an experiment that either fails or is canceled before any trials start. Then, in the SDK:
Also try awaiting a trial on experiments that actually do have trials. Or any weird cases you can think of.
Commentary (optional)
Checklist
docs/release-notes/
.See Release Note for details.
Ticket