Skip to content

Commit 8d8078d

Browse files
committed
Merge remote-tracking branch 'origin-public/main' into bson3
2 parents a33a387 + f5f8fa5 commit 8d8078d

File tree

407 files changed

+8365
-6701
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

407 files changed

+8365
-6701
lines changed

.gemini/config.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
have_fun: false
2+
code_review:
3+
disable: false
4+
comment_severity_threshold: LOW
5+
max_review_comments: -1
6+
pull_request_opened:
7+
help: true
8+
summary: false
9+
code_review: true

.github/actions/notices_generation/Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ GEM
8383
mutex_m
8484
i18n (1.14.7)
8585
concurrent-ruby (~> 1.0)
86-
json (2.10.1)
86+
json (2.10.2)
8787
logger (1.6.6)
8888
minitest (5.25.4)
8989
molinillo (0.8.0)

.github/actions/notices_generation/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ outputs:
2626
runs:
2727
using: 'composite'
2828
steps:
29-
- uses: ruby/setup-ruby@v1
29+
- uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
3030
with:
3131
ruby-version: "2.7"
3232
- name: Generate a NOTICES file

.github/actions/testing_report_generation/app.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,10 @@ def get_workflows(client, repo_name)
107107
end
108108

109109
workflow_text = "[%s](%s)" % [wf.name, wf.html_url]
110-
runs = client.workflow_runs(REPO_NAME_WITH_OWNER, File.basename(wf.path), :event => "schedule").workflow_runs
110+
# If the below request 404s, it may be because the repo doesn't own that workflow (e.g.
111+
# `dependabot-updates`). In these cases, add the workflow to the `EXCLUDED_WORKFLOWS` env
112+
# var that's set in `.github/workflows/generate_issues.yml`.
113+
runs = client.workflow_runs(REPO_NAME_WITH_OWNER, workflow_file, :event => "schedule").workflow_runs
111114
runs = runs.sort_by { |run| -run.created_at.to_i }
112115
latest_run = runs[0]
113116
if latest_run.nil?

.github/workflows/abtesting.yml

Lines changed: 27 additions & 106 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: abtesting
22

33
on:
4+
workflow_dispatch:
45
pull_request:
56
paths:
67
- 'FirebaseABTesting**'
@@ -16,18 +17,26 @@ concurrency:
1617
cancel-in-progress: true
1718

1819
jobs:
20+
spm:
21+
uses: ./.github/workflows/common.yml
22+
with:
23+
target: ABTestingUnit
24+
25+
catalyst:
26+
uses: ./.github/workflows/common_catalyst.yml
27+
with:
28+
product: FirebaseABTesting
29+
target: FirebaseABTesting-Unit-unit
30+
1931
pod-lib-lint:
2032
# Don't run on private repo unless it is a PR.
2133
if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
2234

2335
strategy:
2436
matrix:
2537
include:
26-
- os: macos-13
27-
xcode: Xcode_15.2
28-
target: ios
2938
- os: macos-14
30-
xcode: Xcode_15.4
39+
xcode: Xcode_16.2
3140
target: ios
3241
- os: macos-15
3342
xcode: Xcode_16.2
@@ -44,124 +53,32 @@ jobs:
4453
runs-on: ${{ matrix.os }}
4554
steps:
4655
- uses: actions/checkout@v4
47-
- uses: ruby/setup-ruby@v1
56+
- uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
4857
- name: Setup Bundler
4958
run: scripts/setup_bundler.sh
5059
- name: Xcode
5160
run: sudo xcode-select -s /Applications/${{ matrix.xcode }}.app/Contents/Developer
52-
- uses: nick-fields/retry@v3
61+
- uses: nick-fields/retry@ce71cc2ab81d554ebbe88c79ab5975992d79ba08 # v3
5362
with:
5463
timeout_minutes: 120
5564
max_attempts: 3
5665
retry_on: error
5766
retry_wait_seconds: 120
5867
command: scripts/pod_lib_lint.rb FirebaseABTesting.podspec --platforms=${{ matrix.target }}
5968

