Skip to content

Conversation

@andreia-ferreira
Copy link
Collaborator

@andreia-ferreira andreia-ferreira commented Jan 5, 2026

Towards #3365

This PR updates the existing GitHub action files for running the Android tests.
The workflow defined in test-e2e.yml will run on every push to master, but it can also be triggered manually if needed. This workflow triggers the start-emulator action of ground-platform in order to start the Firebase emulator and then the submit-test on ground-android in order to start the Android emulator and run the tests in the e2eTest module.

While testing this workflow some changes had to be implemented in order to make the tests less flaky:

  • Replacing the logic to open the phone camera with Espresso intents. A new image was added to the assets in order to mock the flow
  • Remove the step to complete a 'draw area job'. The current implementation to drag the map and add points seems to be flaky so this was left out for now and can be improved and re-introduced later. At the moment all task types are being tested except for this one.

You can see how the workflow run would look like here: https://github.com/andreia-ferreira/ground-android/actions/runs/21182506715

PTAL @shobhitagarwal1612 @gino-m

@codecov
Copy link

codecov bot commented Jan 5, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 70.02%. Comparing base (cfc4501) to head (563ec59).
⚠️ Report is 2 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #3429      +/-   ##
============================================
- Coverage     70.07%   70.02%   -0.06%     
+ Complexity     1613     1604       -9     
============================================
  Files           322      322              
  Lines          8634     8646      +12     
  Branches        951      949       -2     
============================================
+ Hits           6050     6054       +4     
- Misses         2007     2017      +10     
+ Partials        577      575       -2     

see 7 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@andreia-ferreira andreia-ferreira force-pushed the andreia/3365/update-github-actions branch from d4c9f2d to e6b279d Compare January 19, 2026 17:03
@andreia-ferreira andreia-ferreira marked this pull request as ready for review January 20, 2026 18:51
Comment on lines +59 to +63
needs: build
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
uses: ./.github/workflows/test-e2e.yml
secrets:
MAPS_API_KEY: ${{ secrets.MAPS_API_KEY }}

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant