Skip to content

Commit

Permalink
Bump to TF2.15 (#1905)
Browse files Browse the repository at this point in the history
* Update to 2.15

* Update

* Bazel build failure

* Format

* Fix the version

* empty push

* Disable buildkit

* Remove progres=plain

* Cleanup

* Update

* --noshow_progress

* Check disk status

* Check disks and images

* Additional disk clean
  • Loading branch information
yongtang authored Dec 20, 2023
1 parent b3b2933 commit 108e048
Show file tree
Hide file tree
Showing 8 changed files with 28 additions and 6 deletions.
19 changes: 18 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -301,11 +301,28 @@ jobs:
shell: bash
run: |
set -x
docker system prune --all --force
docker images
docker ps -a
df -h
# See https://github.com/actions/runner-images/issues/2840
sudo rm -rf /usr/share/dotnet
sudo rm -rf /opt/ghc
sudo rm -rf "/usr/local/share/boost"
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
df -h
# See https://github.com/actions/runner-images/issues/2606
sudo rm -rf /usr/local/lib/android
df -h
sudo apt-get autoremove -y
sudo apt-get autoclean -y
df -h
#export BAZEL_OPTIMIZATION="--config=optimization --config=linux_ci --config=cache"
#if [[ "${{ env.EVENT_NAME }}" == "push" && "${{ env.REPO_NAME }}" == "tensorflow/io" ]]; then
# export BAZEL_OPTIMIZATION="${BAZEL_OPTIMIZATION} --remote_upload_local_results=true --google_credentials=service_account_creds.json"
#fi
docker build -t io -f tools/docker/build.Dockerfile --build-arg PYTHON_VERSION=3.10 --build-arg TENSORFLOW_VERSION=2.14 --build-arg BAZEL_OPTIMIZATION="${BAZEL_OPTIMIZATION}" --progress=plain .
TENSORFLOW_VERSION=$(grep tensorflow tensorflow_io/python/ops/version_ops.py | sed -e "s/require = //g" | awk -F, '{print $1}' | awk -F= '{print $2}' | awk -F. '{print $1"."$2}')
DOCKER_BUILDKIT=0 docker build -t io -f tools/docker/build.Dockerfile --build-arg PYTHON_VERSION=3.10 --build-arg TENSORFLOW_VERSION="${TENSORFLOW_VERSION}" --build-arg BAZEL_OPTIMIZATION="${BAZEL_OPTIMIZATION}" .
docker create -it --name io io bash
sleep 5
docker cp -L io:/opt/io/bazel-bin build
Expand Down
6 changes: 3 additions & 3 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,10 @@ switched_rules_by_language(

http_archive(
name = "org_tensorflow",
sha256 = "ce357fd0728f0d1b0831d1653f475591662ec5bca736a94ff789e6b1944df19f",
strip_prefix = "tensorflow-2.14.0",
sha256 = "9cec5acb0ecf2d47b16891f8bc5bc6fbfdffe1700bdadc0d9ebe27ea34f0c220",
strip_prefix = "tensorflow-2.15.0",
urls = [
"https://github.com/tensorflow/tensorflow/archive/refs/tags/v2.14.0.tar.gz",
"https://github.com/tensorflow/tensorflow/archive/refs/tags/v2.15.0.tar.gz",
],
)

Expand Down
1 change: 1 addition & 0 deletions tensorflow_io/core/filesystems/az/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ cc_library(
"//tensorflow_io/core/filesystems:filesystem_plugins_header",
"@com_github_azure_azure_sdk_for_cpp//:azure",
"@com_google_absl//absl/strings",
"@local_tsl//tsl/c:tsl_status",
],
alwayslink = 1,
)
1 change: 1 addition & 0 deletions tensorflow_io/core/filesystems/hdfs/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ cc_library(
"@com_google_absl//absl/strings",
"@com_google_absl//absl/synchronization",
"@hadoop",
"@local_tsl//tsl/c:tsl_status",
],
alwayslink = 1,
)
1 change: 1 addition & 0 deletions tensorflow_io/core/filesystems/http/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ cc_library(
"@com_google_absl//absl/synchronization",
"@com_google_absl//absl/time",
"@curl",
"@local_tsl//tsl/c:tsl_status",
],
alwayslink = 1,
)
1 change: 1 addition & 0 deletions tensorflow_io/core/filesystems/s3/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ cc_library(
"@aws-sdk-cpp//:transfer",
"@com_google_absl//absl/strings",
"@com_google_absl//absl/synchronization",
"@local_tsl//tsl/c:tsl_status",
],
alwayslink = 1,
)
4 changes: 2 additions & 2 deletions tensorflow_io/python/ops/version_ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@
# ==============================================================================
"""version_ops"""

version = "0.35.0"
require = "tensorflow>=2.14.0,<2.15.0"
version = "0.36.0"
require = "tensorflow>=2.15.0,<2.16.0"
1 change: 1 addition & 0 deletions tensorflow_io_gcs_filesystem/core/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ cc_library(
"@com_google_absl//absl/types:variant",
"@local_config_tf//:tf_c_header_lib",
"@local_config_tf//:tf_tsl_header_lib",
"@local_tsl//tsl/c:tsl_status",
],
alwayslink = 1,
)
Expand Down

0 comments on commit 108e048

Please sign in to comment.