From 6d8a59c8ba4d6192f567ebdd0bb9b812e1d6499f Mon Sep 17 00:00:00 2001 From: Dan Field Date: Wed, 26 Jun 2019 12:31:29 -0700 Subject: [PATCH] pass new users for release_smoke_tests (#35130) --- dev/bots/firebase_testlab.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/dev/bots/firebase_testlab.sh b/dev/bots/firebase_testlab.sh index 0315de9a13..666002d217 100755 --- a/dev/bots/firebase_testlab.sh +++ b/dev/bots/firebase_testlab.sh @@ -8,6 +8,16 @@ pushd dev/integration_tests/release_smoke_test ../../../bin/flutter build appbundle --target-platform android-arm,android-arm64 +# New contributors will not have permissions to run this test - they won't be +# able to access the service account information. We should just mark the test +# as passed - it will run fine on post submit, where it will still catch +# failures. +# We can also still make sure that building a release app bundle still works. +if [[ $GCLOUD_FIREBASE_TESTLAB_KEY == ENCRYPTED* ]]; then + echo "This user does not have permission to run this test." + exit 0 +fi + echo $GCLOUD_FIREBASE_TESTLAB_KEY > ${HOME}/gcloud-service-key.json gcloud auth activate-service-account --key-file=${HOME}/gcloud-service-key.json gcloud --quiet config set project flutter-infra