From 332eb4d14a3cdd520cb6978010b84c656882e121 Mon Sep 17 00:00:00 2001 From: Paul Beusterien Date: Wed, 7 Feb 2024 08:53:05 -0800 Subject: [PATCH 1/3] Migrate a few more retry steps --- .github/workflows/abtesting.yml | 29 +++++++++++++------ .github/workflows/auth.yml | 47 +++++++++++++++++++++++-------- .github/workflows/crashlytics.yml | 29 +++++++++++++------ 3 files changed, 77 insertions(+), 28 deletions(-) diff --git a/.github/workflows/abtesting.yml b/.github/workflows/abtesting.yml index c8ee5c3cde9..84e2719bde0 100644 --- a/.github/workflows/abtesting.yml +++ b/.github/workflows/abtesting.yml @@ -38,10 +38,13 @@ jobs: run: scripts/setup_bundler.sh - name: Xcode run: sudo xcode-select -s /Applications/${{ matrix.xcode }}.app/Contents/Developer - - name: Build and test - run: | - scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseABTesting.podspec \ - --platforms=${{ matrix.target }} + - uses: nick-fields/retry@v3 + with: + timeout_minutes: 120 + max_attempts: 3 + retry_on: error + retry_wait_seconds: 120 + command: scripts/pod_lib_lint.rb FirebaseABTesting.podspec --platforms=${{ matrix.target }} spm: # Don't run on private repo unless it is a PR. @@ -65,8 +68,13 @@ jobs: run: sudo xcode-select -s /Applications/${{ matrix.xcode }}.app/Contents/Developer - name: Initialize xcodebuild run: scripts/setup_spm_tests.sh - - name: Unit Tests - run: scripts/third_party/travis/retry.sh ./scripts/build.sh ABTestingUnit ${{ matrix.target }} spm + - uses: nick-fields/retry@v3 + with: + timeout_minutes: 120 + max_attempts: 3 + retry_on: error + retry_wait_seconds: 120 + command: scripts/build.sh ABTestingUnit ${{ matrix.target }} spm catalyst: # Don't run on private repo unless it is a PR. @@ -81,8 +89,13 @@ jobs: - uses: ruby/setup-ruby@v1 - name: Setup Bundler run: scripts/setup_bundler.sh - - name: Setup project and Build for Catalyst - run: scripts/test_catalyst.sh FirebaseABTesting test FirebaseABTesting-Unit-unit + - uses: nick-fields/retry@v3 + with: + timeout_minutes: 120 + max_attempts: 3 + retry_on: error + retry_wait_seconds: 120 + command: scripts/test_catalyst.sh FirebaseABTesting test FirebaseABTesting-Unit-unit quickstart: # Don't run on private repo unless it is a PR. diff --git a/.github/workflows/auth.yml b/.github/workflows/auth.yml index 43efa7a522c..bbd55ebaa84 100644 --- a/.github/workflows/auth.yml +++ b/.github/workflows/auth.yml @@ -44,9 +44,13 @@ jobs: run: scripts/configure_test_keychain.sh - name: Xcode run: sudo xcode-select -s /Applications/${{ matrix.xcode }}.app/Contents/Developer - - name: Build and test - run: | - scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb ${{ matrix.podspec }} --platforms=${{ matrix.target }} \ + - uses: nick-fields/retry@v3 + with: + timeout_minutes: 120 + max_attempts: 3 + retry_on: error + retry_wait_seconds: 120 + command: scripts/pod_lib_lint.rb ${{ matrix.podspec }} --platforms=${{ matrix.target }} \ ${{ matrix.tests }} integration-tests: @@ -84,8 +88,13 @@ jobs: FirebaseAuth/Tests/Sample/SwiftApiTests/Credentials.swift "$plist_secret" - name: Xcode run: sudo xcode-select -s /Applications/Xcode_15.1.app/Contents/Developer - - name: BuildAndTest # can be replaced with pod lib lint with CocoaPods 1.10 - run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/build.sh Auth iOS) + - uses: nick-fields/retry@v3 + with: + timeout_minutes: 120 + max_attempts: 3 + retry_on: error + retry_wait_seconds: 120 + command: ([ -z $plist_secret ] || scripts/build.sh Auth iOS) spm: # Don't run on private repo unless it is a PR. @@ -111,8 +120,13 @@ jobs: run: sudo xcode-select -s /Applications/${{ matrix.xcode }}.app/Contents/Developer - name: Initialize xcodebuild run: scripts/setup_spm_tests.sh - - name: Unit Tests - run: scripts/third_party/travis/retry.sh ./scripts/build.sh AuthUnit ${{ matrix.target }} ${{ matrix.test }} + - uses: nick-fields/retry@v3 + with: + timeout_minutes: 120 + max_attempts: 3 + retry_on: error + retry_wait_seconds: 120 + command: scripts/third_party/travis/retry.sh ./scripts/build.sh AuthUnit ${{ matrix.target }} ${{ matrix.test }} catalyst: # Don't run on private repo unless it is a PR. @@ -126,9 +140,13 @@ jobs: - uses: ruby/setup-ruby@v1 - name: Setup Bundler run: scripts/setup_bundler.sh - - name: Setup project and Build for Catalyst - # Only build the unit tests on Catalyst. Their keychain reliance causes several failures. - run: scripts/test_catalyst.sh FirebaseAuth build FirebaseAuth-Unit-unit + - uses: nick-fields/retry@v3 + with: + timeout_minutes: 120 + max_attempts: 3 + retry_on: error + retry_wait_seconds: 120 + command: scripts/test_catalyst.sh FirebaseAuth build FirebaseAuth-Unit-unit quickstart: # Don't run on private repo unless it is a PR. @@ -195,5 +213,10 @@ jobs: run: scripts/setup_bundler.sh - name: Configure test keychain run: scripts/configure_test_keychain.sh - - name: PodLibLint Auth Cron - run: scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseAuth.podspec --platforms=${{ matrix.target }} ${{ matrix.flags }} + - uses: nick-fields/retry@v3 + with: + timeout_minutes: 120 + max_attempts: 3 + retry_on: error + retry_wait_seconds: 120 + command: scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseAuth.podspec --platforms=${{ matrix.target }} ${{ matrix.flags }} diff --git a/.github/workflows/crashlytics.yml b/.github/workflows/crashlytics.yml index e41daed1ced..ff447adaeec 100644 --- a/.github/workflows/crashlytics.yml +++ b/.github/workflows/crashlytics.yml @@ -41,9 +41,13 @@ jobs: run: scripts/setup_bundler.sh - name: Xcode run: sudo xcode-select -s /Applications/${{ matrix.xcode }}.app/Contents/Developer - - name: Build and test - run: | - scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseCrashlytics.podspec --platforms=${{ matrix.target }} \ + - uses: nick-fields/retry@v3 + with: + timeout_minutes: 120 + max_attempts: 3 + retry_on: error + retry_wait_seconds: 120 + command: scripts/pod_lib_lint.rb FirebaseCrashlytics.podspec --platforms=${{ matrix.target }} \ ${{ matrix.tests }} spm: @@ -68,9 +72,13 @@ jobs: run: sudo xcode-select -s /Applications/${{ matrix.xcode }}.app/Contents/Developer - name: Initialize xcodebuild run: scripts/setup_spm_tests.sh - - name: Unit Tests - run: scripts/third_party/travis/retry.sh ./scripts/build.sh FirebaseCrashlyticsUnit ${{ matrix.target }} spm - + - uses: nick-fields/retry@v3 + with: + timeout_minutes: 120 + max_attempts: 3 + retry_on: error + retry_wait_seconds: 120 + command: scripts/third_party/travis/retry.sh ./scripts/build.sh FirebaseCrashlyticsUnit ${{ matrix.target }} spm catalyst: # Don't run on private repo unless it is a PR. @@ -85,8 +93,13 @@ jobs: - uses: ruby/setup-ruby@v1 - name: Setup Bundler run: scripts/setup_bundler.sh - - name: Setup project and Build for Catalyst - run: scripts/test_catalyst.sh FirebaseCrashlytics test FirebaseCrashlytics-Unit-unit + - uses: nick-fields/retry@v3 + with: + timeout_minutes: 120 + max_attempts: 3 + retry_on: error + retry_wait_seconds: 120 + command: cripts/test_catalyst.sh FirebaseCrashlytics test FirebaseCrashlytics-Unit-unit quickstart: # Don't run on private repo unless it is a PR. From 78b8f4fb2e8455878cb5343478d4e659b436cf67 Mon Sep 17 00:00:00 2001 From: Paul Beusterien Date: Wed, 7 Feb 2024 09:13:13 -0800 Subject: [PATCH 2/3] fixes --- .github/workflows/auth.yml | 3 +-- .github/workflows/crashlytics.yml | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/auth.yml b/.github/workflows/auth.yml index bbd55ebaa84..ab8bbc1ef6f 100644 --- a/.github/workflows/auth.yml +++ b/.github/workflows/auth.yml @@ -50,8 +50,7 @@ jobs: max_attempts: 3 retry_on: error retry_wait_seconds: 120 - command: scripts/pod_lib_lint.rb ${{ matrix.podspec }} --platforms=${{ matrix.target }} \ - ${{ matrix.tests }} + command: scripts/pod_lib_lint.rb ${{ matrix.podspec }} --platforms=${{ matrix.target }} ${{ matrix.tests }} integration-tests: # Don't run on private repo unless it is a PR. diff --git a/.github/workflows/crashlytics.yml b/.github/workflows/crashlytics.yml index ff447adaeec..aaf97acbbfe 100644 --- a/.github/workflows/crashlytics.yml +++ b/.github/workflows/crashlytics.yml @@ -99,7 +99,7 @@ jobs: max_attempts: 3 retry_on: error retry_wait_seconds: 120 - command: cripts/test_catalyst.sh FirebaseCrashlytics test FirebaseCrashlytics-Unit-unit + command: scripts/test_catalyst.sh FirebaseCrashlytics test FirebaseCrashlytics-Unit-unit quickstart: # Don't run on private repo unless it is a PR. From 0b0cdabb50f22cf81e025f7fa38285b8771db058 Mon Sep 17 00:00:00 2001 From: Paul Beusterien Date: Wed, 7 Feb 2024 10:24:10 -0800 Subject: [PATCH 3/3] Fix line break --- .github/workflows/crashlytics.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/crashlytics.yml b/.github/workflows/crashlytics.yml index aaf97acbbfe..ad4f618f40e 100644 --- a/.github/workflows/crashlytics.yml +++ b/.github/workflows/crashlytics.yml @@ -47,8 +47,7 @@ jobs: max_attempts: 3 retry_on: error retry_wait_seconds: 120 - command: scripts/pod_lib_lint.rb FirebaseCrashlytics.podspec --platforms=${{ matrix.target }} \ - ${{ matrix.tests }} + command: scripts/pod_lib_lint.rb FirebaseCrashlytics.podspec --platforms=${{ matrix.target }} ${{ matrix.tests }} spm: # Don't run on private repo unless it is a PR.