From ac0f7e80eafd8ccacc3235767f8681ffebb53a93 Mon Sep 17 00:00:00 2001 From: Stanley Cheung Date: Tue, 28 Jul 2020 22:35:42 -0700 Subject: [PATCH] Attempt to de-flake dart interop build --- .../interoptest/grpc_interop_dart/build_interop.sh.template | 3 ++- .../dockerfile/interoptest/grpc_interop_dart/build_interop.sh | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/templates/tools/dockerfile/interoptest/grpc_interop_dart/build_interop.sh.template b/templates/tools/dockerfile/interoptest/grpc_interop_dart/build_interop.sh.template index f5c48593b9a..c3a9c7fb892 100644 --- a/templates/tools/dockerfile/interoptest/grpc_interop_dart/build_interop.sh.template +++ b/templates/tools/dockerfile/interoptest/grpc_interop_dart/build_interop.sh.template @@ -25,4 +25,5 @@ cp -r /var/local/jenkins/service_account $HOME || true cd /var/local/git/grpc-dart/interop - /usr/lib/dart/bin/pub get --verbose + # De-flake attempt: run the cmd one more time in case of transient failure + /usr/lib/dart/bin/pub get --verbose || /usr/lib/dart/bin/pub get --verbose diff --git a/tools/dockerfile/interoptest/grpc_interop_dart/build_interop.sh b/tools/dockerfile/interoptest/grpc_interop_dart/build_interop.sh index 589983ce58c..2b4c07ed128 100644 --- a/tools/dockerfile/interoptest/grpc_interop_dart/build_interop.sh +++ b/tools/dockerfile/interoptest/grpc_interop_dart/build_interop.sh @@ -23,4 +23,5 @@ git clone /var/local/jenkins/grpc-dart /var/local/git/grpc-dart cp -r /var/local/jenkins/service_account $HOME || true cd /var/local/git/grpc-dart/interop -/usr/lib/dart/bin/pub get --verbose +# De-flake attempt: run the cmd one more time in case of transient failure +/usr/lib/dart/bin/pub get --verbose || /usr/lib/dart/bin/pub get --verbose