From 68c3e47c2616f9ea4dd161c6c16c824b08aa5282 Mon Sep 17 00:00:00 2001 From: Gio Lodi Date: Tue, 3 Nov 2026 11:10:38 +1100 Subject: [PATCH 1/2] Run connected tests on a supported device Firebase Test Lab rejects `Nexus5X`, so no test has run since at least September 2025. Jeremy Massel listed fixing the model as one option in AINFRA-3575. `MediumPhone.arm` on API 34 is a virtual device, and the same API level as the emulator options. --- Generated with the help of Claude Code (Opus 5.5), https://code.claude.com --- .buildkite/commands/connected-tests.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.buildkite/commands/connected-tests.sh b/.buildkite/commands/connected-tests.sh index 2fc465dbf..66dd48388 100644 --- a/.buildkite/commands/connected-tests.sh +++ b/.buildkite/commands/connected-tests.sh @@ -17,5 +17,5 @@ gcloud firebase test android run \ --type instrumentation \ --app app/build/outputs/apk/debug/app-debug.apk \ --test app/build/outputs/apk/androidTest/debug/app-debug-androidTest.apk \ - --device model=Nexus5X,version=26,locale=en,orientation=portrait \ + --device model=MediumPhone.arm,version=34,locale=en,orientation=portrait \ --verbosity info From fec915d1e09c339fd0c947c1e82a1f941fae48e6 Mon Sep 17 00:00:00 2001 From: Gio Lodi Date: Tue, 3 Nov 2026 11:23:44 +1100 Subject: [PATCH 2/2] Stop requesting storage permission on modern APIs The app declares `WRITE_EXTERNAL_STORAGE` up to API 29 and `READ_EXTERNAL_STORAGE` up to API 32. On API 34 `GrantPermissionRule` therefore fails with `READ_EXTERNAL_STORAGE cannot be granted!`, which failed nearly the whole connected suite before any test body ran. --- Generated with the help of Claude Code (Opus 5.5), https://code.claude.com --- .../kotlin/org/wordpress/aztec/demo/BaseTest.kt | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/app/src/androidTest/kotlin/org/wordpress/aztec/demo/BaseTest.kt b/app/src/androidTest/kotlin/org/wordpress/aztec/demo/BaseTest.kt index df840aac5..0ee9d62f3 100644 --- a/app/src/androidTest/kotlin/org/wordpress/aztec/demo/BaseTest.kt +++ b/app/src/androidTest/kotlin/org/wordpress/aztec/demo/BaseTest.kt @@ -2,6 +2,7 @@ package org.wordpress.aztec.demo +import android.os.Build import android.util.Log import androidx.test.rule.GrantPermissionRule import androidx.test.runner.AndroidJUnit4 @@ -12,8 +13,11 @@ import org.junit.runner.RunWith abstract class BaseTest { @Rule @JvmField - val grantPermissionRule: GrantPermissionRule = GrantPermissionRule.grant(android.Manifest.permission.CAMERA, - android.Manifest.permission.WRITE_EXTERNAL_STORAGE) + val grantPermissionRule: GrantPermissionRule = if (Build.VERSION.SDK_INT > Build.VERSION_CODES.Q) { + GrantPermissionRule.grant(android.Manifest.permission.CAMERA) + } else { + GrantPermissionRule.grant(android.Manifest.permission.CAMERA, android.Manifest.permission.WRITE_EXTERNAL_STORAGE) + } companion object { fun label(label: String) {