diff --git a/WORKSPACE b/WORKSPACE index 7b489157..7fc01acd 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -4,10 +4,10 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "io_bazel_rules_closure", - sha256 = "319e5e0127a83436b55588877a9d81464c2780c0dffc809065cf299d772670f5", - strip_prefix = "rules_closure-87d24b1df8b62405de8dd059cb604fd9d4b1e395", + sha256 = "1f8d2e169bb292ef2adbe563bd66d5b8d4b462b6b869a67647e771ecef4b5030", + strip_prefix = "rules_closure-a176ec89a1b251bb5442ba569d47cee3c053e633", urls = [ - "https://github.com/bazelbuild/rules_closure/archive/87d24b1df8b62405de8dd059cb604fd9d4b1e395.zip", + "https://github.com/bazelbuild/rules_closure/archive/a176ec89a1b251bb5442ba569d47cee3c053e633.zip", ], ) diff --git a/scripts/kokoro.sh b/scripts/kokoro.sh index fee58d11..1a33f00d 100755 --- a/scripts/kokoro.sh +++ b/scripts/kokoro.sh @@ -31,9 +31,10 @@ BAZEL_FILES=$(find "${REPO_DIR}" \ -not -path "${REPO_DIR}/third_party/*" -and \ \( -name "BUILD.bazel" -o -name "*.bzl" \)) ./buildifier -mode check ${BAZEL_FILES[@]} +rm ./buildifier # These programs need to be already installed -progs=(docker docker-compose bazel npm curl) +progs=(docker docker-compose npm curl) for p in "${progs[@]}" do command -v "$p" > /dev/null 2>&1 || \ @@ -48,28 +49,12 @@ BAZEL_VERSION=0.23.1 wget https://github.com/bazelbuild/bazel/releases/download/"${BAZEL_VERSION}"/bazel-"${BAZEL_VERSION}"-installer-linux-x86_64.sh chmod +x ./bazel-"${BAZEL_VERSION}"-installer-linux-x86_64.sh ./bazel-"${BAZEL_VERSION}"-installer-linux-x86_64.sh --user -$HOME/bin/bazel version - -# Run the bazel test command multiple times because of some flaky -# behavior with libssl.so -tries=15 -set +e -for ((i=1;i<=$tries;i++)); -do - $HOME/bin/bazel clean - $HOME/bin/bazel test --cache_test_results=no \ - //javascript/net/grpc/web/... \ - //net/grpc/gateway/examples/... - ret=$? - if [ $ret -eq 0 ]; then - break - elif [ $i -eq $tries ]; then - exit 1 - fi -done -set -e -rm ./buildifier rm ./bazel-"${BAZEL_VERSION}"-installer-linux-x86_64.sh +$HOME/bin/bazel version +$HOME/bin/bazel clean +$HOME/bin/bazel test \ + //javascript/net/grpc/web/... \ + //net/grpc/gateway/examples/... # Build the grpc-web npm package cd packages/grpc-web && \