Skip to content

Commit fc8d65f

Browse files
committed
Improve Android RC smoke test configuration and workflow
Adjusts the Android test plan to use updated package and activity names and increases wait times for enhanced stability. Refines the CI workflow by switching to a direct Gradle build command for the Android example app and adds `checks: write` permissions for better status reporting.
1 parent 92a19f7 commit fc8d65f

2 files changed

Lines changed: 7 additions & 6 deletions

File tree

.af-smoke/rc-test-plan.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111

1212
"config": {
1313
"android": {
14-
"package_name": "com.appsflyer.qa.reactnative",
15-
"activity": ".MainActivity",
14+
"package_name": "com.appsflyer.engagement",
15+
"activity": "com.appsflyer.qa.reactnative.MainActivity",
1616
"apk_path": "example_rc_smoke/android/app/build/outputs/apk/debug/app-debug.apk",
1717
"build_cmd": "cd example_rc_smoke/android && ./gradlew assembleDebug"
1818
},
@@ -30,7 +30,7 @@
3030
"scenario_ref": "SMOKE-001",
3131
"description": "Fresh install using the npm-pinned RC build. Validates SDK startup, install conversion data, pre/post-start API markers, and standard events.",
3232
"requires_fresh_install": true,
33-
"wait_after_launch_sec": 30,
33+
"wait_after_launch_sec": 60,
3434
"checks": [
3535
{
3636
"id": "sdk_started",
@@ -125,7 +125,7 @@
125125
"scenario_ref": "SMOKE-003",
126126
"description": "Fresh install of the RC build, then deep link while app is in foreground. Verifies SDK start and deep link callback.",
127127
"requires_fresh_install": true,
128-
"wait_after_launch_sec": 30,
128+
"wait_after_launch_sec": 60,
129129
"wait_after_trigger_sec": 15,
130130
"deep_link_url": "afqa-reactnative://deeplink?deep_link_value=qa_deeplink_fg&af_sub1=foreground_test&pid=testmedia&c=deeplink_test",
131131
"pre_actions": {

.github/workflows/rc-smoke.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -380,8 +380,7 @@ jobs:
380380
set -e
381381
adb shell 'getprop net.dns1; getprop net.dns2' || true
382382
adb shell 'nslookup oyoxfj.conversions.appsflyersdk.com 2>&1 | head -5' || { sleep 10; adb shell 'nslookup oyoxfj.conversions.appsflyersdk.com 2>&1 | head -5'; } || { echo "::error::Emulator DNS cannot resolve AppsFlyer hosts"; exit 1; }
383-
cd example_rc_smoke/android && cp ../../example/android/gradlew . && cd ../..
384-
cd example_rc_smoke && npx react-native build-android --mode=debug && cd ..
383+
cd example_rc_smoke/android && cp ../../example/android/gradlew . && ./gradlew assembleDebug && cd ../..
385384
bash ./scripts/af-scenario-runner.sh --platform android --plan .af-smoke/rc-test-plan.json
386385
387386
- name: Upload smoke reports
@@ -401,6 +400,8 @@ jobs:
401400
needs: [resolve, smoke-ios, smoke-android]
402401
if: always() && needs.resolve.outputs.should_run == 'true' && needs.resolve.outputs.head_sha != ''
403402
runs-on: ubuntu-latest
403+
permissions:
404+
checks: write
404405
steps:
405406
- name: Post check-run
406407
uses: actions/github-script@v7

0 commit comments

Comments
 (0)