Repository navigation
Run connected tests on a mac-metal emulator #1121
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
Merged
mokagio
merged 10 commits into
trunk
from
ainfra-3575-does-aztec-android-need-firebase-secrets-mac-metal
Nov 3, 2026
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
a43d91e
Run connected tests on a `mac-metal` emulator
mokagio e551c1b
Remove the unused Firebase secret setup
mokagio def8762
Stop requesting storage permission on modern APIs
mokagio 1cabe41
Build connected test APKs on the `android` queue
mokagio cce5225
Reduce Marathon's overhead on `mac-metal`
mokagio 491f085
Revert to plain Gradle on `mac-metal`
mokagio 868d5bf
Keep ignoring `firebase.secrets.json`
mokagio 0052c31
Mark `firebase.secrets.json` rule as legacy
mokagio e1617f0
Add timeout
mokagio 230ace5
Upload emulator logs from connected tests
mokagio 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 |
|---|---|---|
| @@ -1,21 +1,12 @@ | ||
| #!/bin/bash | ||
| #!/usr/bin/env bash | ||
|
|
||
| set -euo pipefail | ||
|
|
||
| echo "--- :closed_lock_with_key: Installing Secrets" | ||
| ./gradlew applyConfiguration | ||
| echo "--- :robot_face: Starting Android emulator" | ||
| start-android-emulator \ | ||
| --system-image "system-images;android-34;google_apis;arm64-v8a" \ | ||
| --device "pixel_5" \ | ||
| --logs-dir "build/emulator-logs" | ||
|
|
||
| echo -e "\n--- :gcloud: Logging into Google Cloud" | ||
| gcloud auth activate-service-account --key-file .configure-files/firebase.secrets.json | ||
|
|
||
| echo -e "\n--- :hammer_and_wrench: Building Tests" | ||
| ./gradlew --stacktrace app:assembleDebug app:assembleDebugAndroidTest | ||
|
|
||
| echo -e "\n--- :firebase: Run Tests" | ||
| gcloud firebase test android run \ | ||
| --project api-project-108380595987 \ | ||
| --type instrumentation \ | ||
| --app app/build/outputs/apk/debug/app-debug.apk \ | ||
| --test app/build/outputs/apk/androidTest/debug/app-debug-androidTest.apk \ | ||
| --device model=Nexus5X,version=26,locale=en,orientation=portrait \ | ||
| --verbosity info | ||
| echo "--- :android: Running connected tests" | ||
| ./gradlew --stacktrace :app:connectedDebugAndroidTest |
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 was deleted.
Oops, something went wrong.
Binary file not shown.
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
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.
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.