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(sdk): relax executor type checking #9481

Merged
merged 3 commits into from
May 23, 2023

Conversation

chensun
Copy link
Member

@chensun chensun commented May 23, 2023

Description of your changes:
FIx. ValueError: Function XXX returned value of type <class 'int'>; want type <class 'float'>
Fixes: #9442

Checklist:

Copy link
Member

@connor-mccarthy connor-mccarthy left a comment

Choose a reason for hiding this comment

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

/lgtm

accepted_types = (int, float)
# TODO: relax str-typed return to allow all primitive types?
else:
accepted_types = (origin_type)
Copy link
Member

Choose a reason for hiding this comment

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

nit: superfluous parentheses, since (origin_type) == origin_type

@google-oss-prow google-oss-prow bot added the lgtm label May 23, 2023
@google-oss-prow google-oss-prow bot removed the lgtm label May 23, 2023
@google-oss-prow
Copy link

@chensun: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
kubeflow-pipelines-sdk-execution-tests 2ff2993 link false /test kubeflow-pipelines-sdk-execution-tests

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@connor-mccarthy
Copy link
Member

/lgtm

@google-oss-prow
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

Approval requirements bypassed by manually added approval.

This pull-request has been approved by:

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 2961202 into kubeflow:master May 23, 2023
@chensun chensun deleted the fix-executor-type-check branch May 23, 2023 20:33
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.

[bug] Pipelien runs fail due to wrong input parameters type casting
2 participants