mirror of
https://github.com/facebook/react-native.git
synced 2026-11-18 20:19:07 +00:00
Run Android E2E with ARM64 APKs (#58092)
Summary: Build only the `arm64-v8a` Android ABI for dry-run CI artifacts and run the ARM64 RNTester and template-app APKs on an API 35 `google_apis` x86_64 emulator using the system images built-in NDK translation support. This also makes the Maestro emulator API level and target configurable, logs the device ABI/native-bridge configuration, and updates local RNTester artifact selection to use the ARM64 split. Release and nightly publication builds continue to build all supported Android ABIs. ## Changelog: [INTERNAL] [CHANGED] - Run Android E2E tests with ARM64 APKs through NDK translation. Pull Request resolved: https://github.com/react/react-native/pull/58092 Test Plan: - `node --check .github/workflow-scripts/maestro-android.js` — passed. - `node --check scripts/release-testing/test-release-local.js` — passed. - Parsed all modified YAML files with the `yaml` Node package — passed. - `./node_modules/.bin/prettier --check <modified files>` — passed. - `git diff --check HEAD~3..HEAD` — passed. - `actionlint` reported only existing repository metadata warnings for the custom `4-core-ubuntu` label and the missing description in the local `yarn-install` action. - `yarn test .github/workflow-scripts/__tests__/maestro-android-test.js --runInBand` could not start because the local dependency tree is missing `flow-parser`; restoring dependencies was blocked by HTTP 503 responses from the npm registry. - The draft CI run should validate ARM64 APK installation, Hermes startup, and the complete Maestro suites through `libndk_translation.so`. Reviewed By: Abbondanzo Differential Revision: D117195078 Pulled By: cortinico fbshipit-source-id: a78f2127f04e80c3b5ca4c95d2024dffb92ff122
This commit is contained in:
1 parent
3f9cc72309
commit
25ebffd1f7
7 files changed
+47
-17
No files matched your search
@@ -45,7 +45,7 @@ jobs:
|
||||
continue-on-error: true
|
||||
uses: actions/download-artifact@v7
|
||||
with:
|
||||
name: e2e_android_rntester_state_${{ matrix.flavor }}_x86_NewArch
|
||||
name: e2e_android_rntester_state_${{ matrix.flavor }}_arm64-v8a_NewArch
|
||||
path: /tmp/maestro-android-state
|
||||
- name: Check for unfinished E2E flows
|
||||
id: test-state
|
||||
@@ -64,15 +64,18 @@ jobs:
|
||||
uses: ./.github/actions/maestro-android
|
||||
timeout-minutes: 90
|
||||
with:
|
||||
app-path: ./packages/rn-tester/android/app/build/outputs/apk/${{ matrix.flavor }}/app-x86-${{ matrix.flavor }}.apk
|
||||
app-path: ./packages/rn-tester/android/app/build/outputs/apk/${{ matrix.flavor }}/app-arm64-v8a-${{ matrix.flavor }}.apk
|
||||
app-id: com.facebook.react.uiapp
|
||||
maestro-flow: ./packages/rn-tester/.maestro
|
||||
flavor: ${{ matrix.flavor }}
|
||||
emulator-api-level: '35'
|
||||
emulator-target: google_apis
|
||||
emulator-arch: x86_64
|
||||
- name: Store per-flow test state
|
||||
if: always()
|
||||
uses: actions/upload-artifact@v6
|
||||
with:
|
||||
name: e2e_android_rntester_state_${{ matrix.flavor }}_x86_NewArch
|
||||
name: e2e_android_rntester_state_${{ matrix.flavor }}_arm64-v8a_NewArch
|
||||
overwrite: true
|
||||
if-no-files-found: warn
|
||||
path: /tmp/maestro-android-state/results.json
|
||||
|
||||
@@ -74,14 +74,14 @@ jobs:
|
||||
# Build
|
||||
cd android
|
||||
CAPITALIZED_FLAVOR=$(echo "${{ matrix.flavor }}" | awk '{print toupper(substr($0, 1, 1)) substr($0, 2)}')
|
||||
./gradlew assemble$CAPITALIZED_FLAVOR --no-daemon -PreactNativeArchitectures=x86
|
||||
./gradlew assemble$CAPITALIZED_FLAVOR --no-daemon -PreactNativeArchitectures=arm64-v8a
|
||||
|
||||
- name: Download previous per-flow test state
|
||||
if: ${{ inputs.retry-attempt > 0 }}
|
||||
continue-on-error: true
|
||||
uses: actions/download-artifact@v7
|
||||
with:
|
||||
name: e2e_android_templateapp_state_${{ matrix.flavor }}_x86_NewArch
|
||||
name: e2e_android_templateapp_state_${{ matrix.flavor }}_arm64-v8a_NewArch
|
||||
path: /tmp/maestro-android-state
|
||||
- name: Check for unfinished E2E flows
|
||||
id: test-state
|
||||
@@ -106,11 +106,14 @@ jobs:
|
||||
install-java: 'false'
|
||||
flavor: ${{ matrix.flavor }}
|
||||
working-directory: /tmp/RNTestProject
|
||||
emulator-api-level: '35'
|
||||
emulator-target: google_apis
|
||||
emulator-arch: x86_64
|
||||
- name: Store per-flow test state
|
||||
if: always()
|
||||
uses: actions/upload-artifact@v6
|
||||
with:
|
||||
name: e2e_android_templateapp_state_${{ matrix.flavor }}_x86_NewArch
|
||||
name: e2e_android_templateapp_state_${{ matrix.flavor }}_arm64-v8a_NewArch
|
||||
overwrite: true
|
||||
if-no-files-found: warn
|
||||
path: /tmp/maestro-android-state/results.json
|
||||
|
||||
Reference in new issue
Block a user