Conversation
Summary of ChangesHello @jackpf, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request focuses on establishing a reliable workflow for running Android integration tests within a GitHub Actions environment. It modifies the test execution strategy to explicitly build and install APKs before running tests via ADB, and configures Gradle properties to mitigate potential flakiness by increasing timeouts and retry attempts. The changes aim to ensure that integration tests can consistently execute and provide feedback in the CI pipeline. Highlights
Ignored Files
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request aims to get Android integration tests running in GitHub Actions. The changes involve updating the Makefile to run tests via adb commands and adjusting gradle.properties to make the CI environment more stable, which is a good approach. I've identified a critical issue: a new test has been added in MainActivityTest.java that will always fail, likely for debugging. This must be removed before merging as it breaks the CI build. I've also included a suggestion to clean up a commented-out line in the Makefile for better code clarity.
| @Test | ||
| public void activityReachesResumedStatef() { | ||
| try (ActivityScenario<MainActivity> scenario = ActivityScenario.launch(MainActivity.class)) { | ||
| assertEquals(Lifecycle.State.RESUMED, scenario.getState()); | ||
| assertEquals(1, 2); | ||
| } | ||
| } |
There was a problem hiding this comment.
| .PHONY: integration-test | ||
| integration-test: | ||
| ./gradlew connectedDebugAndroidTest | ||
| #./gradlew connectedDebugAndroidTest -Pandroid.experimental.androidTest.useUnifiedTestPlatform=false --no-daemon --info |
Trying to get integration tests to run in GHA.