From fe4daea99c8cd163793eca84bfb12c8fc437616b Mon Sep 17 00:00:00 2001 From: philwo Date: Tue, 20 Apr 2021 07:35:09 -0700 Subject: [PATCH] Bump minimal JDK install base maximum size from 290 to 295 MB. The Bazel 4.1.0rc release candidates are currently failing this test as they're just very slightly over the limit: test_size_less_than_290MB FAILED: Size of install_base is 297168 kB, expected it to be less than 296960 kB. PiperOrigin-RevId: 369436112 --- src/test/shell/integration/minimal_jdk_test.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/test/shell/integration/minimal_jdk_test.sh b/src/test/shell/integration/minimal_jdk_test.sh index 4fb9fa67f5b06a..66cffa11bb65fe 100755 --- a/src/test/shell/integration/minimal_jdk_test.sh +++ b/src/test/shell/integration/minimal_jdk_test.sh @@ -42,13 +42,13 @@ export BAZEL_SUFFIX="_jdk_minimal" source "$(rlocation "io_bazel/src/test/shell/integration_test_setup.sh")" \ || { echo "integration_test_setup.sh not found!" >&2; exit 1; } -# Bazel's install base is < 290MB with minimal JDK and > 300MB with an all +# Bazel's install base is < 295MB with minimal JDK and > 300MB with an all # modules JDK. -function test_size_less_than_290MB() { +function test_size_less_than_295MB() { bazel info ib=$(bazel info install_base) size=$(du -s "$ib" | cut -d\ -f1) - maxsize=$((1024*290)) + maxsize=$((1024*295)) if [ $size -gt $maxsize ]; then echo "$ib was too big:" 1>&2 du -a "$ib" 1>&2