Skip to content

Commit

Permalink
Disable quickstart CI that doesn't work with Xcode 15 (#12846)
Browse files Browse the repository at this point in the history
  • Loading branch information
paulb777 authored Apr 24, 2024
1 parent 88c47ba commit 3e34931
Show file tree
Hide file tree
Showing 4 changed files with 144 additions and 142 deletions.
119 changes: 60 additions & 59 deletions .github/workflows/functions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,68 +110,69 @@ jobs:
- name: Unit Tests
run: scripts/third_party/travis/retry.sh ./scripts/build.sh FirebaseFunctionsUnit ${{ matrix.target }} spm

quickstart:
# Don't run on private repo unless it is a PR.
if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
env:
plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
LEGACY: true
# TODO: Move to macos-14 and Xcode 15. The legacy quickstart uses material which doesn't build on Xcode 15.
runs-on: macos-12
# TODO: Move to macos-14 and Xcode 15. The legacy quickstart uses material which doesn't build on Xcode 15.
# quickstart:
# # Don't run on private repo unless it is a PR.
# if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
# env:
# plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
# signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
# LEGACY: true
# # TODO: Move to macos-14 and Xcode 15. The legacy quickstart uses material which doesn't build on Xcode 15.
# runs-on: macos-12

steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
- name: Setup quickstart
run: scripts/setup_quickstart.sh functions
- name: install secret googleservice-info.plist
run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-functions.plist.gpg \
quickstart-ios/functions/GoogleService-Info.plist "$plist_secret"
- name: Setup custom URL scheme
run: sed -i '' 's/REVERSED_CLIENT_ID/com.googleusercontent.apps.1025801074639-6p6ebi8amuklcjrto20gvpe295smm8u6/' quickstart-ios/functions/LegacyFunctionsQuickstart/FunctionsExample/Info.plist
- name: Test objc quickstart
run: ([ -z $plist_secret ] ||
scripts/third_party/travis/retry.sh scripts/test_quickstart.sh Functions true)
- name: Test swift quickstart
run: ([ -z $plist_secret ] ||
scripts/third_party/travis/retry.sh scripts/test_quickstart.sh Functions true swift)
# steps:
# - uses: actions/checkout@v4
# - uses: ruby/setup-ruby@v1
# - name: Setup quickstart
# run: scripts/setup_quickstart.sh functions
# - name: install secret googleservice-info.plist
# run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-functions.plist.gpg \
# quickstart-ios/functions/GoogleService-Info.plist "$plist_secret"
# - name: Setup custom URL scheme
# run: sed -i '' 's/REVERSED_CLIENT_ID/com.googleusercontent.apps.1025801074639-6p6ebi8amuklcjrto20gvpe295smm8u6/' quickstart-ios/functions/LegacyFunctionsQuickstart/FunctionsExample/Info.plist
# - name: Test objc quickstart
# run: ([ -z $plist_secret ] ||
# scripts/third_party/travis/retry.sh scripts/test_quickstart.sh Functions true)
# - name: Test swift quickstart
# run: ([ -z $plist_secret ] ||
# scripts/third_party/travis/retry.sh scripts/test_quickstart.sh Functions true swift)

quickstart-ftl-cron-only:
# Don't run on private repo
if: github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule'
env:
plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
LEGACY: true
# TODO: Move to macos-14 and Xcode 15. The legacy quickstart uses material which doesn't build on Xcode 15.
runs-on: macos-12
# quickstart-ftl-cron-only:
# # Don't run on private repo
# if: github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule'
# env:
# plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
# signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
# LEGACY: true
# # TODO: Move to macos-14 and Xcode 15. The legacy quickstart uses material which doesn't build on Xcode 15.
# runs-on: macos-12

steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
- uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Setup quickstart
run: scripts/setup_quickstart.sh functions
- name: install secret googleservice-info.plist
run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-functions.plist.gpg \
quickstart-ios/functions/GoogleService-Info.plist "$plist_secret"
- name: Setup custom URL scheme
run: sed -i '' 's/REVERSED_CLIENT_ID/com.googleusercontent.apps.1025801074639-6p6ebi8amuklcjrto20gvpe295smm8u6/' quickstart-ios/functions/LegacyFunctionsQuickstart/FunctionsExample/Info.plist
- name: Build objc quickstart
run: ([ -z $plist_secret ] ||
scripts/third_party/travis/retry.sh scripts/test_quickstart_ftl.sh Functions)
- name: Build swift quickstart
run: ([ -z $plist_secret ] ||
scripts/third_party/travis/retry.sh scripts/test_quickstart_ftl.sh Functions swift)
- id: ftl_test
uses: FirebaseExtended/github-actions/firebase-test-lab@v1.4
with:
credentials_json: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_CREDENTIALS }}
testapp_dir: quickstart-ios/build-for-testing
test_type: "xctest"
# steps:
# - uses: actions/checkout@v4
# - uses: ruby/setup-ruby@v1
# - uses: actions/setup-python@v4
# with:
# python-version: '3.11'
# - name: Setup quickstart
# run: scripts/setup_quickstart.sh functions
# - name: install secret googleservice-info.plist
# run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-functions.plist.gpg \
# quickstart-ios/functions/GoogleService-Info.plist "$plist_secret"
# - name: Setup custom URL scheme
# run: sed -i '' 's/REVERSED_CLIENT_ID/com.googleusercontent.apps.1025801074639-6p6ebi8amuklcjrto20gvpe295smm8u6/' quickstart-ios/functions/LegacyFunctionsQuickstart/FunctionsExample/Info.plist
# - name: Build objc quickstart
# run: ([ -z $plist_secret ] ||
# scripts/third_party/travis/retry.sh scripts/test_quickstart_ftl.sh Functions)
# - name: Build swift quickstart
# run: ([ -z $plist_secret ] ||
# scripts/third_party/travis/retry.sh scripts/test_quickstart_ftl.sh Functions swift)
# - id: ftl_test
# uses: FirebaseExtended/github-actions/firebase-test-lab@v1.4
# with:
# credentials_json: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_CREDENTIALS }}
# testapp_dir: quickstart-ios/build-for-testing
# test_type: "xctest"

functions-cron-only:
# Don't run on private repo.
Expand Down
81 changes: 41 additions & 40 deletions .github/workflows/prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -434,47 +434,48 @@ jobs:
name: quickstart_artifacts_firestore
path: quickstart-ios/

functions_quickstart:
# TODO: The functions quickstart uses Material which isn't supported by Xcode 15
#functions_quickstart:
# Don't run on private repo unless it is a PR.
if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'workflow_dispatch'
needs: buildup_SpecsTesting_repo
env:
plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
bot_token_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
testing_repo_dir: "/tmp/test/"
testing_repo: "firebase-ios-sdk"
LEGACY: true
# TODO: The functions quickstart uses Material which isn't supported by Xcode 15
runs-on: macos-12
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
- name: Get token
run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/bot-access.txt.gpg \
bot-access.txt "$bot_token_secret"
- name: Setup testing repo and quickstart
run: |
botaccess=`cat bot-access.txt`
BOT_TOKEN="${botaccess}" scripts/setup_quickstart.sh functions prerelease_testing
- name: install secret googleservice-info.plist
run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-functions.plist.gpg \
quickstart-ios/functions/GoogleService-Info.plist "$plist_secret"
- name: Setup custom URL scheme
run: sed -i '' 's/REVERSED_CLIENT_ID/com.googleusercontent.apps.1025801074639-6p6ebi8amuklcjrto20gvpe295smm8u6/' quickstart-ios/functions/LegacyFunctionsQuickstart/FunctionsExample/Info.plist
- name: Test objc quickstart
run: ([ -z $plist_secret ] ||
scripts/third_party/travis/retry.sh scripts/test_quickstart.sh Functions true)
- name: Test swift quickstart
run: ([ -z $plist_secret ] ||
scripts/third_party/travis/retry.sh scripts/test_quickstart.sh Functions true swift)
- name: Remove data before upload
run: scripts/remove_data.sh functions release_testing
- uses: actions/upload-artifact@v4
if: ${{ failure() }}
with:
name: quickstart_artifacts_functions
path: quickstart-ios/
# if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'workflow_dispatch'
# needs: buildup_SpecsTesting_repo
# env:
# plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
# signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
# bot_token_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
# testing_repo_dir: "/tmp/test/"
# testing_repo: "firebase-ios-sdk"
# LEGACY: true
# # TODO: The functions quickstart uses Material which isn't supported by Xcode 15
# runs-on: macos-12
# steps:
# - uses: actions/checkout@v4
# - uses: ruby/setup-ruby@v1
# - name: Get token
# run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/bot-access.txt.gpg \
# bot-access.txt "$bot_token_secret"
# - name: Setup testing repo and quickstart
# run: |
# botaccess=`cat bot-access.txt`
# BOT_TOKEN="${botaccess}" scripts/setup_quickstart.sh functions prerelease_testing
# - name: install secret googleservice-info.plist
# run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-functions.plist.gpg \
# quickstart-ios/functions/GoogleService-Info.plist "$plist_secret"
# - name: Setup custom URL scheme
# run: sed -i '' 's/REVERSED_CLIENT_ID/com.googleusercontent.apps.1025801074639-6p6ebi8amuklcjrto20gvpe295smm8u6/' quickstart-ios/functions/LegacyFunctionsQuickstart/FunctionsExample/Info.plist
# - name: Test objc quickstart
# run: ([ -z $plist_secret ] ||
# scripts/third_party/travis/retry.sh scripts/test_quickstart.sh Functions true)
# - name: Test swift quickstart
# run: ([ -z $plist_secret ] ||
# scripts/third_party/travis/retry.sh scripts/test_quickstart.sh Functions true swift)
# - name: Remove data before upload
# run: scripts/remove_data.sh functions release_testing
# - uses: actions/upload-artifact@v4
# if: ${{ failure() }}
# with:
# name: quickstart_artifacts_functions
# path: quickstart-ios/

