-
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
SDK/Lightweight - Disabled code pickling by default #1512
SDK/Lightweight - Disabled code pickling by default #1512
Conversation
ea0b2da
to
5832419
Compare
I've introduced code pickling to capture dependencies in kubeflow#1372 Later I've discovered that there is a serious opcode incompatibility between python versions 3.5 and 3.6+. See my analysis of the issue: cloudpipe/cloudpickle#293 Dues to this issue I decided to switch back to using source code copying by default and to continue improving it. Until we stop supporting python 3.5 (kubeflow#668) it's too dangerous to use code pickling by default. Code pickling can be enabled by specifying `pickle_code=True` when calling `func_to_container_op`
5832419
to
d5f0ec6
Compare
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
/approve |
[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 |
/test kubeflow-pipeline-e2e-test |
* manifests: Add base ui manifests Signed-off-by: Kimonas Sotirchos <kimwnasptd@arrikto.com> * manifests: Move patches to distinct folder Signed-off-by: Kimonas Sotirchos <kimwnasptd@arrikto.com> * manifests: Extend kubeflow overlay for the ui Signed-off-by: Kimonas Sotirchos <kimwnasptd@arrikto.com> * manifests: Add ui to the base manifests Signed-off-by: Kimonas Sotirchos <kimwnasptd@arrikto.com> * review: Remove 'namespace: kubeflow' from default We will let kustomize replace the namespace and not use a specific one in the objects. Signed-off-by: Kimonas Sotirchos <kimwnasptd@arrikto.com> * review: Explicitly use namespace: kfserving-system In order to ensure Kustomize substitutes the name correctly we: 1. removed the `namespace: kfserving-system` from the web-app's kustomization file 2. explicitly use `namespace: kfserving-system` in all of the yamls Signed-off-by: Kimonas Sotirchos <kimwnasptd@arrikto.com> * review: Use ingressGateway vars instead of patch Signed-off-by: Kimonas Sotirchos <kimwnasptd@arrikto.com> * review: Use kfserving-system service in vsvc Signed-off-by: Kimonas Sotirchos <kimwnasptd@arrikto.com> * review: Use v1beta1 vsvc in kustomization Signed-off-by: Kimonas Sotirchos <kimwnasptd@arrikto.com> * review: Add a kfserving- prefix Signed-off-by: Kimonas Sotirchos <kimwnasptd@arrikto.com>
I've introduced code pickling to capture dependencies in #1372
Later I've discovered that there is a serious opcode incompatibility between python versions 3.5 and 3.6+. See my analysis of the issue: cloudpipe/cloudpickle#293
Due to this issue I decided to switch back to using source code copying by default and to continue improving it.
Until we stop supporting python 3.5 (#668) it's better to disable code pickling by default.
Code pickling can be enabled by specifying
use_code_pickling=True
when callingfunc_to_container_op
This change is