Repository navigation
ci(agent): enable Gradle Managed Device instrumentation tests in CI - #68
Merged
Merged
Conversation
mingweiliao
force-pushed
the
ci-integration-test
branch
from
October 30, 2026 11:20
c9d776c to
5c98954
Compare
- Update GMD configuration in agent/app/build.gradle.kts from pixel7Api36 to pixel7Api37 so AppFunctionManager indexes android.app.appfunctions.v2 XML metadata on API 37. - Wait for fakeFunction to be indexed via 'cmd app_function list-app-functions' in @before of GetAppFunctionsUseCaseTest and GetAppFunctionStatesUseCaseTest. - Switch Agent CI workflow runner to ubuntu-latest and enable KVM permissions to support hardware-accelerated Android emulators. - Add pixel7Api37Setup and pixel7Api37StandardDebugAndroidTest steps to .github/workflows/agent.yaml before assembling release APKs.
mingweiliao
force-pushed
the
ci-integration-test
branch
from
October 30, 2026 12:01
5c98954 to
cbea851
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds Gradle Managed Device (GMD) instrumentation tests to the Agent CI workflow (
.github/workflows/agent.yaml) and updates the managed device target to API 37.Changes
agent/app/build.gradle.kts:pixel7Api36(apiLevel = 36) topixel7Api37(apiLevel = 37).FakeAppFunctionServicedeclares<property android:name="android.app.appfunctions.v2" ... />(tools:targetApi="37"), which requires an API 37 system image forAppFunctionManagerto index the v2 XML metadata..github/workflows/agent.yaml:runs-onfrommacos-26(Apple Silicon M1 VM without nested virtualization support) toubuntu-latestand configures/dev/kvmpermissions, matching otherandroid/*sample repositories.Setup GMD(:app:pixel7Api37Setup) andRun instrumentation tests(:app:pixel7Api37StandardDebugAndroidTest) steps afterRun screenshot testsand beforeBuild Debug and Release APKs/Upload Agent APKs.Testing
./gradlew :app:pixel7Api37Setup :app:pixel7Api37StandardDebugAndroidTestlocally:GetAppFunctionsUseCaseTest— PASSEDGetAppFunctionStatesUseCaseTest— PASSEDGeminiProviderImplIntegrationTest(9 tests) — SKIPPED as expected whenGEMINI_API_KEYis not a live key (viaassumeTrue).