Skip to content
This repository has been archived by the owner on Dec 8, 2021. It is now read-only.

Commit

Permalink
ci: workaround a bug in gRPC < 1.15.0 (#1158)
Browse files Browse the repository at this point in the history
Before 1.25.0 gRPC sometimes crashes when using the c-ares DNS resolver
on Windows, see grpc/grpc#18461 for more details.
  • Loading branch information
coryan authored Dec 18, 2019
1 parent c872116 commit ff50b65
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ci/kokoro/windows/bazel/build.bat
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@ if %errorlevel% neq 0 exit /b %errorlevel%
echo "Running integration tests"
call "%KOKORO_GFILE_DIR%/spanner-integration-tests-config.bat"

@REM TODO(#1034) - Cleanup this workaround after we upgrade gRPC.
@REM Before 1.25.0 gRPC sometimes crashes when using the c-ares resolver on
@REM Windows
set GRPC_DNS_RESOLVER=native

@rem It seems like redirecting to a file is the easiest way to store the
@rem command output to a variable.
bazel --output_user_root=C:\b info output_base > t:\bazel-info.txt
Expand Down
5 changes: 5 additions & 0 deletions ci/kokoro/windows/build.bat
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ set GOOGLE_APPLICATION_CREDENTIALS=%KOKORO_GFILE_DIR%\spanner-credentials.json
set GOOGLE_CLOUD_CPP_AUTO_RUN_EXAMPLES=yes
set GRPC_DEFAULT_SSL_ROOTS_FILE_PATH=T:\src\github\vcpkg\installed\x64-windows-static\share\grpc\roots.pem

@REM TODO(#1034) - Cleanup this workaround after we upgrade gRPC.
@REM Before 1.25.0 gRPC sometimes crashes when using the c-ares resolver on
@REM Windows
set GRPC_DNS_RESOLVER=native

echo %date% %time%
powershell -exec bypass ci\kokoro\windows\build-dependencies.ps1
if %errorlevel% neq 0 exit /b %errorlevel%
Expand Down

0 comments on commit ff50b65

Please sign in to comment.