-
Notifications
You must be signed in to change notification settings - Fork 476
Bump Python version to 3.9 #1731
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
Merged
google-oss-prow
merged 17 commits into
kubeflow:master
from
tenzen-y:issue-1730-bump-python-to-3.7
Dec 10, 2021
Merged
Changes from 15 commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
f58fdab
bump Python to 3.9
tenzen-y 0f5c9f9
modify script to build container image
tenzen-y ceeb754
fix example for enas
tenzen-y f77b63b
update scripts to modify image name in ci
tenzen-y 5cd70a6
review: change docker build command
tenzen-y 45f12da
review: use new tf-mnist-with-example in Ci for tfjob
tenzen-y 68765f4
review: refactor tf-mnist-with-summaries
tenzen-y f81f9ba
review: remove Dockerfile.ppc64le for new-ui
tenzen-y c521c40
review: update docs related tf-mnist-with-summaries
tenzen-y d125f37
TFEventMetricsCollector supports TF>=2.0 and stop supporting TF <=1.x
tenzen-y 8522be0
review: add help command to scripts/v1beta1/build.sh
tenzen-y 7e86dcb
fix unit test for tfevent-metricscollector
tenzen-y 6bdda5d
review: generate tf event files on CI
tenzen-y a362894
add test command to Makefile
tenzen-y a052149
update publish-trial-images
tenzen-y 8553312
update update-images.sh
tenzen-y d428ddc
reduce batch size
tenzen-y File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
grpcio==1.23.0 | ||
protobuf==3.9.1 | ||
grpcio==1.41.1 | ||
protobuf==3.19.1 | ||
googleapis-common-protos==1.6.0 | ||
kubernetes==11.0.0 | ||
cython>=0.29.24 |
28 changes: 23 additions & 5 deletions
28
cmd/metricscollector/v1beta1/tfevent-metricscollector/Dockerfile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,25 @@ | ||
FROM tensorflow/tensorflow:1.11.0 | ||
RUN pip install rfc3339 grpcio googleapis-common-protos | ||
ADD . /usr/src/app/github.com/kubeflow/katib | ||
WORKDIR /usr/src/app/github.com/kubeflow/katib/cmd/metricscollector/v1beta1/tfevent-metricscollector/ | ||
FROM python:3.9 | ||
|
||
ENV TARGET_DIR /opt/katib | ||
ENV METRICS_COLLECTOR_DIR cmd/metricscollector/v1beta1/tfevent-metricscollector | ||
# tensorflow community build for aarch64 | ||
# https://github.com/tensorflow/build#tensorflow-builds | ||
ENV PIP_EXTRA_INDEX_URL https://snapshots.linaro.org/ldcg/python-cache/ | ||
|
||
ADD ./pkg/ ${TARGET_DIR}/pkg/ | ||
ADD ./${METRICS_COLLECTOR_DIR}/ ${TARGET_DIR}/${METRICS_COLLECTOR_DIR}/ | ||
WORKDIR ${TARGET_DIR}/${METRICS_COLLECTOR_DIR} | ||
|
||
RUN if [ "$(uname -m)" = "aarch64" ]; then \ | ||
pip install tensorflow-aarch64==2.7.0; \ | ||
else \ | ||
pip install tensorflow==2.7.0; \ | ||
fi; | ||
RUN pip install --no-cache-dir -r requirements.txt | ||
ENV PYTHONPATH /usr/src/app/github.com/kubeflow/katib:/usr/src/app/github.com/kubeflow/katib/pkg/apis/manager/v1beta1/python:/usr/src/app/github.com/kubeflow/katib/pkg/metricscollector/v1beta1/tfevent-metricscollector/:/usr/src/app/github.com/kubeflow/katib/pkg/metricscollector/v1beta1/common/ | ||
|
||
RUN chgrp -R 0 ${TARGET_DIR} \ | ||
&& chmod -R g+rwX ${TARGET_DIR} | ||
|
||
ENV PYTHONPATH ${TARGET_DIR}:${TARGET_DIR}/pkg/apis/manager/v1beta1/python:${TARGET_DIR}/pkg/metricscollector/v1beta1/tfevent-metricscollector/::${TARGET_DIR}/pkg/metricscollector/v1beta1/common/ | ||
|
||
ENTRYPOINT ["python", "main.py"] |
28 changes: 0 additions & 28 deletions
28
cmd/metricscollector/v1beta1/tfevent-metricscollector/Dockerfile.aarch64
This file was deleted.
Oops, something went wrong.
3 changes: 1 addition & 2 deletions
3
cmd/metricscollector/v1beta1/tfevent-metricscollector/Dockerfile.ppc64le
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 4 additions & 1 deletion
5
cmd/metricscollector/v1beta1/tfevent-metricscollector/requirements.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
psutil==5.6.6 | ||
psutil==5.8.0 | ||
rfc3339>=6.2 | ||
grpcio==1.41.1 | ||
googleapis-common-protos==1.6.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
grpcio==1.23.0 | ||
grpcio==1.41.1 | ||
cloudpickle==0.5.6 | ||
numpy>=1.13.3 | ||
scikit-learn>=0.19.0 | ||
scipy>=0.19.1 | ||
numpy>=1.20.0 | ||
scikit-learn>=0.24.0 | ||
scipy>=1.5.4 | ||
forestci==0.3 | ||
protobuf==3.9.1 | ||
protobuf==3.19.1 | ||
googleapis-common-protos==1.6.0 | ||
SQLAlchemy==1.3.8 | ||
SQLAlchemy==1.4.26 | ||
git+https://github.com/AIworx-Labs/chocolate@master | ||
ghalton>=0.6 | ||
ghalton>=0.6.2 | ||
cython>=0.29.24 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
grpcio==1.23.0 | ||
grpcio==1.41.1 | ||
cloudpickle==0.5.6 | ||
numpy>=1.13.3 | ||
scikit-learn>=0.19.0 | ||
scipy>=0.19.1 | ||
numpy>=1.20.0 | ||
scikit-learn>=0.24.0 | ||
scipy>=1.5.4 | ||
forestci==0.3 | ||
protobuf==3.9.1 | ||
protobuf==3.19.1 | ||
googleapis-common-protos==1.6.0 | ||
cython>=0.29.24 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
grpcio==1.23.0 | ||
grpcio==1.41.1 | ||
cloudpickle==0.5.6 | ||
numpy>=1.13.3 | ||
scikit-learn>=0.19.0 | ||
scipy>=0.19.1 | ||
numpy>=1.20.0 | ||
scikit-learn>=0.24.0 | ||
scipy>=1.5.4 | ||
forestci==0.3 | ||
protobuf==3.9.1 | ||
protobuf==3.19.1 | ||
googleapis-common-protos==1.6.0 | ||
hyperopt==0.2.3 | ||
hyperopt==0.2.5 | ||
cython>=0.29.24 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
grpcio==1.23.0 | ||
protobuf==3.9.1 | ||
grpcio==1.41.1 | ||
protobuf==3.19.1 | ||
googleapis-common-protos==1.6.0 | ||
cython>=0.29.24 |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.