question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Runner hangs installing build tools

See original GitHub issue

Today 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:closed
  • Created 3 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
ychescale9commented, Jan 5, 2021

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.

1reaction
sapuglhacommented, Jan 5, 2021

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!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found