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

fix make check #606

Merged
merged 1 commit into from
May 29, 2019
Merged

fix make check #606

merged 1 commit into from
May 29, 2019

Conversation

gyliu513
Copy link
Member

@gyliu513 gyliu513 commented May 29, 2019

What this PR does / why we need it:

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 #

Special notes for your reviewer:

  1. Please confirm that if this PR changes any image versions, then that's the sole change this PR makes.

Release note:

NONE

/cc @hougangliu @gaocegege


This change is Reviewable

@@ -84,7 +84,7 @@ func (d *DefaultClient) ValidateAlgorithmSettings(inst *experimentsv1alpha2.Expe

func getExperimentConf(instance *experimentsv1alpha2.Experiment) *api_pb.Experiment {
experiment := &api_pb.Experiment{
Spec: getExperimentSpec(instance),
Spec: getExperimentSpec(instance),
Copy link
Member

Choose a reason for hiding this comment

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

Why do we need the change?

Copy link
Member Author

Choose a reason for hiding this comment

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

Just run make check, you will got error:

go generate ./pkg/... ./cmd/...
hack/verify-gofmt.sh
diff -u ./pkg/controller/v1alpha2/experiment/managerclient/managerclient.go.orig ./pkg/controller/v1alpha2/experiment/managerclient/managerclient.go
--- ./pkg/controller/v1alpha2/experiment/managerclient/managerclient.go.orig	2019-05-28 19:00:34.080787976 -0700
+++ ./pkg/controller/v1alpha2/experiment/managerclient/managerclient.go	2019-05-28 19:00:34.080787976 -0700
@@ -84,7 +84,7 @@

 func getExperimentConf(instance *experimentsv1alpha2.Experiment) *api_pb.Experiment {
 	experiment := &api_pb.Experiment{
-		Spec:   getExperimentSpec(instance),
+		Spec: getExperimentSpec(instance),
 		Status: &api_pb.ExperimentStatus{
 			StartTime:      commonv1alpha2.ConvertTime2RFC3339(instance.Status.StartTime),
 			CompletionTime: commonv1alpha2.ConvertTime2RFC3339(instance.Status.CompletionTime),

Please run hack/update-gofmt.sh

That's why I want to add make check to prow.

Copy link
Member

Choose a reason for hiding this comment

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

Gotcha

@gaocegege
Copy link
Member

/lgtm
/approve

@k8s-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: gaocegege

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

@gaocegege
Copy link
Member

Can you add make check in CI?

@gyliu513
Copy link
Member Author

Can you add make check in CI?

Will check with @hougangliu for this #607

@gyliu513
Copy link
Member Author

/test kubeflow-katib-presubmit

@gaocegege
Copy link
Member

/retest

@k8s-ci-robot k8s-ci-robot merged commit 8d77fa5 into kubeflow:master May 29, 2019
@gyliu513 gyliu513 deleted the make-check branch May 29, 2019 03:20
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.

3 participants