Runner hangs installing build tools
See original GitHub issueToday I noticed that the runner hangs while trying to install latest build tools.
Run reactivecircus/android-emulator-runner@v2
with:
api-level: 29
profile: pixel
script: ./gradlew app:connectedDevDebugAndroidTest domain:connectedDebugAndroidTest
target: default
arch: x86
avd-name: test
emulator-options: -no-window -gpu swiftshader_indirect -no-snapshot -noaudio -no-boot-anim
disable-animations: true
API level: 29
target: default
CPU architecture: x86
Hardware profile: pixel
SD card path or size:
AVD name: test
emulator options: -no-window -gpu swiftshader_indirect -no-snapshot -noaudio -no-boot-anim
disable animations: true
Script:
./gradlew app:connectedDevDebugAndroidTest domain:connectedDebugAndroidTest
Installing new cmdline-tools.
/usr/bin/unzip -q /Users/buildmachine/actions-runner/OrgWideRunner/_work/_temp/7caea691-806e-4246-be51-fb6e7a29e145
Installing latest build tools, platform tools, and platform.
/bin/sh -c \sdkmanager --install 'build-tools;30.0.3' platform-tools 'platforms;android-29' > /dev/null
Back from holidays so I’m not sure when it stopped working.
This is the job as I have in my workflow.
instrumentation_test:
needs: unit_test
runs-on: [self-hosted, macos, android]
steps:
- name: Checkout Repo
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Run Instrumentation Tests on Emulator
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: 29
profile: pixel
script: ./gradlew app:connectedDevDebugAndroidTest
- name: Archive Instrumentation Test Results
if: ${{ always() }}
uses: actions/upload-artifact@v1
with:
name: Instrumentation Test Results
path: ./app/build/reports
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (4 by maintainers)
Top Results From Across the Web
Installation Hangs after "Successfully installed Python 2.7" and ...
Run npm install --global windows-build-tools. Let me know if it works! Hello after installing 2.7.17 when I follow step 3 it again installs...
Read more >Visual Studio Build Tools 2019 installation hangs on Microsoft ...
Try to unblock yourself by rebooting machine and retry the installation. If it doesn't work, please go to C:\ProgramData\Microsoft\VisualStudio\ ...
Read more >For npm dependencies, PowerShell is stuck after installing VS ...
For npm dependencies, PowerShell is stuck after installing VS Build tools and it says it is still waiting for installer log file to...
Read more >Windows build stuck after python 2.7 installation
But when i try installing windows build tools, it gets stuck after python 2.7 installation, any workaround for this.
Read more >Unable to install Visual C++ build tools - Microsoft Q&A
I tried to install the Microsoft Visual C++ Build tools. The installer (filename is visualcppbuildtools_full.exe) stops right after the start ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
TBH I haven’t tested or used this action with self-hosted runners myself so I haven’t really been considering potential issues with self-hosted runners when making changes.
I think adding a check for
$ANDROID_SDK_ROOT
makes sense, but for self-hosted runners there are likely to be other requirements in the host VM that we should check if we want to support self-hosted runners properly.I’ll think about this for a bit.
Indeed that did the trick. I manually added
ANDROID_SDK_ROOT
to the.env
for the runner and it worked. I will need to consult whoever configured the runner to see if I should instead add it elsewhere or we’re risking it going away by some automated update or service restart.I wonder if adding a check for
$ANDROID_SDK_ROOT
in the scripts would be valuable, since this change requires it and would hang the action otherwise.Thanks for your help!