Skip to content

Commit ffef220

Browse files
romtsnclaude
andcommitted
chore(ci): use Gradle connectedAndroidTest instead of raw adb
Fixes: adb shell am instrument always exits 0, missing orchestrator APK, and replay tests not being skipped on GH emulators. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent e629ca8 commit ffef220

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

.github/workflows/integration-tests-ui.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,6 @@ jobs:
3434
with:
3535
cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
3636

37-
- name: Build test APKs
38-
run: make assembleUiTests
39-
4037
- name: Enable KVM
4138
run: |
4239
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules
@@ -78,7 +75,4 @@ jobs:
7875
disable-animations: true
7976
disable-spellchecker: true
8077
emulator-options: -memory 4096 -no-window -gpu auto -noaudio -no-boot-anim -camera-back none -no-snapshot-save
81-
script: |
82-
adb install -r -d sentry-android-integration-tests/sentry-uitest-android/build/outputs/apk/release/sentry-uitest-android-release.apk
83-
adb install -r -d sentry-android-integration-tests/sentry-uitest-android/build/outputs/apk/androidTest/release/sentry-uitest-android-release-androidTest.apk
84-
adb shell am instrument -w -e clearPackageData true -e useTestOrchestrator true io.sentry.uitest.android.test/androidx.test.runner.AndroidJUnitRunner
78+
script: ./gradlew :sentry-android-integration-tests:sentry-uitest-android:connectedReleaseAndroidTest -Denvironment=github

0 commit comments

Comments
 (0)