mirror of https://github.com/grpc/grpc-web.git
Attempt to fix flaky bazel tests
This commit is contained in:
parent
d8ee2d9d24
commit
8d538a1ac4
|
@ -0,0 +1,2 @@
|
|||
# TODO(yannic): Remove once we are sure that the tests pass reliably.
|
||||
test --flaky_test_attempts=10
|
|
@ -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",
|
||||
],
|
||||
)
|
||||
|
||||
|
|
|
@ -33,7 +33,7 @@ BAZEL_FILES=$(find "${REPO_DIR}" \
|
|||
./buildifier -mode check ${BAZEL_FILES[@]}
|
||||
|
||||
# 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,11 +48,11 @@ 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
|
||||
rm ./bazel-"${BAZEL_VERSION}"-installer-linux-x86_64.sh
|
||||
$HOME/bin/bazel version
|
||||
$HOME/bin/bazel test \
|
||||
//javascript/net/grpc/web/... \
|
||||
//net/grpc/gateway/examples/...
|
||||
rm ./bazel-"${BAZEL_VERSION}"-installer-linux-x86_64.sh
|
||||
|
||||
# Build the grpc-web npm package
|
||||
cd packages/grpc-web && \
|
||||
|
|
Loading…
Reference in New Issue