Skip to content
This repository was archived by the owner on Sep 12, 2023. It is now read-only.

add JobFailedValidation reason constant #201

Merged
merged 1 commit into from
Jan 20, 2023

Conversation

HeGaoYuan
Copy link
Contributor

add JobFailedValidation referring to kubeflow/trainer#1705

@google-cla
Copy link

google-cla bot commented Dec 27, 2022

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

JobRestartingReason = "JobRestarting"
// JobFailedValidationReason is added in a job when it failed validation
JobFailedValidationReason = "JobFailedValidation"
Copy link
Member

Choose a reason for hiding this comment

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

Do we need this? Why not use JobFailedReason and put the right message?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It depends on whether we set job to failed when we failed validation.
By the way, the state transition table of job status is not clear now.

@johnugeorge
Copy link
Member

@tenzen-y @terrytangyuan
Should we merge this in this release ?
Ref: kubeflow/trainer#1705 (comment)

Comment on lines +20 to +21
// JobFailedValidationReason is added in a job when it failed validation
JobFailedValidationReason = "JobFailedValidation"
Copy link
Member

Choose a reason for hiding this comment

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

Once we introduce CEL validation, we will not use that status.
So, can you add a TODO comment with kubeflow/trainer#1708?

@tenzen-y
Copy link
Member

@tenzen-y @terrytangyuan Should we merge this in this release ? Ref: kubeflow/training-operator#1705 (comment)

Yes, this status helps users to find a reason for errors.

Copy link
Member

@terrytangyuan terrytangyuan left a comment

Choose a reason for hiding this comment

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

/lgtm
/approve

@google-oss-prow
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: terrytangyuan

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 4d97a27 into kubeflow:master Jan 20, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants