Skip to content

Commit 108e048

Browse files
authored
Bump to TF2.15 (#1905)
* 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
1 parent b3b2933 commit 108e048

File tree

8 files changed

+28
-6
lines changed

8 files changed

+28
-6
lines changed

.github/workflows/build.yml

+18-1
Original file line numberDiff line numberDiff line change
@@ -301,11 +301,28 @@ jobs:
301301
shell: bash
302302
run: |
303303
set -x
304+
docker system prune --all --force
305+
docker images
306+
docker ps -a
307+
df -h
308+
# See https://github.com/actions/runner-images/issues/2840
309+
sudo rm -rf /usr/share/dotnet
310+
sudo rm -rf /opt/ghc
311+
sudo rm -rf "/usr/local/share/boost"
312+
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
313+
df -h
314+
# See https://github.com/actions/runner-images/issues/2606
315+
sudo rm -rf /usr/local/lib/android
316+
df -h
317+
sudo apt-get autoremove -y
318+
sudo apt-get autoclean -y
319+
df -h
304320
#export BAZEL_OPTIMIZATION="--config=optimization --config=linux_ci --config=cache"
305321
#if [[ "${{ env.EVENT_NAME }}" == "push" && "${{ env.REPO_NAME }}" == "tensorflow/io" ]]; then
306322
# export BAZEL_OPTIMIZATION="${BAZEL_OPTIMIZATION} --remote_upload_local_results=true --google_credentials=service_account_creds.json"
307323
#fi
308-
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 .
324+
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}')
325+
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}" .
309326
docker create -it --name io io bash
310327
sleep 5
311328
docker cp -L io:/opt/io/bazel-bin build

WORKSPACE

+3-3
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,10 @@ switched_rules_by_language(
9393

9494
http_archive(
9595
name = "org_tensorflow",
96-
sha256 = "ce357fd0728f0d1b0831d1653f475591662ec5bca736a94ff789e6b1944df19f",
97-
strip_prefix = "tensorflow-2.14.0",
96+
sha256 = "9cec5acb0ecf2d47b16891f8bc5bc6fbfdffe1700bdadc0d9ebe27ea34f0c220",
97+
strip_prefix = "tensorflow-2.15.0",
9898
urls = [
99-
"https://github.com/tensorflow/tensorflow/archive/refs/tags/v2.14.0.tar.gz",
99+
"https://github.com/tensorflow/tensorflow/archive/refs/tags/v2.15.0.tar.gz",
100100
],
101101
)
102102

tensorflow_io/core/filesystems/az/BUILD

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ cc_library(
1818
"//tensorflow_io/core/filesystems:filesystem_plugins_header",
1919
"@com_github_azure_azure_sdk_for_cpp//:azure",
2020
"@com_google_absl//absl/strings",
21+
"@local_tsl//tsl/c:tsl_status",
2122
],
2223
alwayslink = 1,
2324
)

tensorflow_io/core/filesystems/hdfs/BUILD

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ cc_library(
1919
"@com_google_absl//absl/strings",
2020
"@com_google_absl//absl/synchronization",
2121
"@hadoop",
22+
"@local_tsl//tsl/c:tsl_status",
2223
],
2324
alwayslink = 1,
2425
)

tensorflow_io/core/filesystems/http/BUILD

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ cc_library(
2020
"@com_google_absl//absl/synchronization",
2121
"@com_google_absl//absl/time",
2222
"@curl",
23+
"@local_tsl//tsl/c:tsl_status",
2324
],
2425
alwayslink = 1,
2526
)

tensorflow_io/core/filesystems/s3/BUILD

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ cc_library(
2323
"@aws-sdk-cpp//:transfer",
2424
"@com_google_absl//absl/strings",
2525
"@com_google_absl//absl/synchronization",
26+
"@local_tsl//tsl/c:tsl_status",
2627
],
2728
alwayslink = 1,
2829
)

tensorflow_io/python/ops/version_ops.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@
1414
# ==============================================================================
1515
"""version_ops"""
1616

17-
version = "0.35.0"
18-
require = "tensorflow>=2.14.0,<2.15.0"
17+
version = "0.36.0"
18+
require = "tensorflow>=2.15.0,<2.16.0"

tensorflow_io_gcs_filesystem/core/BUILD

+1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ cc_library(
3737
"@com_google_absl//absl/types:variant",
3838
"@local_config_tf//:tf_c_header_lib",
3939
"@local_config_tf//:tf_tsl_header_lib",
40+
"@local_tsl//tsl/c:tsl_status",
4041
],
4142
alwayslink = 1,
4243
)

0 commit comments

Comments
 (0)