-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
component build support for both python2 and python3 #730
component build support for both python2 and python3 #730
Conversation
/test kubeflow-pipeline-sample-test |
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.
It's better to have a sample for using the python version here and have sample test to cover both py2 and py3. Otherwise, lgtm.
/test kubeflow-pipeline-sample-test |
I was thinking to add a sample test in another PR. How about I manually testing the functionality and then later send another PR to add a sample test? because the tfx notebook sample that demonstrates component build is already long enough. |
Let's have a test that ensures generated code runs on both Python3 and Python2. |
JFYI, Python supports enums:
|
Added the sample test |
So, did you check that the code generated by the python2 branch works? You can test it in a notebook. |
/retest |
/test kubeflow-pipeline-e2e-test |
/retest |
/test kubeflow-pipeline-sample-test |
/test kubeflow-pipeline-e2e-test |
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.
/lgtm
Not major issues. Feel free to commit.
…code instead; add a todo to create a new sample
/lgtm |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: gaoning777 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 |
1 similar comment
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: gaoning777 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 |
* component build support for both python2 and python3 * add sample test * remove the annotations for python2 component build * add pathlib for python2 component build * fix component build unit test * fix bug in the dockerfile generator * remove exist_ok in path.mkdir to make python2 compatible * adjust unit test * remove pathlib dependency for python2 component build * remove the pathlib codes in python3 component build, but use python2 code instead; add a todo to create a new sample
* notebook tests need to use a unique subdirectory * When the notebook runs on a kubeflow-ci-deployment cluster it will upload the rendered notebook to a gcs bucket in kubeflow-ci-deployment. * We need the GCS path for the notebook to be unique so that results from different runs don't overwrite each other. Related to: kubeflow#715 * Fix subdir. * Update notebook image.
Update pip packages and remove the usage of `dsl.ContainerOp`. Signed-off-by: Yihong Wang <yh.wang@ibm.com>
This change is