Skip to content

Conversation

@snaik20
Copy link
Contributor

@snaik20 snaik20 commented Apr 28, 2024

What is it?

  • Bugfix (user facing)
  • Feature (user facing)
  • Codebase improvement (dev facing)
  • Meta improvement to the project (dev facing)

Description of the changes in your PR

  • The git workflow fails when running android tests.
  • The workflow is trying to launch an x86 emulator on aarch-64 (macos-latest) host.
  • The macos-latest system seem to be used originally as it supports hardware acceleration.
  • This is no longer recomended, and ubuntu-latest host can handle the same and be faster than macos-latest.

Doc: https://github.com/marketplace/actions/android-emulator-runner#running-hardware-accelerated-emulators-on-linux-runners

Before/After Screenshots/Screen Record

  • Before: Screenshot_20240429_020808
  • After: Screenshot_20240429_022005

Fixes the following issue(s)

APK testing

The APK can be found by going to the "Checks" tab below the title. On the left pane, click on "CI", scroll down to "artifacts" and click "app" to download the zip file which contains the debug APK of this PR. You can find more info and a video demonstration on this wiki page.

Due diligence

- The github workflow fails when running android tests.
- The workflow is trying to launch an x86 emulator on aarch-64 (macos-latest) host.
- The macos-latest system seem to be used originally as it supports
  hardware acceleration.
- This is no longer recomended, and ubuntu-latest host can handle the
  same and be faster than macos-latest.

Doc: https://github.com/marketplace/actions/android-emulator-runner#running-hardware-accelerated-emulators-on-linux-runners
@github-actions github-actions bot added the size/small PRs with less than 50 changed lines label Apr 28, 2024
@sonarqubecloud
Copy link

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

@snaik20 snaik20 marked this pull request as ready for review April 28, 2024 20:52
@snaik20 snaik20 requested a review from XiangRongLin April 28, 2024 20:52
@snaik20
Copy link
Contributor Author

snaik20 commented Apr 28, 2024

@XiangRongLin requested review from you as Github suggested and given previous change was yours.

@AudricV AudricV added the CI Everything related to CI (Continuous integration) label Apr 28, 2024
@snaik20 snaik20 self-assigned this Apr 28, 2024
Copy link
Contributor

@wb9688 wb9688 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, though maybe we can add AVD caching as well, but that's not really important

@snaik20
Copy link
Contributor Author

snaik20 commented Apr 28, 2024

LGTM, though maybe we can add AVD caching as well, but that's not really important

Thanks, that sounds like a great idea to reduce startup time. I think we can try that out separately. Merging this PR to unblock failing workflow.

@snaik20 snaik20 merged commit 879d7a2 into TeamNewPipe:dev Apr 28, 2024
@snaik20 snaik20 deleted the fix-git-workflow-run-android-tests branch April 28, 2024 21:15
@AudricV AudricV changed the title Fix github worklow for Android tests Fix GitHub workflow for Android tests Jul 4, 2024
@Stypox Stypox mentioned this pull request Nov 17, 2024
7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI Everything related to CI (Continuous integration) size/small PRs with less than 50 changed lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Github worklow for Android tests is broken

3 participants