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.

Step does not finish

See original GitHub issue

Thanks for your great effort to let us run emulator via GitHub Actions!

I have such a workflow:

test:
        runs-on: macOS-latest
        steps:
            -   uses: actions/checkout@v2
            -   name: set up JDK 1.8
                uses: actions/setup-java@v1
                with:
                    java-version: 1.8
            -   name: Build gplay
                run: |
                    mkdir -p $HOME/.gradle
                    echo "org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=512m -XX:+HeapDumpOnOutOfMemoryError" > $HOME/.gradle/gradle.properties
                    ./gradlew assembleGplayDebug
            -   name: run tests
                uses: reactivecircus/android-emulator-runner@v2
                with:
                    api-level: 29
                    script:
                        ./gradlew gplayDebugExecuteScreenshotTests -Pandroid.testInstrumentationRunnerArguments.annotation=com.owncloud.android.utils.ScreenshotTest2
            -   name: upload failing results
                if: ${{ failure() }}
                run:
                    scripts/uploadReport.sh

I log I then see:

You can review the execution report here: /Users/runner/work/android/android/build/reports/shot/verification/index.html

> Task :gplayDebugExecuteScreenshotTests FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':gplayDebugExecuteScreenshotTests'.
> Screenshots comparision fail. Review the execution report to see what's broken your build.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 4m 15s
68 actionable tasks: 33 executed, 35 up-to-date
Error: The process '/bin/sh' failed with exit code 1
/Users/runner/Library/Android/sdk/platform-tools/adb -s emulator-5554 emu kill
OK: killing emulator, bye bye
OK
eglMakeCurrent failed in binding subwindow!
eglMakeCurrent failed in binding subwindow!
eglMakeCurrent failed in binding subwindow!
eglMakeCurrent failed in binding subwindow!
eglMakeCurrent failed in binding subwindow!
eglMakeCurrent failed in binding subwindow!
eglMakeCurrent failed in binding subwindow!
eglMakeCurrent failed in binding subwindow!
eglMakeCurrent failed in binding subwindow!
eglMakeCurrent failed in binding subwindow!
eglMakeCurrent failed in binding subwindow!
eglMakeCurrent failed in binding subwindow!

So gradle step failed, sh exits with 1. Emulator gets killed, but then nothing happens.

Next step “upload failing results” is not executed, nor workflow finishes.

I then manually killed it.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
tobiasKaminskycommented, Nov 11, 2020

Thanks, indeed this was the problem: I somehow 🤷‍♂️ thought it would extend the options…

-   name: run tests
                uses: reactivecircus/android-emulator-runner@v2
                with:
                    api-level: 29
                    emulator-options: -no-window -gpu swiftshader_indirect -no-snapshot -noaudio -no-boot-anim -skin 500x833
                    script: ./gradlew gplayDebugExecuteScreenshotTests -Pandroid.testInstrumentationRunnerArguments.annotation=com.owncloud.android.utils.ScreenshotTest2
            -   name: upload failing results
                if: ${{ failure() }}
                run:
                    scripts/uploadReport.sh

This now works!

Thanks!

1reaction
tobiasKaminskycommented, Nov 10, 2020
 -   name: run tests
                uses: reactivecircus/android-emulator-runner@v2
                with:
                    api-level: 29
                    script: ./gradlew gplayDebugExecuteScreenshotTests -Pandroid.testInstrumentationRunnerArguments.annotation=com.owncloud.android.utils.ScreenshotTest2

Thanks for your help! Removing emulatorOption seems to help.

Now I need to find another way to have a specific resolution, as the pre-recorded screenshots are all in size 500x833.

Read more comments on GitHub >

github_iconTop Results From Across the Web

When tests fail during github-action@v3 the step does not emit ...
I'm executing parallelized tests recorded to the Cypress Dashboard using github-action@v3 Functionally everything works perfectly and as expected with the ...
Read more >
Spring-Batch job does not end after last step - Stack Overflow
As you can see, my job is scheduled to launch every 5 seconds. But, after first launch, it does not end; it goes...
Read more >
Starting and Completing the Test - USMLE.org
If you start the examination but do not complete it for reasons other than a technical problem or expiration of time, you should...
Read more >
Tips on What to Do When a Contractor Doesn't Finish the Job
This step-by-step guide will help you responsibly handle unfinished contract work. 1. Talk to Your Contractor. While it may seem like a stretch, ......
Read more >
Process chain problem: Step completion not occuring
My problem involves a datastore activation step in a process chain. The step will start and the datastore is activated successfully - all...
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