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

Register Trial in DB #530

Merged
merged 12 commits into from
May 16, 2019

Conversation

andreyvelich
Copy link
Member

@andreyvelich andreyvelich commented May 16, 2019

I added part to register Trial in DB.
As well, I rename Status and Spec to TrialStatus and TrailSpec here: https://github.com/andreyvelich/katib/blob/issue-510-register-trial-db/pkg/api/v1alpha2/api.proto#L381,
like we have with Experiment.

/cc @hougangliu @johnugeorge @richardsliu @gaocegege

Part of #510.


This change is Reviewable

@@ -378,8 +378,8 @@ message TrialStatus {

message Trial {
string name = 1;
TrialSpec spec = 2;
TrialStatus status = 3;
TrialSpec trial_spec = 2;
Copy link
Member

Choose a reason for hiding this comment

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

In fact, I like spec/status rather than trial_spec/trial_status. Maybe we should refactor experiment_spec/experiment_status instead of here

Copy link
Member Author

Choose a reason for hiding this comment

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

I can rename experiment_spec to spec, if we want to.
What do you think? @johnugeorge @gaocegege @richardsliu

Copy link
Member

Choose a reason for hiding this comment

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

Prefer spec/status but it may require lots of work to update the code base.

Copy link
Member Author

Choose a reason for hiding this comment

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

I will update it in this PR, no problem.

Copy link
Member

Choose a reason for hiding this comment

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

Thanks

if err != nil {
return nil, err
}
defer kcc.Conn.Close()
Copy link
Member

Choose a reason for hiding this comment

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

It is a little hack here. Could we define a func in katibManagerClientAndConn to close the conn?

@@ -18,11 +18,20 @@ package util
import (
//v1 "k8s.io/api/core/v1"
Copy link
Member

Choose a reason for hiding this comment

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

Please remove the never used package here

@andreyvelich
Copy link
Member Author

@gaocegege @hougangliu Done.

@andreyvelich
Copy link
Member Author

/test kubeflow-katib-presubmit

@andreyvelich
Copy link
Member Author

@gaocegege @hougangliu @johnugeorge I fixed all tests, I think, we can merge this PR.

trial.Spec.RunSpec = instance.Spec.RunSpec

trial.Spec.MetricsCollectorSpec = instance.Spec.MetricsCollectorSpec

Copy link
Member

Choose a reason for hiding this comment

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

miss trial.Status?

@andreyvelich
Copy link
Member Author

@hougangliu I have added trial status and change status names in api.proto like in trial_types.go.

@hougangliu
Copy link
Member

/lgtm
/approve

@k8s-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: hougangliu

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

@hougangliu hougangliu mentioned this pull request May 16, 2019
7 tasks
@k8s-ci-robot k8s-ci-robot merged commit a8086c0 into kubeflow:master May 16, 2019
@andreyvelich andreyvelich deleted the issue-510-register-trial-db branch October 6, 2021 00:23
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.

4 participants