Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

limit android screenrecord by 1 hour #297

Closed
vdelendik opened this issue Nov 18, 2023 · 5 comments
Closed

limit android screenrecord by 1 hour #297

vdelendik opened this issue Nov 18, 2023 · 5 comments
Labels
enhancement New feature or request
Milestone

Comments

@vdelendik
Copy link
Contributor

in case we don't detect correctly session finish we continue to perform screenrecord on the device infinitely.
let's make default max cap as of 1 hour for every single driver session.

@vdelendik vdelendik added the enhancement New feature or request label Nov 18, 2023
@vdelendik vdelendik added this to the 2.0.9 milestone Nov 18, 2023
@vdelendik
Copy link
Contributor Author

done, changes might be tested in appium:2.0.9-beta8+
still tbd howto test, ideally develop android test which do something for 1h+ doing from time to time some call to the driver to avoid close by idle timeout

@dhreben
Copy link
Contributor

dhreben commented Dec 1, 2023

Mobile-Android-Demo-Test was created with 120min test, but after Total time: 59:55 min , the test is aborted with error 143
The forked VM terminated without properly saying goodbye. VM crash or System.exit called?

Logs:


20:41:08  [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:3.1.0:test (default-test) on project carina-demo: 
20:41:08  [ERROR] 
20:41:08  [ERROR] Please refer to /opt/jenkins/workspace/qps2/carina-demo/Mobile-Android-Demo-Test/././target/surefire-reports for the individual test results.
20:41:08  [ERROR] Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream.
20:41:08  [ERROR] The forked VM terminated without properly saying goodbye. VM crash or System.exit called?
20:41:08  [ERROR] Command was /bin/sh -c cd '/opt/jenkins/workspace/qps2/carina-demo/Mobile-Android-Demo-Test/./.' && '/usr/lib/jvm/java-17-openjdk/bin/java' '-javaagent:/opt/jenkins/workspace/qps2/carina-demo/Mobile-Android-Demo-Test/././target/agent/zebrunner-agent.jar' 'org.apache.maven.surefire.booter.ForkedBooter' '/opt/jenkins/workspace/qps2/carina-demo/Mobile-Android-Demo-Test/target/surefire' '2023-11-23T16-41-43_678-jvmRun1' 'surefire-20231123164144057_1tmp' 'surefire_0-20231123164144057_2tmp'
20:41:08  [ERROR] Error occurred in starting fork, check output in log
20:41:08  [ERROR] Process Exit Code: 143
20:41:08  [ERROR] Crashed tests:
20:41:08  [ERROR] com.zebrunner.carina.demo.MobileSampleTest
20:41:08  [ERROR] org.apache.maven.surefire.booter.SurefireBooterForkException: The forked VM terminated without properly saying goodbye. VM crash or System.exit called?
20:41:08  [ERROR] Command was /bin/sh -c cd '/opt/jenkins/workspace/qps2/carina-demo/Mobile-Android-Demo-Test/./.' && '/usr/lib/jvm/java-17-openjdk/bin/java' '-javaagent:/opt/jenkins/workspace/qps2/carina-demo/Mobile-Android-Demo-Test/././target/agent/zebrunner-agent.jar' 'org.apache.maven.surefire.booter.ForkedBooter' '/opt/jenkins/workspace/qps2/carina-demo/Mobile-Android-Demo-Test/target/surefire' '2023-11-23T16-41-43_678-jvmRun1' 'surefire-20231123164144057_1tmp' 'surefire_0-20231123164144057_2tmp'
20:41:08  [ERROR] Error occurred in starting fork, check output in log
20:41:08  [ERROR] Process Exit Code: 143
20:41:08  [ERROR] Crashed tests:
20:41:08  [ERROR] com.zebrunner.carina.demo.MobileSampleTest
20:41:08  [ERROR] 	at org.apache.maven.plugin.surefire.booterclient.ForkStarter.fork(ForkStarter.java:643)
20:41:08  [ERROR] 	at org.apache.maven.plugin.surefire.booterclient.ForkStarter.run(ForkStarter.java:285)
20:41:08  [ERROR] 	at org.apache.maven.plugin.surefire.booterclient.ForkStarter.run(ForkStarter.java:250)
20:41:08  [ERROR] 	at org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeProvider(AbstractSurefireMojo.java:1203)
20:41:08  [ERROR] 	at org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeAfterPreconditionsChecked(AbstractSurefireMojo.java:1055)
20:41:08  [ERROR] 	at org.apache.maven.plugin.surefire.AbstractSurefireMojo.execute(AbstractSurefireMojo.java:871)
20:41:08  [ERROR] 	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:137)
20:41:08  [ERROR] 	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:210)
20:41:08  [ERROR] 	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:156)
20:41:08  [ERROR] 	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:148)
20:41:08  [ERROR] 	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:117)
20:41:08  [ERROR] 	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:81)
20:41:08  [ERROR] 	at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:56)script returned exit code 143

@dhreben dhreben reopened this Dec 1, 2023
@vdelendik
Copy link
Contributor Author

@dhreben, make sure to increase value for JOB_MAX_RUN_TIME global jenkins var before verification. it is 60m by default!
it should allow you to finish your 2hrs job

@dhreben
Copy link
Contributor

dhreben commented Jan 15, 2024

will be verify after fix zebrunner/reporting#2351

@vdelendik vdelendik modified the milestones: 2.0.9, 2.0.12 Mar 5, 2024
@vdelendik
Copy link
Contributor Author

moved to done as no complains from production and we plan to redesign video recordings completely

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Archived in project
Development

No branches or pull requests

2 participants