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

Reconcile trial assignments by comparing suggestion and trials being executed #1831

Merged

Conversation

henrysecond1
Copy link
Contributor

What this PR does / why we need it:

Please see #1830

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):

Fixes #1830

Checklist:

  • Docs included if any changes are user facing

@aws-kf-ci-bot
Copy link
Contributor

Hi @henrysecond1. Thanks for your PR.

I'm waiting for a kubeflow member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@coveralls
Copy link

coveralls commented Mar 7, 2022

Coverage Status

Coverage decreased (-0.5%) to 73.792% when pulling 8319829 on henrysecond1:bug/reconcile-sugesstion into 0515c1e on kubeflow:master.

@johnugeorge
Copy link
Member

what is the expected behaviour if trials are deleted manually ? Recreate trial?

@henrysecond1
Copy link
Contributor Author

@johnugeorge

Thank you for checking!

what is the expected behaviour if trials are deleted manually ? Recreate trial?

Yes I think trials should be recreated.
For now, trials are only recreated when we deleted the last created trial.

Otherwise, trials are not recreated and also the experiment can not be completed

@anencore94
Copy link
Member

what is the expected behaviour if trials are deleted manually ? Recreate trial?

Yes I think trials should be recreated.

I also agree with @henrysecond1 :) Such situations could happen such as some node crashed on which some trials are scheduled. Trials-controller should be resilient for that case.

@johnugeorge
Copy link
Member

Just to highlight, we are assuming that trial names are consistently returned by the suggestion algorithms.

I think, it is true currently as names are generated by suggestion algorithms. Is it a valid assumption for all algorithms ?

@johnugeorge
Copy link
Member

@anencore94 Node crashes are automatically handled as pods will get rescheduled. Did you see different behaviour?

@johnugeorge
Copy link
Member

@henrysecond1 Can you add a unit test as well?

@johnugeorge
Copy link
Member

/ok-to-test

@google-oss-prow google-oss-prow bot added size/M and removed size/S labels Apr 14, 2022
@henrysecond1
Copy link
Contributor Author

@henrysecond1 Can you add a unit test as well?

@johnugeorge

Sure, I added a unit test for ReconcileSuggestions that checks whether the function returns missing trial assignments.

@tenzen-y
Copy link
Member

/retest

@johnugeorge
Copy link
Member

@tenzen-y Can you also review this PR ?

@tenzen-y
Copy link
Member

@tenzen-y Can you also review this PR ?

Sure.

Copy link
Member

@tenzen-y tenzen-y left a comment

Choose a reason for hiding this comment

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

Thanks for improving the experiment controller algorithm @henrysecond1 !
/lgtm

@johnugeorge
Copy link
Member

Thanks @henrysecond1
/approve

@google-oss-prow
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: henrysecond1, johnugeorge

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@google-oss-prow google-oss-prow bot merged commit bc5b82b into kubeflow:master Apr 17, 2022
@henrysecond1 henrysecond1 deleted the bug/reconcile-sugesstion branch April 17, 2022 12:50
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.

Trials are unrecoverable forever when randomly removes them
6 participants