Skip to content

Commit fa3e310

Browse files
committed
feat(INFRA-2766): remove boot stuff for commented
1 parent 07b7c68 commit fa3e310

1 file changed

Lines changed: 0 additions & 112 deletions

File tree

.github/actions/setup-e2e-env/action.yml

Lines changed: 0 additions & 112 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,6 @@ inputs:
1616
description: 'Whether to setup simulator/emulator'
1717
required: false
1818
default: 'false'
19-
# See https://github.com/actions/runner-images/blob/main/images/macos/macos-14-Readme.md#installed-simulators
20-
ios-device:
21-
description: Name of iOS device to boot (e.g., "iPhone 15")
22-
required: false
23-
default: 'iPhone 15'
2419
bundler-version:
2520
description: 'Bundler version to use (only for iOS)'
2621
required: false
@@ -194,33 +189,6 @@ runs:
194189
run: xcrun simctl list devices
195190
shell: bash
196191

197-
#- name: Boot iOS Simulator
198-
# if: ${{ inputs.platform == 'ios' && inputs.setup-simulator == 'true' }}
199-
# run: |
200-
# # Find and boot simulator
201-
# SIMULATOR_ID=$(xcrun simctl list devices | grep "${{ inputs.ios-device }}" | \
202-
# grep -oE '\([A-F0-9-]{36}\)' | tr -d '()' | head -1)
203-
#
204-
# if [ -z "$SIMULATOR_ID" ]; then
205-
# echo "Simulator not found"
206-
# exit 1
207-
# fi
208-
#
209-
# # Shutdown other simulators (key performance win)
210-
# xcrun simctl shutdown all 2>/dev/null || true
211-
#
212-
# # Boot if needed
213-
# if ! xcrun simctl list devices | grep "$SIMULATOR_ID" | grep -q "(Booted)"; then
214-
# echo "Booting simulator..."
215-
# xcrun simctl boot "$SIMULATOR_ID"
216-
# fi
217-
#
218-
# # Essential performance settings
219-
# xcrun simctl status_bar "$SIMULATOR_ID" override \
220-
# --time "9:41" --batteryState charged --batteryLevel 100
221-
#
222-
# shell: bash
223-
224192
## Android Setup ##
225193

226194
## JDK Setup
@@ -316,83 +284,3 @@ runs:
316284
--package "$IMAGE" \
317285
--device "${{ inputs.android-device }}"
318286
shell: bash
319-
320-
# Launch Android Emulator
321-
#- name: Launch Android Emulator
322-
# if: ${{ inputs.platform == 'android' && inputs.setup-simulator == 'true' }}
323-
# run: |
324-
# # Linux with KVM hardware acceleration
325-
# nohup "$ANDROID_HOME/emulator/emulator" \
326-
# -avd "${{ inputs.android-avd-name }}" \
327-
# -no-audio \
328-
# -no-boot-anim \
329-
# -no-window \
330-
# -gpu swiftshader_indirect \
331-
# -memory 6144 \
332-
# -cores 4 \
333-
# -partition-size 4096 \
334-
# -data-partition-size 4096 \
335-
# -snapshot-save \
336-
# -no-snapshot-load \
337-
# -accel on \
338-
# -qemu -smp 4 \
339-
# -verbose > /dev/null 2>&1 &
340-
# shell: bash
341-
342-
## Wait for Emulator to Boot
343-
#- name: Wait for Android Emulator to Boot
344-
# if: ${{ inputs.platform == 'android' && inputs.setup-simulator == 'true' }}
345-
# run: |
346-
# echo "Waiting for emulator to be ready on $RUNNER_OS..."
347-
#
348-
# # Wait for device to be detected by ADB
349-
# echo "Waiting for ADB to detect device..."
350-
# adb wait-for-device
351-
#
352-
# # Additional wait for emulator to stabilize
353-
# sleep 10
354-
#
355-
# # Check emulator status
356-
# echo "Checking emulator processes..."
357-
# if [ "$RUNNER_OS" = "Linux" ]; then
358-
# ps aux | grep emulator || echo "No emulator processes found"
359-
# fi
360-
#
361-
# # Wait for boot to complete
362-
# bootanim=""
363-
# timeout=600 # 10 minutes for initial boot (Linux might be slower)
364-
# elapsed=0
365-
#
366-
# while [[ "$elapsed" -lt "$timeout" ]]; do
367-
# bootanim=$(adb shell getprop init.svc.bootanim 2>/dev/null || echo "unknown")
368-
# sys_boot_completed=$(adb shell getprop sys.boot_completed 2>/dev/null || echo "0")
369-
#
370-
# echo "Waiting for emulator... bootanim: $bootanim, boot_completed: $sys_boot_completed (${elapsed}s elapsed)"
371-
#
372-
# if [[ "$bootanim" == *"stopped"* ]] && [[ "$sys_boot_completed" == "1" ]]; then
373-
# echo "✅ Emulator booted successfully"
374-
#
375-
# # Unlock screen and disable animations for testing
376-
# adb shell input keyevent 82 # Unlock
377-
# adb shell settings put global window_animation_scale 0
378-
# adb shell settings put global transition_animation_scale 0
379-
# adb shell settings put global animator_duration_scale 0
380-
#
381-
# echo "✅ Emulator is ready for testing"
382-
# exit 0
383-
# fi
384-
#
385-
# sleep 10
386-
# elapsed=$((elapsed + 10))
387-
# done
388-
#
389-
# echo "❌ Timeout waiting for emulator to boot"
390-
#
391-
# # Debug information on failure
392-
# echo "Debug: ADB devices:"
393-
# adb devices
394-
# echo "Debug: Emulator processes:"
395-
# ps aux | grep emulator || echo "No emulator processes found"
396-
#
397-
# exit 1
398-
# shell: bash

0 commit comments

Comments
 (0)