Skip to content

Commit 36d9ec3

Browse files
arnoegwtensorflower-gardener
authored andcommitted
Pin TF-GNN's Kokoro tests to bazel 7.4.1 (last before 8.0.0).
PiperOrigin-RevId: 716125769
1 parent 577d03f commit 36d9ec3

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

kokoro/github/ubuntu/cpu/build.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
# limitations under the License.
1515

1616
set -e
17+
set -u
1718
set -x
1819

1920
cd "${KOKORO_ARTIFACTS_DIR}/github/gnn/"
@@ -36,6 +37,8 @@ mkdir -p "$TEST_ROOT"
3637
ln -s "$(pwd)"/tensorflow_gnn "$TEST_ROOT"/tensorflow_gnn
3738
tag_filters="-no_oss,-oss_excluded"
3839

40+
chmod +x "${KOKORO_GFILE_DIR}/use_bazel.sh"
41+
"${KOKORO_GFILE_DIR}/use_bazel.sh" 7.4.1 # Last before 8.0.0
3942
bazel clean
4043
pip install -r requirements-dev.txt --progress-bar off
4144
pip install tf-keras-nightly tf-nightly --progress-bar off --upgrade

kokoro/github/ubuntu/cpu/build_versioned.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
# limitations under the License.
1515

1616
set -e
17+
set -u
1718
set -x
1819

1920
cd "${KOKORO_ARTIFACTS_DIR}/github/gnn/"
@@ -47,6 +48,8 @@ cat /etc/os-release
4748
# These tag filters are enforced to start with a comma for separation
4849
tag_filters="-no_oss,-oss_excluded${TAG_FILTERS}"
4950

51+
chmod +x "${KOKORO_GFILE_DIR}/use_bazel.sh"
52+
"${KOKORO_GFILE_DIR}/use_bazel.sh" 7.4.1 # Last before 8.0.0
5053
bazel clean
5154
pip install -r requirements-dev.txt --progress-bar off
5255
pip install tensorflow=="${TF_VERSION}" --progress-bar off --upgrade

tensorflow_gnn/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ def _check_keras_version():
4242
"For more information, see "
4343
"https://github.com/tensorflow/gnn/blob/main/tensorflow_gnn/docs/guide/keras_version.md"
4444
)
45+
4546
_check_keras_version()
4647
del _check_keras_version
4748
# pylint: enable=g-statement-before-imports

0 commit comments

Comments
 (0)