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

feat(sdk): add default schema_version to pipeline #6366

Merged
merged 13 commits into from
Aug 24, 2021

Conversation

ji-yaqi
Copy link
Contributor

@ji-yaqi ji-yaqi commented Aug 17, 2021

Default to 0.0.1

@ji-yaqi ji-yaqi requested review from neuromage and chensun and removed request for neuromage August 17, 2021 17:55
@google-cla google-cla bot added the cla: yes label Aug 17, 2021
@@ -91,7 +91,7 @@ def get_artifact_type_schema(
artifact_class = artifact_class_or_type_name

return pipeline_spec_pb2.ArtifactTypeSchema(
schema_title=artifact_class.TYPE_NAME)
schema_title=artifact_class.TYPE_NAME, schema_version="0.0.1")
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe we can add VERSION field to artifacts, and let each artifact separately manage their schema versions. Then this line can be

return pipeline_spec_pb2.ArtifactTypeSchema(
      schema_title=artifact_class.TYPE_NAME, schema_version=artifact_class.VERSION)

WDYT?

@@ -7,6 +7,7 @@
package pipelinespec

import (
status "google.golang.org/genproto/googleapis/rpc/status"
Copy link
Member

Choose a reason for hiding this comment

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

revert this file?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Shall we update this file to register the new changes in pipelineSpec? Maybe we can do it in another PR.

@ji-yaqi
Copy link
Contributor Author

ji-yaqi commented Aug 19, 2021

v2-samples tests are blocked by PipelineSpec update.
Opened #6401 to sync PipelineSpec.

@chensun
Copy link
Member

chensun commented Aug 24, 2021

/lgtm

@ji-yaqi
Copy link
Contributor Author

ji-yaqi commented Aug 24, 2021

/approve

@google-oss-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ji-yaqi

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-robot google-oss-robot merged commit 937cacd into kubeflow:master Aug 24, 2021
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.

4 participants