Repository navigation
Experiment: Firebase 13.1.1 native delivery through XBD #256
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
AdamEssenmacher
wants to merge
9
commits into
main
Choose a base branch
from
codex/firebase13-xbd
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
89bfbee
Experiment with Firebase 13.1.1 native delivery through stock XBD
AdamEssenmacher 4a4ed8f
Preserve upstream Firebase archive fixtures verbatim
AdamEssenmacher ccb1414
Run read-only native validation on the Firebase XBD draft PR
AdamEssenmacher f648880
Fix experimental CI without revising the unchanged Sign-In package
AdamEssenmacher f4f2807
Honor the CI simulator and preserve expression-typed Firestore stage …
AdamEssenmacher 81fb32b
Address Firebase XBD review findings and track legacy producer cutover
AdamEssenmacher e22c219
Run Linux audit tests without Apple workload resolution
AdamEssenmacher 7a3ffac
Preserve non-Firebase production with an isolated locked legacy baseline
AdamEssenmacher 8b7b50c
Document stock XBD checksum limits for Firebase 13
AdamEssenmacher File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| # Preserve byte-for-byte upstream files checked against the official archive. | ||
| source/Firebase/native/UPSTREAM-NOTICES.txt -text whitespace=-trailing-space | ||
| tests/fixtures/firebase13/13.1.1/METADATA.md -text whitespace=-trailing-space |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,186 @@ | ||
| name: Firebase 13 XBD experiment | ||
|
|
||
| on: | ||
| pull_request: | ||
| paths: | ||
| - 'source/Firebase/**' | ||
| - 'source/Google/**' | ||
| - 'tools/firebase13/**' | ||
| - 'tools/legacy/**' | ||
| - 'tests/legacy-producer/**' | ||
| - 'tests/fixtures/legacy-producer/**' | ||
| - 'legacy.cake' | ||
| - 'legacy_production.cake' | ||
| - 'eng/legacy-producer.json' | ||
| - 'signin_publish.cake' | ||
| - '.github/workflows/firebase-release.yml' | ||
| - 'tests/firebase13/**' | ||
| - 'tests/fixtures/firebase13/**' | ||
| - 'firebase13.cake' | ||
| - 'firebase13_common.cake' | ||
| - 'common.cake' | ||
| - 'poco.cake' | ||
| - '.config/dotnet-tools.json' | ||
| - 'docs/Firebase/NuGet/**' | ||
| - 'docs/Google/NuGet/**' | ||
| - 'build.cake' | ||
| - 'components.cake' | ||
| - 'firebase_release.cake' | ||
| - 'global.json' | ||
| - 'Directory.Build.props' | ||
| - 'source/AssemblyInfo.cs' | ||
| - 'scripts/FirebaseBindingAudit/**' | ||
| - 'scripts/FirebaseBindingAudit.Tests/**' | ||
| - 'scripts/firebase-binding-audit*.json' | ||
| - 'tests/crashlytics/**' | ||
| - 'tools/e2e/select-simulator.sh' | ||
| - '.github/workflows/firebase13-xbd.yml' | ||
| workflow_dispatch: | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| concurrency: | ||
| group: firebase13-xbd-${{ github.ref }} | ||
| cancel-in-progress: true | ||
|
|
||
| jobs: | ||
| schema: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v5 | ||
| - uses: actions/setup-dotnet@v5 | ||
| with: | ||
| global-json-file: global.json | ||
| - run: python3 -m unittest discover -s tests/firebase13 -v | ||
| - run: python3 tools/firebase13/native.py native-assets-validate | ||
| - name: Locked legacy producer and published-fingerprint regressions | ||
| run: python3 -m unittest discover -s tests/legacy-producer -v | ||
| - name: Binding audit and fingerprint regression tests | ||
| env: | ||
| MSBuildEnableWorkloadResolver: false | ||
| run: dotnet test scripts/FirebaseBindingAudit.Tests | ||
| - name: Crashlytics upload integrity and stock XBD ZIP cache tests | ||
| run: python3 -m unittest discover -s tests/crashlytics -v | ||
|
|
||
| native: | ||
| # Trusted same-repository PRs validate the full experiment, including follow-up branches. | ||
| # Fork pull requests cannot schedule code on the self-hosted runner. | ||
| if: >- | ||
| github.event_name == 'workflow_dispatch' || | ||
| (github.event_name == 'pull_request' && | ||
| github.event.pull_request.head.repo.full_name == github.repository) | ||
| needs: schema | ||
| runs-on: [self-hosted, macOS, ARM64, xcode-27.1] | ||
| timeout-minutes: 180 | ||
| env: | ||
| E2E_SIMULATOR_NAME: GoogleApisCI-iPhone | ||
| steps: | ||
| - uses: actions/checkout@v5 | ||
| - run: tools/ci/select-xcode.sh '27.1' | ||
| - uses: actions/setup-dotnet@v5 | ||
| with: | ||
| global-json-file: global.json | ||
| - name: Install a failing pod sentinel | ||
| run: | | ||
| mkdir -p "$RUNNER_TEMP/firebase13-tools" | ||
| cat > "$RUNNER_TEMP/firebase13-tools/pod" <<'EOF' | ||
| #!/bin/sh | ||
| echo 'Unexpected CocoaPods invocation' >&2 | ||
| exit 97 | ||
| EOF | ||
| chmod +x "$RUNNER_TEMP/firebase13-tools/pod" | ||
| echo "$RUNNER_TEMP/firebase13-tools" >> "$GITHUB_PATH" | ||
| - name: Acquire, validate and pack exact Firebase closure | ||
| run: python3 tools/firebase13/native.py nuget | ||
| - name: Audit all Firebase Objective-C bindings | ||
| run: | | ||
| dotnet tool install Sharpie.Bind.Tool --version 26.3.0.11 --tool-path "$RUNNER_TEMP/firebase13-sharpie" | ||
| python3 tools/firebase13/audit.py --cache "$HOME/Library/Caches/XamarinBuildDownload" --sharpie-path "$RUNNER_TEMP/firebase13-sharpie/sharpie" | ||
| - name: Verify actual native binding registrations | ||
| run: python3 tools/firebase13/check_symbols.py --cache "$HOME/Library/Caches/XamarinBuildDownload" | ||
| - name: Core cold-cache and offline matrix | ||
| run: python3 tools/firebase13/consumers.py --scope core | ||
| - name: Combined Analytics Auth Firestore cold-cache and offline matrix | ||
| run: python3 tools/firebase13/consumers.py --scope combined | ||
| - name: Analytics without advertising-ID support | ||
| run: python3 tools/firebase13/consumers.py --scope combined --without-ad-id --quick | ||
| - name: All Firebase products cold-cache and offline matrix | ||
| run: python3 tools/firebase13/consumers.py --scope all | ||
| - uses: actions/upload-artifact@v7 | ||
| if: always() | ||
| with: | ||
| name: firebase13-xbd-experimental-validation | ||
| path: | | ||
| output/firebase13/*.nupkg | ||
| output/firebase13-results/* | ||
| output/firebase13-api-audit/** | ||
| retention-days: 14 | ||
|
|
||
| legacy-signin: | ||
| # This validates package production/consumption only; it cannot publish or approve deployment. | ||
| if: >- | ||
| github.event_name == 'workflow_dispatch' || | ||
| (github.event_name == 'pull_request' && | ||
| github.event.pull_request.head.repo.full_name == github.repository) | ||
| needs: schema | ||
| runs-on: [self-hosted, macOS, ARM64, xcode-27.1] | ||
| timeout-minutes: 180 | ||
| permissions: | ||
| contents: read | ||
| packages: read | ||
| env: | ||
| BUILD_COMMIT: ${{ github.sha }} | ||
| BUILD_NUMBER: ${{ github.run_number }} | ||
| E2E_SIMULATOR_NAME: GoogleApisCI-iPhone | ||
| GH_TOKEN: ${{ github.token }} | ||
| steps: | ||
| - uses: actions/checkout@v5 | ||
| with: | ||
| fetch-depth: 0 | ||
| - run: tools/ci/select-xcode.sh '27.1' | ||
| - uses: actions/setup-dotnet@v5 | ||
| with: | ||
| global-json-file: global.json | ||
| - run: dotnet tool restore | ||
| - name: Install pinned legacy CocoaPods runtime | ||
| run: | | ||
| pin=$(python3 -c 'import json; print(json.load(open("eng/signin-release.json"))["nativeBuild"]["cocoapods"])') | ||
| export GEM_HOME="$RUNNER_TEMP/legacy-cocoapods-$pin" | ||
| gem install cocoapods --version "$pin" --no-document | ||
| echo "GEM_HOME=$GEM_HOME" >> "$GITHUB_ENV" | ||
| echo "$GEM_HOME/bin" >> "$GITHUB_PATH" | ||
| - name: Export unchanged Sign-In baseline and plan validation | ||
| run: | | ||
| dotnet tool run dotnet-cake -- signin_publish.cake | ||
| dotnet tool run dotnet-cake -- --target=firebase-publish-metadata --producer=legacy | ||
| python3 scripts/firebase-release/release.py --channel signin plan --manual --online | ||
| - name: Original Sign-In production command | ||
| run: dotnet tool run dotnet-cake -- --target=nuget --names=Google.SignIn | ||
| - name: Inspect packed native delivery and exact CocoaPods resolution | ||
| run: | | ||
| python3 scripts/firebase-release/release.py --channel signin prepare --online | ||
| python3 scripts/signin-release/validate.py | ||
| - name: Standalone and transitive offline consumers | ||
| run: python3 scripts/signin-release/consumers.py | ||
| - name: Acquire matching Firebase 12 integration fixtures | ||
| id: fixtures | ||
| run: python3 scripts/signin-release/integration_feed.py --fetch-published | ||
| - name: Produce missing fixtures with the isolated legacy baseline | ||
| if: steps.fixtures.outputs.source != 'published' | ||
| run: dotnet tool run dotnet-cake -- --target=nuget --names=Firebase.Auth,Firebase.Analytics,Firebase.CloudFirestore --producer=legacy | ||
| - name: Combined Sign-In and Firebase 12 offline consumers | ||
| run: | | ||
| python3 scripts/signin-release/integration_feed.py | ||
| python3 scripts/signin-release/consumers.py --feed output/signin-combined --combined | ||
| - uses: actions/upload-artifact@v7 | ||
| if: always() | ||
| with: | ||
| name: firebase13-legacy-signin-validation | ||
| path: | | ||
| output/signin-candidate | ||
| output/signin-resolution | ||
| output/signin-results | ||
| output/signin-plan.json | ||
| output/signin-metadata.json | ||
| retention-days: 14 | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.