Move firebase test lab logs to a staging bucket (flutter/engine#35149)

* Updated the bucket for firebase testing to the staging project.

* updated the project.

* Adding environment variables for gcp project and storage bucket.

* Updated to exit if environment variables were not provided.
This commit is contained in:
Ricardo Amador
2022-08-04 16:52:29 -07:00
committed by GitHub
parent dea9cc4f0f
commit 9c735ec7dc

View File

@@ -11,7 +11,16 @@ import os
import subprocess
import sys
BUCKET = 'gs://flutter_firebase_testlab'
if 'STORAGE_BUCKET' not in os.environ:
print('The GCP storage bucket must be provided as an environment variable.')
sys.exit(1)
BUCKET = os.environ['STORAGE_BUCKET']
if 'GCP_PROJECT' not in os.environ:
print('The GCP project must be provided as an environment variable.')
sys.exit(1)
PROJECT = os.environ['GCP_PROJECT']
script_dir = os.path.dirname(os.path.realpath(__file__))
buildroot_dir = os.path.abspath(os.path.join(script_dir, '..', '..'))
out_dir = os.path.join(buildroot_dir, 'out')
@@ -28,7 +37,7 @@ def run_firebase_test(apk, results_dir):
[
'gcloud',
'--project',
'flutter-infra',
PROJECT,
'firebase',
'test',
'android',