You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am currently working on implementing an automatic benchmark run in our project to compare two builds before and after making any changes. The benchmarking process takes place on our Continuous Integration (CI) platform without a display.
While regular scenarios with Gradle tasks are working fine, I encountered an issue when trying to implement the android-studio-sync scenario. Running sync requires Android Studio, and since it is a GUI application, it needs to be somehow launched in headless mode.
I have attempted to start the studio with -Djava.awt.headless=true and used Xvfb to create a virtual display, but these approaches did not resolve the issue. The benchmark run fails with the error java.lang.IllegalStateException: Timeout waiting for incoming connection from plugin.
Is there currently a way to achieve this idea in a Docker environment with a headless setup?
Thank you for your assistance.
The text was updated successfully, but these errors were encountered:
In case anyone else encounters a similar setup, to ensure that the gradle-profiler --benchmark ... command with the android-studio-sync scenario runs successfully, you need to:
Make sure to add the path to the Android SDK in the local.properties file - sdk.dir=....
To set the system property studio.tests.headless=true, I used export JAVA_TOOL_OPTIONS=-Dstudio.tests.headless=true before running gradle-profiler --benchmark ....
Hello,
I am currently working on implementing an automatic benchmark run in our project to compare two builds before and after making any changes. The benchmarking process takes place on our Continuous Integration (CI) platform without a display.
While regular scenarios with Gradle tasks are working fine, I encountered an issue when trying to implement the
android-studio-sync
scenario. Running sync requiresAndroid Studio
, and since it is a GUI application, it needs to be somehow launched in headless mode.I have attempted to start the studio with
-Djava.awt.headless=true
and usedXvfb
to create a virtual display, but these approaches did not resolve the issue. The benchmark run fails with the errorjava.lang.IllegalStateException: Timeout waiting for incoming connection from plugin.
Is there currently a way to achieve this idea in a Docker environment with a headless setup?
Thank you for your assistance.
The text was updated successfully, but these errors were encountered: