-
Notifications
You must be signed in to change notification settings - Fork 24
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
Add basic preflight checks as the first component in the pipeline #21
base: main
Are you sure you want to change the base?
Conversation
19bfb68
to
d22763f
Compare
if (not repo_branch) and (repo_pr is None or repo_pr <= 0 ): | ||
raise Exception("Both taxonomy repo branch and taxonomy pull request number cannot be empty") |
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 gets checked when you try to create the run. It will give an error if you try to proceed without a PR or branch.
Failed to create a new run: Failed to generate the ExecutionSpec: invalid pipeline job inputs: Invalid input error: input parameter repo_pr requires type double or integer, but the parameter value is not of number value type
Can remove this check
raise Exception("Model name is missing in kfp-model-server configMap") | ||
if not endpoint: | ||
raise Exception("Model Server endpoint URL is missing in kfp-model-server configMap") | ||
|
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 will fail at the first step anyways if these params are not set correctly. Do we want to add in some additional checks here that may cause failures during the training and eval steps later on as well?
Thanks @JudeNiroshan I made a couple of comments. Can you rebase this PR as well. Thanks! |
d22763f
to
cec959a
Compare
Please install https://docs.astral.sh/ruff/installation/ on your system and run |
Address #19