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

chore(kfp): bump to python 3.9 #2078

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

davidspek
Copy link

This PR updates the default python version used by Kubeflow Pipelines to 3.9 since 3.7 is now EOL and causing conflicts with dependencies (such as ml-metadata). This should solve the recent test failures on the master branch.

/cc @chensun @zijianjoy @connor-mccarthy

Signed-off-by: David van der Spek <[email protected]>
@google-oss-prow
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: DavidSpek
Once this PR has been reviewed and has the lgtm label, please assign chensun for approval. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found 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
Copy link
Contributor

Hi @davidspek. Thanks for your PR.

I'm waiting for a GoogleCloudPlatform member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

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.

@@ -156,7 +156,7 @@ presubmits:
run_if_changed: "^(components/.*\\.yaml)|(test/presubmit-component-yaml.sh)|(sdk/python/.*)$"
spec:
containers:
- image: python:3.7
- image: python:3.9
Copy link
Member

Choose a reason for hiding this comment

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

In places where we are testing potential user code paths, I think it still makes sense to test this on the lowest (least feature-rich) version of Python supported by the KFP SDK: Python 3.7. This is the most aggressive form of testing.

Practically speaking, this applies for every presubmit that invokes KFP SDK code.

Copy link
Author

Choose a reason for hiding this comment

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

Would you mind pushing a commit to my branch here that has the changes you have in mind. You're obviously much more aware of the current testing setup and which things should change and which ones shouldn't. You should be able to push to my branch since I have allowed maintainers t commit to it.

Copy link
Member

Choose a reason for hiding this comment

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

Hey, David. I added comments throughout for where I think we should not bump to Python 3.9 and cc'd others where I do not have enough information to say. To unblock yourself, I recommend ignoring the places where we are waiting on input from others. We can always come back to them.

@@ -327,7 +327,7 @@ presubmits:
run_if_changed: "^(sdk/python/.*)|(test/presubmit-test-sdk-upgrade.sh)$"
spec:
containers:
- image: python:3.7
- image: python:3.9
Copy link
Member

Choose a reason for hiding this comment

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

I think we should leave this as python:3.7 since it is a test.

@@ -317,7 +317,7 @@ presubmits:
spec:
containers:
# run on the lowest version of Python (with the least features) for most aggressive testing
- image: python:3.7
- image: python:3.9
Copy link
Member

Choose a reason for hiding this comment

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

I think we should leave this as python:3.7 since it is a test.

@@ -254,7 +254,7 @@ presubmits:
- master
spec:
containers:
- image: python:3.7
- image: python:3.9
Copy link
Member

Choose a reason for hiding this comment

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

I think we should leave this as python:3.7 since it is a test.

- name: kubeflow-pipelines-integration-v2
run_if_changed: "^(samples/core/(parameterized_tfx_oss|dataflow)/.*)$"
cluster: build-kubeflow
decorate: true
spec:
containers:
- image: python:3.7
- image: python:3.9
Copy link
Member

Choose a reason for hiding this comment

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

cc @chensun for whether this is safe to bump to python:3.9

@@ -188,19 +188,19 @@ presubmits:
optional: true
spec:
containers:
- image: python:3.7
- image: python:3.9
Copy link
Member

Choose a reason for hiding this comment

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

I think we should leave this as python:3.7 since it is a test.

@@ -176,10 +176,10 @@ presubmits:
run_if_changed: "^(backend/src/apiserver/visualization/.*)|(test/presubmit-backend-visualization.sh)$"
spec:
containers:
- image: python:3.8
- image: python:3.9
Copy link
Member

Choose a reason for hiding this comment

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

cc @chensun for whether this is safe to bump to python:3.9

@@ -156,7 +156,7 @@ presubmits:
run_if_changed: "^(components/.*\\.yaml)|(test/presubmit-component-yaml.sh)|(sdk/python/.*)$"
spec:
containers:
- image: python:3.7
- image: python:3.9
Copy link
Member

Choose a reason for hiding this comment

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

Hey, David. I added comments throughout for where I think we should not bump to Python 3.9 and cc'd others where I do not have enough information to say. To unblock yourself, I recommend ignoring the places where we are waiting on input from others. We can always come back to them.

@@ -7,7 +7,7 @@ postsubmits:
decorate: true
spec:
containers:
- image: python:3.7
- image: python:3.9
Copy link
Member

Choose a reason for hiding this comment

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

cc @chensun for whether this is safe to bump to python:3.9

@@ -13,7 +13,7 @@ periodics:
workdir: true
spec:
containers:
- image: python:3.7-slim
- image: python:3.9-slim
Copy link
Member

Choose a reason for hiding this comment

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

cc @chensun for whether this is safe to bump to python:3.9

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.

2 participants