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

SDK/Tests - Simplified type compatibility tests #1004

Conversation

Ark-kun
Copy link
Contributor

@Ark-kun Ark-kun commented Mar 20, 2019

Simplified the type compatibility tests by removing component inputs/outputs and properties that are not required for the tests to work.

Renamed (+split) some of the tests:
test_type_check_all_with_types -> test_type_compatibility_check_for_simple_types + test_type_compatibility_check_for_types_with_parameters
test_type_check_with_lacking_types -> test_type_compatibility_check_when_input_type_is_missing + test_type_compatibility_check_when_argument_type_is_missing
test_type_check_with_inconsistent_types_property_value -> test_fail_type_compatibility_check_when_type_property_value_is_different
test_type_check_with_inconsistent_types_type_name -> test_fail_type_compatibility_check_when_simple_type_name_is_different + test_fail_type_compatibility_check_when_parametrized_type_name_is_different
test_type_check_with_consistent_types_nonnamed_inputs -> test_type_compatibility_check_when_using_positional_arguments
test_type_check_with_inconsistent_types_disabled -> test_type_compatibility_check_not_failing_when_disabled
test_type_check_with_openapi_shema -> test_type_compatibility_check_for_types_with_schema
test_type_check_ignore_type -> test_fail_type_compatibility_check_for_types_with_different_schemas + test_type_compatibility_check_not_failing_when_type_is_ignored

Added two disabled tests:
test_type_compatibility_check_when_argument_type_has_extra_type_parameters
test_fail_type_compatibility_check_when_argument_type_has_missing_type_parameters


This change is Reviewable

Simplified the type compatibility tests by removing component inputs/outputs and properties that are not required for the tests to work.

Renamed (+split) some of the tests:
`test_type_check_all_with_types` -> `test_type_compatibility_check_for_simple_types` + `test_type_compatibility_check_for_types_with_parameters`
`test_type_check_with_lacking_types` -> `test_type_compatibility_check_when_input_type_is_missing` + `test_type_compatibility_check_when_argument_type_is_missing`
`test_type_check_with_inconsistent_types_property_value` -> `test_fail_type_compatibility_check_when_type_property_value_is_different`
`test_type_check_with_inconsistent_types_type_name` -> `test_fail_type_compatibility_check_when_simple_type_name_is_different + test_fail_type_compatibility_check_when_parametrized_type_name_is_different`
`test_type_check_with_consistent_types_nonnamed_inputs` -> `test_type_compatibility_check_when_using_positional_arguments`
`test_type_check_with_inconsistent_types_disabled` ->` test_type_compatibility_check_not_failing_when_disabled`
`test_type_check_with_openapi_shema` -> `test_type_compatibility_check_for_types_with_schema`
`test_type_check_ignore_type` -> test_fail_type_compatibility_check_for_types_with_different_schemas` + `test_type_compatibility_check_not_failing_when_type_is_ignored`

Added two disabled tests:
`test_type_compatibility_check_when_argument_type_has_extra_type_parameters`
`test_fail_type_compatibility_check_when_argument_type_has_missing_type_parameters`
@gaoning777
Copy link
Contributor

/lgtm

@Ark-kun
Copy link
Contributor Author

Ark-kun commented Mar 26, 2019

/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Ark-kun

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

@k8s-ci-robot k8s-ci-robot merged commit 1b1c2f6 into kubeflow:master Mar 26, 2019
@Ark-kun Ark-kun deleted the SDK---Simplified-type-compatibility-tests branch March 29, 2019 21:44
magdalenakuhn17 pushed a commit to magdalenakuhn17/pipelines that referenced this pull request Oct 22, 2023
…flow#1078)

* support generic filename for ONNX runtime model (kubeflow#1004)

* fix file ext

* add tests

* add url.Parse validation

* validate file ext: only allow .onnx in storageUri

* default model.onnx for object stores
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