60-
spm-package-resolved:
61-
env:
62-
FIREBASECI_USE_LATEST_GOOGLEAPPMEASUREMENT: 1
63-
runs-on: macos-14
64-
outputs:
65-
cache_key: ${{ steps.generate_cache_key.outputs.cache_key }}
66-
steps:
67-
- uses: actions/checkout@v4
68-
- name: Generate Swift Package.resolved
69-
id: swift_package_resolve
70-
run: |
71-
swift package resolve
72-
- name: Generate cache key
73-
id: generate_cache_key
74-
run: |
75-
cache_key="${{ runner.os }}-spm-${{ hashFiles('**/Package.resolved') }}"
76-
echo "cache_key=${cache_key}" >> "$GITHUB_OUTPUT"
77-
- uses: actions/cache/save@v4
78-
id: cache
79-
with:
80-
path: .build
81-
key: ${{ steps.generate_cache_key.outputs.cache_key }}
82-
83-
spm:
84-
# Don't run on private repo unless it is a PR.
85-
if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
86-
needs: [spm-package-resolved]
87-
strategy:
88-
matrix:
89-
include:
90-
- os: macos-13
91-
xcode: Xcode_15.2
92-
target: iOS
93-
- os: macos-14
94-
xcode: Xcode_15.4
95-
target: iOS
96-
- os: macos-15
97-
xcode: Xcode_16.2
98-
target: iOS
99-
- os: macos-15
100-
xcode: Xcode_16.2
101-
target: tvOS
102-
- os: macos-15
103-
xcode: Xcode_16.2
104-
target: macOS
105-
- os: macos-15
106-
xcode: Xcode_16.2
107-
target: watchOS
108-
- os: macos-15
109-
xcode: Xcode_16.2
110-
target: catalyst
111-
- os: macos-15
112-
xcode: Xcode_16.2
113-
target: visionOS
114-
runs-on: ${{ matrix.os }}
115-
steps:
116-
- uses: actions/checkout@v4
117-
- uses: actions/cache/restore@v4
118-
with:
119-
path: .build
120-
key: ${{needs.spm-package-resolved.outputs.cache_key}}
121-
- name: Xcode
122-
run: sudo xcode-select -s /Applications/${{ matrix.xcode }}.app/Contents/Developer
123-
- name: Initialize xcodebuild
124-
run: scripts/setup_spm_tests.sh
125-
- uses: nick-fields/retry@v3
126-
with:
127-
timeout_minutes: 120
128-
max_attempts: 3
129-
retry_on: error
130-
retry_wait_seconds: 120
131-
command: scripts/build.sh ABTestingUnit ${{ matrix.target }} spm
132-
133-
catalyst:
134-
# Don't run on private repo unless it is a PR.
135-
if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
136-
137-
runs-on: macos-14
138-
steps:
139-
- uses: actions/checkout@v4
140-
- uses: mikehardy/buildcache-action@c87cea0ccd718971d6cc39e672c4f26815b6c126
141-
with:
142-
cache_key: catalyst${{ matrix.os }}
143-
- uses: ruby/setup-ruby@v1
144-
- name: Setup Bundler
145-
run: scripts/setup_bundler.sh
146-
- uses: nick-fields/retry@v3
147-
with:
148-
timeout_minutes: 120
149-
max_attempts: 3
150-
retry_on: error
151-
retry_wait_seconds: 120
152-
command: scripts/test_catalyst.sh FirebaseABTesting test FirebaseABTesting-Unit-unit
153-
15469
quickstart:
15570
# Don't run on private repo unless it is a PR.
15671
if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
15772

15873
env:
15974
plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
16075
signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
161-
runs-on: macos-14
76+
runs-on: macos-15
16277
steps:
16378
- uses: actions/checkout@v4
164-
- uses: ruby/setup-ruby@v1
79+
- uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
80+
- name: Xcode
81+
run: sudo xcode-select -s /Applications/Xcode_16.2.app/Contents/Developer
16582
- name: Setup quickstart
16683
env:
16784
LEGACY: true
@@ -181,10 +98,10 @@ jobs:
18198
env:
18299
plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
183100
signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
184-
runs-on: macos-14
101+
runs-on: macos-15
185102
steps:
186103
- uses: actions/checkout@v4
187-
- uses: ruby/setup-ruby@v1
104+
- uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
188105
- uses: actions/setup-python@v5
189106
with:
190107
python-version: '3.11'
@@ -195,6 +112,8 @@ jobs:
195112
- name: Install Secret GoogleService-Info.plist
196113
run: scripts/decrypt_gha_secret.sh scripts/gha-encrypted/qs-abtesting.plist.gpg \
197114
quickstart-ios/abtesting/GoogleService-Info.plist "$plist_secret"
115+
- name: Xcode
116+
run: sudo xcode-select -s /Applications/Xcode_16.2.app/Contents/Developer
198117
- name: Build swift quickstart
199118
env:
200119
LEGACY: true
@@ -210,7 +129,7 @@ jobs:
210129
# Don't run on private repo.
211130
if: github.event_name == 'schedule' && github.repository == 'Firebase/firebase-ios-sdk'
212131

213-
runs-on: macos-14
132+
runs-on: macos-15
214133
strategy:
215134
matrix:
216135
target: [ios, tvos, macos]
@@ -220,9 +139,11 @@ jobs:
220139
needs: pod-lib-lint
221140
steps:
222141
- uses: actions/checkout@v4
223-
- uses: ruby/setup-ruby@v1
142+
- uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
224143
- name: Setup Bundler
225144
run: scripts/setup_bundler.sh
145+
- name: Xcode
146+
run: sudo xcode-select -s /Applications/Xcode_16.2.app/Contents/Developer
226147
- name: PodLibLint ABTesting Cron
227148
run: |
228149
scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb \

.github/workflows/analytics.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: analytics
22

33
on:
4+
workflow_dispatch:
45
pull_request:
56
paths:
67
- 'FirebaseAnalytics**'
@@ -23,17 +24,17 @@ jobs:
2324
strategy:
2425
matrix:
2526
target: [ios, tvos, macos]
26-
os: [macos-14, macos-13]
27+
os: [macos-14, macos-15]
2728
include:
2829
- os: macos-14
29-
xcode: Xcode_15.3
30-
- os: macos-13
31-
xcode: Xcode_15.2
30+
xcode: Xcode_16.2
31+
- os: macos-15
32+
xcode: Xcode_16.3
3233
runs-on: ${{ matrix.os }}
3334

3435
steps:
3536
- uses: actions/checkout@v4
36-
- uses: ruby/setup-ruby@v1
37+
- uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
3738
- name: Setup Bundler
3839
run: scripts/setup_bundler.sh
3940
- name: Xcode

.github/workflows/api_diff_report.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: API Diff Report
22

3-
on: [pull_request]
3+
on: [pull_request, workflow_dispatch]
44

55
concurrency:
66
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.head_ref || github.ref }}

0 commit comments

Comments
 (0)