-
Notifications
You must be signed in to change notification settings - Fork 994
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
modify the return value of 'vcctl' #460
Conversation
Welcome @jiangkaihua! |
@@ -72,23 +73,14 @@ func RunJob() error { | |||
return err | |||
} | |||
|
|||
req, err := populateResourceListV1(launchJobFlags.Requests) |
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.
why remove this?
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.
this function runs twice to get arg 'req' and 'limit', and the two args are used only when the default job 'test' is started.
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.
ok, got that.
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jiangkaihua, k82cn 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 |
please fix ci error and merge commits. |
Travis tests have failedHey @jiangkaihua, TravisBuddy Request Identifier: 63d29840-dac1-11e9-a83c-6d8e6b7d4c6a |
Travis tests have failedHey @jiangkaihua, TravisBuddy Request Identifier: b8e654b0-dad6-11e9-a83c-6d8e6b7d4c6a |
Signed-off-by: jiangkaihua <54176503+jiangkaihua@users.noreply.github.com>
/lgtm |
Fixes #454
in cmd/cli/vkctl.go, return error code '2' instead of '0' when error occurs in 'vcctl', so that cromwell can read the correct 'check-alive' which refers to 'vcctl job view -N '.
in pkg/cli/job.go, when job is nil, do not run the default job 'test', print the error output and return nil.