From 262ff6787b7ce7b88df68f72bddcbd1ccd2e842e Mon Sep 17 00:00:00 2001 From: Olivier Halligon Date: Thu, 27 Aug 2020 22:55:51 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A9=20Skip=20build=20and=20Fake=20FTL?= =?UTF-8?q?=20step=20by=20using=20bucket=20from=20last=20run?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit After fixing the strange failure on Pixel2-28-in for image #3 --- .circleci/config.yml | 52 +++++++++++++++++++++++++------------------- 1 file changed, 30 insertions(+), 22 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 2511d90cded1..3baf6b81baac 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -291,31 +291,39 @@ jobs: command: mkdir -p libs/gutenberg-mobile/gutenberg/packages/react-native-bridge/android/src/main/assets - attach_workspace: at: libs/gutenberg-mobile/gutenberg/packages/react-native-bridge/android/src/main/assets - - run: - name: Build - environment: - SUPPRESS_GUTENBERG_MOBILE_JS_BUNDLE_BUILD: 1 - command: ./gradlew WordPress:assembleVanillaDebug WordPress:assembleVanillaDebugAndroidTest --stacktrace + # - run: + # name: Build + # environment: + # SUPPRESS_GUTENBERG_MOBILE_JS_BUNDLE_BUILD: 1 + # command: ./gradlew WordPress:assembleVanillaDebug WordPress:assembleVanillaDebugAndroidTest --stacktrace - run: name: Decrypt credentials command: openssl aes-256-cbc -md sha256 -d -in .circleci/.firebase.secrets.json.enc -out .circleci/.firebase.secrets.json -k "${FIREBASE_SECRETS_ENCRYPTION_KEY}" - - android/firebase-test: - key-file: .circleci/.firebase.secrets.json - type: instrumentation - apk-path: WordPress/build/outputs/apk/vanilla/debug/org.wordpress.android-vanilla-debug.apk - test-apk-path: WordPress/build/outputs/apk/androidTest/vanilla/debug/org.wordpress.android-vanilla-debug-androidTest.apk - test-targets: package org.wordpress.android.ui.screenshots - # devices: | - # model=blueline,version=28,orientation=portrait - # model=gts3lltevzw,version=28,orientation=default - # [Trial Limitation] Free plan I use to experiment with Firebase Test Lab has a quota of 10 tests/day - # locales: ar de_DE en_US es_ES fr_FR iw_IL in it_IT ja_JP ko_KR nl_NL pl_PL pt_BR ru_RU sr sv_SE th tr_TR vi zh_CN zh_TW - devices: model=Pixel2,version=28,orientation=portrait model=Nexus9,version=25,orientation=portrait - locales: en_US in - project: wpandroid-74b6c - timeout: 30m - num-flaky-test-attempts: 2 - results-history-name: CircleCI WordPress Screenshots + # - android/firebase-test: + # key-file: .circleci/.firebase.secrets.json + # type: instrumentation + # apk-path: WordPress/build/outputs/apk/vanilla/debug/org.wordpress.android-vanilla-debug.apk + # test-apk-path: WordPress/build/outputs/apk/androidTest/vanilla/debug/org.wordpress.android-vanilla-debug-androidTest.apk + # test-targets: package org.wordpress.android.ui.screenshots + # # devices: | + # # model=blueline,version=28,orientation=portrait + # # model=gts3lltevzw,version=28,orientation=default + # # [Trial Limitation] Free plan I use to experiment with Firebase Test Lab has a quota of 10 tests/day + # # locales: ar de_DE en_US es_ES fr_FR iw_IL in it_IT ja_JP ko_KR nl_NL pl_PL pt_BR ru_RU sr sv_SE th tr_TR vi zh_CN zh_TW + # devices: model=Pixel2,version=28,orientation=portrait model=Nexus9,version=25,orientation=portrait + # locales: en_US in + # project: wpandroid-74b6c + # timeout: 30m + # num-flaky-test-attempts: 2 + # results-history-name: CircleCI WordPress Screenshots + # BEGIN DEBUG STEP (While firebase-test is commented out) + - run: + name: Fake FTL Run + command: | + gcloud auth activate-service-account --key-file ".circleci/.firebase.secrets.json" + echo "INFO: Raw results root path is: [gs://test-lab-d1urt75q3y6wu-ha5s1mih364hi/2020-08-27_20:23:16.534753_OMck/]" >log.txt + # END DEBUG STEP + - android/save-gradle-cache - run: name: Download Raw Screenshots from Google Storage