-
Notifications
You must be signed in to change notification settings - Fork 89
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
Update pylint in the test worker image not compatible with f style strings #560
Comments
… applications * Define a config file to list i) Relevant information about each application to build e.g the location of its source, the location of its kustomize manifest ii) The versions (i.e. branches) of the various repositories to build from * Create a python script that takes the cross product of applications and versions and creates a tekton PipelineRun to build the docker image and update the manifest. * Fix a bug in update_manifests with image_name not being set. Related to kubeflow#450: Continuous delivery of Kubeflow applications Here are some autogenerated PRs updating the manifests * kubeflow/manifests#697 * kubeflow/manifests#696 * Fix email of kubeflow bot to pass CLA check. * Fix kubeflow#557 Skip lint due to kubeflow#560
… applications (#559) * Define a config file to list i) Relevant information about each application to build e.g the location of its source, the location of its kustomize manifest ii) The versions (i.e. branches) of the various repositories to build from * Create a python script that takes the cross product of applications and versions and creates a tekton PipelineRun to build the docker image and update the manifest. * Fix a bug in update_manifests with image_name not being set. Related to #450: Continuous delivery of Kubeflow applications Here are some autogenerated PRs updating the manifests * kubeflow/manifests#697 * kubeflow/manifests#696 * Fix email of kubeflow bot to pass CLA check. * Fix #557 Skip lint due to #560
I think we can do something like the following to install the later version of python3
I think we want to use |
Example Dockerfile I tried updating our existing worker images to ubuntu:18.04 and some of the existing steps failed. |
…6.04) * We need to install python3.8 and it looks like it wasn't available in apt for 16.04 * related to: kubeflow#560
* Related to kubeflow#560 * We need this because we need a newer (3.8) version of pylint to allow for python3.8 syntax like f strings. * In this pass we eschewed the following packages which I don't think we need anymore * ksonnet * helm * glide (should be using go modules and staged builds) * docker * nodejs (should be using staged builds) * Create a skaffold config to build the image.
* Lint is failing because we are still runing python2 for lint * kubeflow/testing#560 is related to building an updated image with python3.8 compatible version of lint so we can support f style strings. * However, the unittests for kubeflow examples are still written in ksonnet. Its not worth trying to update that so we just remove that test for now. The test was just running lint * We should really see about using Tekton to write the workflows see kubeflow/testing#425
* Lint is failing because we are still runing python2 for lint * kubeflow/testing#560 is related to building an updated image with python3.8 compatible version of lint so we can support f style strings. * However, the unittests for kubeflow examples are still written in ksonnet. Its not worth trying to update that so we just remove that test for now. The test was just running lint * We should really see about using Tekton to write the workflows see kubeflow/testing#425
* Create a python3.8 version of the worker image * Related to #560 * We need this because we need a newer (3.8) version of pylint to allow for python3.8 syntax like f strings. * In this pass we eschewed the following packages which I don't think we need anymore * ksonnet * helm * glide (should be using go modules and staged builds) * docker * nodejs (should be using staged builds) * Create a skaffold config to build the image. * Add gcloud and kube-rsa.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in one week if no further activity occurs. Thank you for your contributions. |
This issue has been closed due to inactivity. |
I get different behavior when running pylint in the test worker image then when running it locally.
Example PR
https://prow.k8s.io/view/gcs/kubernetes-jenkins/pr-logs/pull/kubeflow_testing/559/kubeflow-testing-presubmit/1214777447178833920/
When run in the worker image I get
I do not get that error when running locally.
Locally I'm using version
in gcr.io/kubeflow-ci/test-worker@sha256:fbfb9141c02e9a50e3679f84637fc2d7c142fe9eaa6b9f55a3c9f8a710000837
I tried installing pylint3 in the container and got the same error
It looks like the syntax error is caused by f-style strings.
e.g.
I suspect to fix this we may need to upgrade the python version to 3.7
The text was updated successfully, but these errors were encountered: