diff --git a/.github/actions/maestro-ios/action.yml b/.github/actions/maestro-ios/action.yml index 9a07eb8e7fd..ba1c9880804 100644 --- a/.github/actions/maestro-ios/action.yml +++ b/.github/actions/maestro-ios/action.yml @@ -44,6 +44,7 @@ runs: run: | cd ${{ inputs.working-directory }} yarn start & + sleep 5 # to give metro time to load - name: Run tests id: run-tests shell: bash @@ -68,8 +69,13 @@ runs: echo "Launch the app" xcrun simctl launch $UDID ${{ inputs.app-id }} + if [[ ${{ inputs.flavor }} == 'Debug' ]]; then + # To give the app time to warm the metro's cache + sleep 5 + fi + echo "Running tests with Maestro" - export MAESTRO_DRIVER_STARTUP_TIMEOUT=1800000 # 30 min. CI is extremely slow + export MAESTRO_DRIVER_STARTUP_TIMEOUT=1200000 # 20 min. CI is extremely slow # Add retries for flakyness MAX_ATTEMPTS=5 @@ -112,6 +118,8 @@ runs: video_record_1.mov video_record_2.mov video_record_3.mov + video_record_4.mov + video_record_5.mov report.xml - name: Store Logs if: failure() && steps.run-tests.outcome == 'failure' diff --git a/.github/workflows/test-all.yml b/.github/workflows/test-all.yml index eb456dcc3a0..4c6d0d64dcf 100644 --- a/.github/workflows/test-all.yml +++ b/.github/workflows/test-all.yml @@ -183,8 +183,8 @@ jobs: react-native-version: ${{ needs.prepare_hermes_workspace.outputs.react-native-version }} test_e2e_ios_rntester: - if: ${{ github.ref == 'refs/heads/main' || contains(github.ref, 'stable') || inputs.run-e2e-tests }} - runs-on: macos-13 + # if: ${{ github.ref == 'refs/heads/main' || contains(github.ref, 'stable') || inputs.run-e2e-tests }} + runs-on: macos-13-large needs: [build_apple_slices_hermes, prepare_hermes_workspace, build_hermes_macos] env: @@ -221,8 +221,8 @@ jobs: flavor: ${{ matrix.flavor }} test_e2e_ios_templateapp: - if: ${{ github.ref == 'refs/heads/main' || contains(github.ref, 'stable') || inputs.run-e2e-tests }} - runs-on: macos-13 + # if: ${{ github.ref == 'refs/heads/main' || contains(github.ref, 'stable') || inputs.run-e2e-tests }} + runs-on: macos-13-large needs: build_npm_package env: HERMES_WS_DIR: /tmp/hermes