-
Notifications
You must be signed in to change notification settings - Fork 442
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
Verify that Trials were successfully deleted #1288
Verify that Trials were successfully deleted #1288
Conversation
Update suggestion status
04d78c2
to
3af762f
Compare
I updated test, unit tests locally works good, I don't know why it fails sometime in CI. @gaocegege @johnugeorge @sperlingxx Do you have any ideas why we have 2 Travis in our pre-submits and post-submits? |
Should we disable Katib on |
SGTM BTW, I am not sure if I understand the PR, can you give me an example about why we need it? |
@gaocegege If you tried to edit Experiment, e.g change parallelTrialCount from 4 to 2, 2 Trial has to be deleted.
After that, k8s objet will not be deleted immediately, finalizers run after Trial deletion, because of that I added check before finish Experiment reconciler. If we don't do it, on the next Experiment reconciler loop List :
returns Trial list with 2 deleting Trials. Then, UpdateExperimentStatus overrides Experiment status incorrect:
And addCount will be not correct:
Suggestion status also needs to be updated since we store Trials assignment there. |
@jlewi Could you help us to disable travis-ci.org for Katib, please? |
/retest |
/lgtm |
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
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.
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: andreyvelich The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/retest |
1 similar comment
/retest |
When I tried to update
parallelTrialCount
to less value, I got errors in controller.In
deleteTrials
we should verify that Trials were successfully deleted before running reconcile loop again and update suggestionrequests
andstatus.suggestions
.Otherwise,
updateTrialsSummary
is resynchronized with Trial list andaddCount
forReconcileSuggestion
is incorrect./assign @gaocegege @johnugeorge