Upload firebase test result to a buket in flutter-cirrus. (#6337)

This commit is contained in:
godofredoc
2022-08-30 15:54:04 -07:00
committed by GitHub
parent 8ceef0db44
commit 33b29cd7a0
2 changed files with 9 additions and 9 deletions

View File

@ -59,7 +59,7 @@ class FirebaseTestLabCommand extends PackageLoopingCommand {
help: help:
'Device model(s) to test. See https://cloud.google.com/sdk/gcloud/reference/firebase/test/android/run for more info'); 'Device model(s) to test. See https://cloud.google.com/sdk/gcloud/reference/firebase/test/android/run for more info');
argParser.addOption('results-bucket', argParser.addOption('results-bucket',
defaultsTo: 'gs://flutter_firebase_testlab_staging'); defaultsTo: 'gs://flutter_cirrus_testlab');
argParser.addOption( argParser.addOption(
kEnableExperiment, kEnableExperiment,
defaultsTo: '', defaultsTo: '',

View File

@ -174,7 +174,7 @@ public class MainActivityTest {
'/packages/plugin1/example/android'), '/packages/plugin1/example/android'),
ProcessCall( ProcessCall(
'gcloud', 'gcloud',
'firebase test android run --type instrumentation --app build/app/outputs/apk/debug/app-debug.apk --test build/app/outputs/apk/androidTest/debug/app-debug-androidTest.apk --timeout 7m --results-bucket=gs://flutter_firebase_testlab_staging --results-dir=plugins_android_test/plugin1/buildId/testRunId/example/0/ --device model=redfin,version=30 --device model=seoul,version=26' 'firebase test android run --type instrumentation --app build/app/outputs/apk/debug/app-debug.apk --test build/app/outputs/apk/androidTest/debug/app-debug-androidTest.apk --timeout 7m --results-bucket=gs://flutter_cirrus_testlab --results-dir=plugins_android_test/plugin1/buildId/testRunId/example/0/ --device model=redfin,version=30 --device model=seoul,version=26'
.split(' '), .split(' '),
'/packages/plugin1/example'), '/packages/plugin1/example'),
ProcessCall( ProcessCall(
@ -188,7 +188,7 @@ public class MainActivityTest {
'/packages/plugin2/example/android'), '/packages/plugin2/example/android'),
ProcessCall( ProcessCall(
'gcloud', 'gcloud',
'firebase test android run --type instrumentation --app build/app/outputs/apk/debug/app-debug.apk --test build/app/outputs/apk/androidTest/debug/app-debug-androidTest.apk --timeout 7m --results-bucket=gs://flutter_firebase_testlab_staging --results-dir=plugins_android_test/plugin2/buildId/testRunId/example/0/ --device model=redfin,version=30 --device model=seoul,version=26' 'firebase test android run --type instrumentation --app build/app/outputs/apk/debug/app-debug.apk --test build/app/outputs/apk/androidTest/debug/app-debug-androidTest.apk --timeout 7m --results-bucket=gs://flutter_cirrus_testlab --results-dir=plugins_android_test/plugin2/buildId/testRunId/example/0/ --device model=redfin,version=30 --device model=seoul,version=26'
.split(' '), .split(' '),
'/packages/plugin2/example'), '/packages/plugin2/example'),
]), ]),
@ -255,7 +255,7 @@ public class MainActivityTest {
'/packages/plugin/example/android'), '/packages/plugin/example/android'),
ProcessCall( ProcessCall(
'gcloud', 'gcloud',
'firebase test android run --type instrumentation --app build/app/outputs/apk/debug/app-debug.apk --test build/app/outputs/apk/androidTest/debug/app-debug-androidTest.apk --timeout 7m --results-bucket=gs://flutter_firebase_testlab_staging --results-dir=plugins_android_test/plugin/buildId/testRunId/example/0/ --device model=redfin,version=30 --device model=seoul,version=26' 'firebase test android run --type instrumentation --app build/app/outputs/apk/debug/app-debug.apk --test build/app/outputs/apk/androidTest/debug/app-debug-androidTest.apk --timeout 7m --results-bucket=gs://flutter_cirrus_testlab --results-dir=plugins_android_test/plugin/buildId/testRunId/example/0/ --device model=redfin,version=30 --device model=seoul,version=26'
.split(' '), .split(' '),
'/packages/plugin/example'), '/packages/plugin/example'),
ProcessCall( ProcessCall(
@ -265,7 +265,7 @@ public class MainActivityTest {
'/packages/plugin/example/android'), '/packages/plugin/example/android'),
ProcessCall( ProcessCall(
'gcloud', 'gcloud',
'firebase test android run --type instrumentation --app build/app/outputs/apk/debug/app-debug.apk --test build/app/outputs/apk/androidTest/debug/app-debug-androidTest.apk --timeout 7m --results-bucket=gs://flutter_firebase_testlab_staging --results-dir=plugins_android_test/plugin/buildId/testRunId/example/1/ --device model=redfin,version=30 --device model=seoul,version=26' 'firebase test android run --type instrumentation --app build/app/outputs/apk/debug/app-debug.apk --test build/app/outputs/apk/androidTest/debug/app-debug-androidTest.apk --timeout 7m --results-bucket=gs://flutter_cirrus_testlab --results-dir=plugins_android_test/plugin/buildId/testRunId/example/1/ --device model=redfin,version=30 --device model=seoul,version=26'
.split(' '), .split(' '),
'/packages/plugin/example'), '/packages/plugin/example'),
]), ]),
@ -320,7 +320,7 @@ public class MainActivityTest {
'/packages/plugin/example/example1/android'), '/packages/plugin/example/example1/android'),
ProcessCall( ProcessCall(
'gcloud', 'gcloud',
'firebase test android run --type instrumentation --app build/app/outputs/apk/debug/app-debug.apk --test build/app/outputs/apk/androidTest/debug/app-debug-androidTest.apk --timeout 7m --results-bucket=gs://flutter_firebase_testlab_staging --results-dir=plugins_android_test/plugin/buildId/testRunId/example1/0/ --device model=redfin,version=30 --device model=seoul,version=26' 'firebase test android run --type instrumentation --app build/app/outputs/apk/debug/app-debug.apk --test build/app/outputs/apk/androidTest/debug/app-debug-androidTest.apk --timeout 7m --results-bucket=gs://flutter_cirrus_testlab --results-dir=plugins_android_test/plugin/buildId/testRunId/example1/0/ --device model=redfin,version=30 --device model=seoul,version=26'
.split(' '), .split(' '),
'/packages/plugin/example/example1'), '/packages/plugin/example/example1'),
ProcessCall( ProcessCall(
@ -330,7 +330,7 @@ public class MainActivityTest {
'/packages/plugin/example/example2/android'), '/packages/plugin/example/example2/android'),
ProcessCall( ProcessCall(
'gcloud', 'gcloud',
'firebase test android run --type instrumentation --app build/app/outputs/apk/debug/app-debug.apk --test build/app/outputs/apk/androidTest/debug/app-debug-androidTest.apk --timeout 7m --results-bucket=gs://flutter_firebase_testlab_staging --results-dir=plugins_android_test/plugin/buildId/testRunId/example2/0/ --device model=redfin,version=30 --device model=seoul,version=26' 'firebase test android run --type instrumentation --app build/app/outputs/apk/debug/app-debug.apk --test build/app/outputs/apk/androidTest/debug/app-debug-androidTest.apk --timeout 7m --results-bucket=gs://flutter_cirrus_testlab --results-dir=plugins_android_test/plugin/buildId/testRunId/example2/0/ --device model=redfin,version=30 --device model=seoul,version=26'
.split(' '), .split(' '),
'/packages/plugin/example/example2'), '/packages/plugin/example/example2'),
]), ]),
@ -613,7 +613,7 @@ public class MainActivityTest {
'/packages/plugin/example/android'), '/packages/plugin/example/android'),
ProcessCall( ProcessCall(
'gcloud', 'gcloud',
'firebase test android run --type instrumentation --app build/app/outputs/apk/debug/app-debug.apk --test build/app/outputs/apk/androidTest/debug/app-debug-androidTest.apk --timeout 7m --results-bucket=gs://flutter_firebase_testlab_staging --results-dir=plugins_android_test/plugin/buildId/testRunId/example/0/ --device model=redfin,version=30' 'firebase test android run --type instrumentation --app build/app/outputs/apk/debug/app-debug.apk --test build/app/outputs/apk/androidTest/debug/app-debug-androidTest.apk --timeout 7m --results-bucket=gs://flutter_cirrus_testlab --results-dir=plugins_android_test/plugin/buildId/testRunId/example/0/ --device model=redfin,version=30'
.split(' '), .split(' '),
'/packages/plugin/example'), '/packages/plugin/example'),
]), ]),
@ -785,7 +785,7 @@ public class MainActivityTest {
'/packages/plugin/example/android'), '/packages/plugin/example/android'),
ProcessCall( ProcessCall(
'gcloud', 'gcloud',
'firebase test android run --type instrumentation --app build/app/outputs/apk/debug/app-debug.apk --test build/app/outputs/apk/androidTest/debug/app-debug-androidTest.apk --timeout 7m --results-bucket=gs://flutter_firebase_testlab_staging --results-dir=plugins_android_test/plugin/buildId/testRunId/example/0/ --device model=redfin,version=30' 'firebase test android run --type instrumentation --app build/app/outputs/apk/debug/app-debug.apk --test build/app/outputs/apk/androidTest/debug/app-debug-androidTest.apk --timeout 7m --results-bucket=gs://flutter_cirrus_testlab --results-dir=plugins_android_test/plugin/buildId/testRunId/example/0/ --device model=redfin,version=30'
.split(' '), .split(' '),
'/packages/plugin/example'), '/packages/plugin/example'),
]), ]),