Skip to content
Open
Changes from 1 commit
Commits
Show all changes
96 commits
Select commit Hold shift + click to select a range
a75fa8b
e2e-env-action
jake-perkins Jul 9, 2025
ab67bec
add more deps
jake-perkins Jul 9, 2025
22a7b88
fix cursor bug
jake-perkins Jul 9, 2025
610d928
new action shas
jake-perkins Jul 10, 2025
6ebb0f3
yarn install
jake-perkins Jul 10, 2025
f6e583d
yarn cache
jake-perkins Jul 10, 2025
e4322a4
cache act
jake-perkins Jul 10, 2025
4a81330
fix sim device
jake-perkins Jul 10, 2025
bc2f52f
bundler-cache
jake-perkins Jul 10, 2025
27eed96
try yarn.lock perf fix
jake-perkins Jul 11, 2025
c9e4d1e
cocoapods caching
jake-perkins Jul 11, 2025
f5c4f53
android tuning
jake-perkins Jul 11, 2025
860c7d4
tuning
jake-perkins Jul 11, 2025
4898cab
license-accepts
jake-perkins Jul 11, 2025
8b76ea8
foundry agnostic
jake-perkins Jul 11, 2025
f1008f7
setup
jake-perkins Jul 11, 2025
9884d8a
foundry ubuntu-mac-agnostic
jake-perkins Jul 11, 2025
682cafb
act
jake-perkins Jul 11, 2025
6a1ff90
foundry
jake-perkins Jul 11, 2025
38bd065
foundry android
jake-perkins Jul 11, 2025
2f5e2a6
remover chmod
jake-perkins Jul 11, 2025
a3ea5d4
act
jake-perkins Jul 11, 2025
8f3fdcb
act
jake-perkins Jul 11, 2025
c7d9987
act
jake-perkins Jul 11, 2025
90d1bd2
foundry
jake-perkins Jul 11, 2025
bfd20d8
act
jake-perkins Jul 11, 2025
6d49bac
cfgs
jake-perkins Jul 11, 2025
b2e0ef3
ndk setup
jake-perkins Jul 11, 2025
c35dbc6
ndk
jake-perkins Jul 11, 2025
9e75e06
ndk
jake-perkins Jul 11, 2025
dda3178
act
jake-perkins Jul 11, 2025
03cd24b
licenses
jake-perkins Jul 11, 2025
4b4e46f
android tools
jake-perkins Jul 11, 2025
02ff9a9
e2e
jake-perkins Jul 11, 2025
5695370
act
jake-perkins Jul 11, 2025
f399c35
act
jake-perkins Jul 11, 2025
4d87552
upgrade default xcode-version
jake-perkins Jul 11, 2025
929ddaa
e2e
jake-perkins Jul 11, 2025
d9de05d
lint
jake-perkins Jul 11, 2025
18421e8
android-simulator
jake-perkins Jul 11, 2025
93cf96a
android-act
jake-perkins Jul 11, 2025
db78229
fix emu bug
jake-perkins Jul 11, 2025
37051d0
act
jake-perkins Jul 11, 2025
dade476
act
jake-perkins Jul 11, 2025
8529256
emulator bugs
jake-perkins Jul 11, 2025
3b49d84
android-sim
jake-perkins Jul 11, 2025
a4ca242
act
jake-perkins Jul 11, 2025
b1867a9
act
jake-perkins Jul 11, 2025
860e85f
env
jake-perkins Jul 11, 2025
032380e
update android default abi
jake-perkins Jul 11, 2025
eea10a6
act
jake-perkins Jul 11, 2025
1366275
linting
jake-perkins Jul 12, 2025
1a08796
Merge branch 'main' into e2e-env-actions
jake-perkins Jul 12, 2025
367c013
always lay out simulator cfgs
jake-perkins Jul 15, 2025
d7a349b
E2e ubuntu runners (#87)
makemesteaks Jul 16, 2025
4459e30
E2e env actions keystore (#90)
jake-perkins Jul 18, 2025
4ee8ff1
keystore-integrations
jake-perkins Jul 18, 2025
9e04cea
keystores
jake-perkins Jul 18, 2025
aa884d6
keystore
jake-perkins Jul 18, 2025
a4d8ac3
manage node version
jake-perkins Jul 18, 2025
a3cd1cb
Emulator configs (#88)
makemesteaks Jul 18, 2025
b748908
remove cocoapods caching
jake-perkins Jul 18, 2025
8553525
fmt
jake-perkins Jul 18, 2025
8f5b198
self hosted
makemesteaks Jul 29, 2025
a1f7d18
test
makemesteaks Jul 29, 2025
2ead7cb
fail fast
makemesteaks Jul 29, 2025
5b810c9
remove ndk because its already in the runner
makemesteaks Jul 29, 2025
060107e
targets
jake-perkins Aug 4, 2025
d378d7d
fix-act
jake-perkins Aug 5, 2025
b3b5adf
slimmer pipeline
makemesteaks Jul 30, 2025
ef89e45
avd changes
makemesteaks Aug 7, 2025
c35da38
add pod vendor to path
jake-perkins Aug 28, 2025
5a428da
ruby/gem troubleshooting
jake-perkins Aug 28, 2025
4364187
pod verify
jake-perkins Aug 28, 2025
93a7c6e
binstub
jake-perkins Aug 28, 2025
1c024c7
binstub
jake-perkins Aug 28, 2025
9a1f3b3
binstub
jake-perkins Aug 29, 2025
b622c5f
configs
jake-perkins Aug 29, 2025
c526726
supress partition list output
jake-perkins Aug 29, 2025
3447281
ci
jake-perkins Sep 2, 2025
a345f7c
debugging
jake-perkins Sep 2, 2025
b532e7f
keystore debugs
jake-perkins Sep 2, 2025
4f03564
configs
jake-perkins Sep 2, 2025
ed3592d
compare fingerprints
jake-perkins Sep 2, 2025
51c3ae9
default-chain
jake-perkins Sep 2, 2025
4eec245
codesignign config
jake-perkins Sep 2, 2025
e95f53d
test ssl
makemesteaks Sep 3, 2025
6ac80cb
remove debugging
jake-perkins Sep 3, 2025
394f14c
keychain
jake-perkins Sep 3, 2025
5906de6
chore: retries (#122)
makemesteaks Sep 11, 2025
fb91d27
Revert "chore: retries (#122)"
makemesteaks Sep 11, 2025
9e5ee8b
feat(INFRA-2932): add retry to yarn commands self hosted (#126)
bsgrigorov Sep 17, 2025
2f1cdf9
add action to yarn v3 of setup-e2e-env
tommasini Sep 17, 2025
197371d
shell bash added
tommasini Sep 17, 2025
1d567b7
fix setup e2e env var w yarn v3
tommasini Sep 17, 2025
f1d2c36
chore: add retry to corepack step
alucardzom Sep 18, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Emulator configs (#88)
* feat(INFRA-2766): test simulator configs

* feat(INFRA-2766): remove boot

* feat(INFRA-2766): list ios emuls

* feat(INFRA-2766): test

* feat(INFRA-2766): remove boot stuff for commented

* feat(INFRA-2766): add kvm stuff
  • Loading branch information
makemesteaks authored Jul 18, 2025
commit a3cd1cbba80624cee0d0882f1cda0af5a76e7d6b
117 changes: 12 additions & 105 deletions .github/actions/setup-e2e-env/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,6 @@ inputs:
description: 'Whether to setup simulator/emulator'
required: false
default: 'false'
# See https://github.com/actions/runner-images/blob/main/images/macos/macos-14-Readme.md#installed-simulators
ios-device:
description: Name of iOS device to boot (e.g., "iPhone 15")
required: false
default: 'iPhone 15'
bundler-version:
description: 'Bundler version to use (only for iOS)'
required: false
Expand Down Expand Up @@ -214,29 +209,9 @@ runs:
run: brew tap wix/brew && brew install applesimutils
shell: bash

- name: Boot iOS Simulator (if not already booted)
if: ${{ inputs.platform == 'ios' && inputs.setup-simulator == 'true' }}
run: |
echo "Looking for simulator named: ${{ inputs.ios-device }}"

SIMULATOR_LINE=$(xcrun simctl list devices | grep -m1 "${{ inputs.ios-device }}")
if [ -z "$SIMULATOR_LINE" ]; then
echo "No simulator found with name '${{ inputs.ios-device }}'"
exit 1
fi

SIMULATOR_ID=$(echo "$SIMULATOR_LINE" | awk -F '[()]' '{print $2}')
SIMULATOR_STATE=$(echo "$SIMULATOR_LINE" | awk -F '[()]' '{print $(NF-1)}')

echo "Simulator ID: $SIMULATOR_ID"
echo "Simulator State: $SIMULATOR_STATE"

if [ "$SIMULATOR_STATE" = "Booted" ]; then
echo "Simulator is already booted. Skipping boot step."
else
echo "Booting simulator..."
xcrun simctl boot "$SIMULATOR_ID"
fi
- name: Check simutils
if: ${{ inputs.platform == 'ios' }}
run: xcrun simctl list devices
shell: bash

## Android Setup ##
Expand All @@ -248,8 +223,7 @@ runs:
with:
java-version: ${{ inputs.jdk-version }}
distribution: ${{ inputs.jdk-distribution }}

## Android Certificate Setup

- name: Configure Android Signing Certificates
if: ${{ inputs.platform == 'android' && inputs.configure-keystores == 'true' }}
uses: MetaMask/github-tools/.github/actions/configure-keystore@e2e-env-actions
Expand All @@ -259,6 +233,14 @@ runs:
platform: 'android'
environment: ${{ inputs.environment }}

- name: Enable KVM group perms (Ubuntu only)
if: ${{ inputs.platform == 'android' && runner.os == 'Linux' }}
run: |
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules
sudo udevadm control --reload-rules
sudo udevadm trigger --name-match=kvm
shell: bash

## Android SDK Setup

- name: Install required emulator dependencies
Expand Down Expand Up @@ -344,78 +326,3 @@ runs:
--package "$IMAGE" \
--device "${{ inputs.android-device }}"
shell: bash

# Launch Android Emulator
- name: Launch Android Emulator
if: ${{ inputs.platform == 'android' && inputs.setup-simulator == 'true' }}
run: |
# Linux with KVM hardware acceleration
nohup "$ANDROID_HOME/emulator/emulator" \
-avd "${{ inputs.android-avd-name }}" \
-no-audio \
-no-boot-anim \
-no-window \
-gpu swiftshader_indirect \
-no-snapshot \
-wipe-data \
-accel on \
-verbose > /dev/null 2>&1 &
shell: bash

## Wait for Emulator to Boot
- name: Wait for Android Emulator to Boot
if: ${{ inputs.platform == 'android' && inputs.setup-simulator == 'true' }}
run: |
echo "Waiting for emulator to be ready on $RUNNER_OS..."

# Wait for device to be detected by ADB
echo "Waiting for ADB to detect device..."
adb wait-for-device

# Additional wait for emulator to stabilize
sleep 10

# Check emulator status
echo "Checking emulator processes..."
if [ "$RUNNER_OS" = "Linux" ]; then
ps aux | grep emulator || echo "No emulator processes found"
fi

# Wait for boot to complete
bootanim=""
timeout=600 # 10 minutes for initial boot (Linux might be slower)
elapsed=0

while [[ "$elapsed" -lt "$timeout" ]]; do
bootanim=$(adb shell getprop init.svc.bootanim 2>/dev/null || echo "unknown")
sys_boot_completed=$(adb shell getprop sys.boot_completed 2>/dev/null || echo "0")

echo "Waiting for emulator... bootanim: $bootanim, boot_completed: $sys_boot_completed (${elapsed}s elapsed)"

if [[ "$bootanim" == *"stopped"* ]] && [[ "$sys_boot_completed" == "1" ]]; then
echo "✅ Emulator booted successfully"

# Unlock screen and disable animations for testing
adb shell input keyevent 82 # Unlock
adb shell settings put global window_animation_scale 0
adb shell settings put global transition_animation_scale 0
adb shell settings put global animator_duration_scale 0

echo "✅ Emulator is ready for testing"
exit 0
fi

sleep 10
elapsed=$((elapsed + 10))
done

echo "❌ Timeout waiting for emulator to boot"

# Debug information on failure
echo "Debug: ADB devices:"
adb devices
echo "Debug: Emulator processes:"
ps aux | grep emulator || echo "No emulator processes found"

exit 1
shell: bash
Loading