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

Failed to move the screenshot file #524

Open
ligi opened this issue Aug 3, 2022 · 0 comments
Open

Failed to move the screenshot file #524

ligi opened this issue Aug 3, 2022 · 0 comments

Comments

@ligi
Copy link

ligi commented Aug 3, 2022

I am seeing this error when running the torture:

Aug 03, 2022 11:53:29 AM org.jitsi.meet.test.base.FailureListener onTestFailure
SEVERE: Failed to gather debug information for 
java.lang.RuntimeException: Failed to move the screenshot file, from: /tmp/screenshot10193580497129587843.png to: target/surefire-reports/screenshots/org.jitsi.meet.test.TCPTest-web.participant1.png
        at org.jitsi.meet.test.base.Participant.takeScreenshot(Participant.java:489)
        at org.jitsi.meet.test.base.FailureListener.lambda$takeScreenshots$0(FailureListener.java:256)
        at java.base/java.lang.Iterable.forEach(Iterable.java:75)
        at org.jitsi.meet.test.base.FailureListener.takeScreenshots(FailureListener.java:255)
        at org.jitsi.meet.test.base.FailureListener.onTestFailure(FailureListener.java:197)
        at org.testng.internal.TestListenerHelper.runTestListeners(TestListenerHelper.java:67)
        at org.testng.internal.Invoker.runTestListeners(Invoker.java:1379)
        at org.testng.internal.Invoker.invokeMethod(Invoker.java:624)
        at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:707)
        at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:979)
        at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:125)
        at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:109)
        at org.testng.TestRunner.privateRun(TestRunner.java:648)
        at org.testng.TestRunner.run(TestRunner.java:505)
        at org.testng.SuiteRunner.runTest(SuiteRunner.java:455)
        at org.testng.SuiteRunner.access$000(SuiteRunner.java:40)
        at org.testng.SuiteRunner$SuiteWorker.run(SuiteRunner.java:489)
        at org.testng.internal.thread.ThreadUtil$1.call(ThreadUtil.java:52)
        at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
        at java.base/java.lang.Thread.run(Thread.java:829)
Caused by: org.apache.commons.io.FileExistsException: Destination 'target/surefire-reports/screenshots/org.jitsi.meet.test.TCPTest-web.participant1.png' already exists
        at org.apache.commons.io.FileUtils.moveFile(FileUtils.java:3001)
        at org.jitsi.meet.test.base.Participant.takeScreenshot(Participant.java:483)
        ... 21 more

[15] End tcpTest.
[15] Closing web.participant1
[15] Closing web.participant2
[ERROR] Tests run: 444, Failures: 1, Errors: 0, Skipped: 436, Time elapsed: 82.966 s <<< FAILURE! - in TestSuite
[ERROR] tcpTest(org.jitsi.meet.test.TCPTest)  Time elapsed: 25.386 s  <<< FAILURE!
org.openqa.selenium.TimeoutException: 
Expected condition failed: waiting for WebParticipant[web.participant1]@810471138#waitForSendReceiveData (tried for 20 second(s) with 500 milliseconds interval)
Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:17:03'
System info: host: 'ligi-w520', ip: '127.0.1.1', os.name: 'Linux', os.arch: 'amd64', os.version: '5.4.0-122-generic', java.version: '11.0.15'
Driver info: org.openqa.selenium.chrome.ChromeDriver
Capabilities {acceptInsecureCerts: false, browserName: chrome, browserVersion: 104.0.5112.79, chrome: {chromedriverVersion: 104.0.5112.29 (eff877e18f76..., userDataDir: /tmp/.com.google.Chrome.0ORzXe}, goog:chromeOptions: {debuggerAddress: localhost:34697}, javascriptEnabled: true, networkConnectionEnabled: false, pageLoadStrategy: normal, platform: LINUX, platformName: LINUX, proxy: Proxy(), setWindowRect: true, strictFileInteractability: false, timeouts: {implicit: 0, pageLoad: 300000, script: 30000}, unhandledPromptBehavior: dismiss and notify, webauthn:extension:credBlob: true, webauthn:extension:largeBlob: true, webauthn:virtualAuthenticators: true}
Session ID: 0e806bd542d3ac7791341fae5045fab3
        at org.jitsi.meet.test.TCPTest.tcpTest(TCPTest.java:82)

[INFO] 
[INFO] Results:
[INFO] 
[ERROR] Failures: 
[ERROR]   TCPTest.tcpTest:82->WebTestBase.ensureTwoParticipants:104->WebTestBase.ensureTwoParticipants:126->WebTestBase.ensureTwoParticipantsInternal:159 » Timeout
[INFO] 
[ERROR] Tests run: 440, Failures: 1, Errors: 0, Skipped: 432
[INFO] 
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  01:29 min
[INFO] Finished at: 2022-08-03T11:53:32+02:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.2:test (default-test) on project jitsi-meet-torture: There are test failures.
[ERROR] 
[ERROR] Please refer to /home/ligi/git/3rd/jitsi-meet-torture/target/surefire-reports for the individual test results.
[ERROR] Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream.
[ERROR] -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

I think it should not fail here but either:

  • overwrite the file
  • clean the target directory on start

when cleaning the target directory before running I am not seeing this error (but another one)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant