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

Get experiment config from the instance #474

Merged

Conversation

andreyvelich
Copy link
Member

@andreyvelich andreyvelich commented Apr 26, 2019

In this PR I have added few thing in the v1alpha2 experiment controller:

  1. Change structure for ParameterSpec in Operation inside api.proto. I think, it should be the same as ParameterSpecs in ExperimentSpec
  2. Add parsing from the instance to experiment config. I think, we should parse it before save in DB.

We need to think, what status of Experiment config should be on the step of getting Experiment config from instance.
As well, do we need a JobType inside Experiment config like here or we can handle it with checking nasConfig ?
/assign @johnugeorge @hougangliu @YujiOshima
/cc @richardsliu


This change is Reviewable

@andreyvelich
Copy link
Member Author

/retest

@YujiOshima
Copy link
Contributor

My opinion, we don't need to distinguish NASJobs from HPJobs.
We can populate both of HPconf and NASconf (if it is not nil) and send to specified suggestion service. And then, the suggestion service can handle the Experiment configs.

@andreyvelich
Copy link
Member Author

@YujiOshima I can make it in the same function, like you said.
What do you think @johnugeorge @hougangliu ?

@hougangliu
Copy link
Member

@YujiOshima I can make it in the same function, like you said.
What do you think @johnugeorge @hougangliu ?

agree with @YujiOshima

@johnugeorge
Copy link
Member

SGTM

@andreyvelich andreyvelich changed the title [WIP] Get experiment config from the instance Get experiment config from the instance Apr 29, 2019
@andreyvelich
Copy link
Member Author

@hougangliu @YujiOshima @johnugeorge
I made these changes.

@andreyvelich
Copy link
Member Author

/retest

//Experiment not created in DB
err = util.CreateExperimentInDB(instance)
err = util.CreateExperimentInDB(experimentConfig)
Copy link
Member

Choose a reason for hiding this comment

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

As we would like to remove dependency of api manager from controller, I would recommend to keep grpc api related config out of the controller code. Let util take care of getting the config and calling the API

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 put it inside CreateExperimentInDB function in util. Is it fine?

@johnugeorge
Copy link
Member

@andreyvelich can you rebase

@andreyvelich
Copy link
Member Author

@johnugeorge Done

@johnugeorge
Copy link
Member

/lgtm

}

experiment.Name = instance.ObjectMeta.Name

Copy link
Member

Choose a reason for hiding this comment

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

s/instance.ObjectMeta.Name/instance.Name

Copy link
Member Author

Choose a reason for hiding this comment

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

Done

@k8s-ci-robot k8s-ci-robot removed the lgtm label May 6, 2019
@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

@k8s-ci-robot k8s-ci-robot merged commit 823fa9f into kubeflow:master May 7, 2019
@andreyvelich andreyvelich deleted the v1alpha2-parse-experiment branch September 27, 2021 20:39
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