inappmessaging_quickstart:
# Don't run on private repo unless it is a PR.
Expand Down
82 changes: 41 additions & 41 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -385,47 +385,47 @@ jobs:
name: quickstart_artifacts_firestore
path: quickstart-ios/

functions_quickstart:
# Don't run on private repo unless it is a PR.
if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
needs: buildup_SpecsTesting_repo
env:
plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
bot_token_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
testing_repo_dir: "/tmp/test/"
testing_repo: "firebase-ios-sdk"
LEGACY: true
# TODO: The functions quickstart uses Material which isn't supported by Xcode 15
runs-on: macos-12
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
- name: Get token
run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/bot-access.txt.gpg \
bot-access.txt "$bot_token_secret"
- name: Setup testing repo and quickstart
run: |
botaccess=`cat bot-access.txt`
BOT_TOKEN="${botaccess}" scripts/setup_quickstart.sh functions nightly_release_testing
- name: install secret googleservice-info.plist
run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-functions.plist.gpg \
quickstart-ios/functions/GoogleService-Info.plist "$plist_secret"
- name: Setup custom URL scheme
run: sed -i '' 's/REVERSED_CLIENT_ID/com.googleusercontent.apps.1025801074639-6p6ebi8amuklcjrto20gvpe295smm8u6/' quickstart-ios/functions/LegacyFunctionsQuickstart/FunctionsExample/Info.plist
- name: Test objc quickstart
run: ([ -z $plist_secret ] ||
scripts/third_party/travis/retry.sh scripts/test_quickstart.sh Functions true)
- name: Test swift quickstart
run: ([ -z $plist_secret ] ||
scripts/third_party/travis/retry.sh scripts/test_quickstart.sh Functions true swift)
- name: Remove data before upload
run: scripts/remove_data.sh functions release_testing
- uses: actions/upload-artifact@v4
if: ${{ failure() }}
with:
name: quickstart_artifacts_functions
path: quickstart-ios/
# TODO: The functions quickstart uses Material which isn't supported by Xcode 15
# functions_quickstart:
# # Don't run on private repo unless it is a PR.
# if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
# needs: buildup_SpecsTesting_repo
# env:
# plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
# signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
# bot_token_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
# testing_repo_dir: "/tmp/test/"
# testing_repo: "firebase-ios-sdk"
# LEGACY: true
# runs-on: macos-12
# steps:
# - uses: actions/checkout@v4
# - uses: ruby/setup-ruby@v1
# - name: Get token
# run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/bot-access.txt.gpg \
# bot-access.txt "$bot_token_secret"
# - name: Setup testing repo and quickstart
# run: |
# botaccess=`cat bot-access.txt`
# BOT_TOKEN="${botaccess}" scripts/setup_quickstart.sh functions nightly_release_testing
# - name: install secret googleservice-info.plist
# run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-functions.plist.gpg \
# quickstart-ios/functions/GoogleService-Info.plist "$plist_secret"
# - name: Setup custom URL scheme
# run: sed -i '' 's/REVERSED_CLIENT_ID/com.googleusercontent.apps.1025801074639-6p6ebi8amuklcjrto20gvpe295smm8u6/' quickstart-ios/functions/LegacyFunctionsQuickstart/FunctionsExample/Info.plist
# - name: Test objc quickstart
# run: ([ -z $plist_secret ] ||
# scripts/third_party/travis/retry.sh scripts/test_quickstart.sh Functions true)
# - name: Test swift quickstart
# run: ([ -z $plist_secret ] ||
# scripts/third_party/travis/retry.sh scripts/test_quickstart.sh Functions true swift)
# - name: Remove data before upload
# run: scripts/remove_data.sh functions release_testing
# - uses: actions/upload-artifact@v4
# if: ${{ failure() }}
# with:
# name: quickstart_artifacts_functions
# path: quickstart-ios/

inappmessaging_quickstart:
# Don't run on private repo unless it is a PR.
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/storage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ jobs:
strategy:
matrix:
include:
- os: macos-13
xcode: Xcode_14.2 # TODO: the legacy ObjC quickstart doesn't build with Xcode 15.
#- os: macos-13
# xcode: Xcode_14.2 # TODO: the legacy ObjC quickstart doesn't build with Xcode 15.
- swift: swift
os: macos-14
xcode: Xcode_15.3
Expand Down

0 comments on commit 3e34931

Please sign in to comment.