kagemomiji / airsonic-advanced

airsonic-advanced
GNU General Public License v3.0
152 stars 14 forks source link

[Bug]: tests of PlayQueueService are unstable #245

Closed kagemomiji closed 1 year ago

kagemomiji commented 1 year ago

What happened?

Tests of PlayQueueService are unsable and CI for testing fails randomly.

Steps to reproduce

  1. Create PR and executes CI for testing.

Version

11.1.x (Edge)

Version Detail

No response

Operating System

ubuntu-latest(GitHub Action)

Java Version

17.0.5

Database

PostgreSQL 13.x, PostgreSQL 14.x, MariaDB 8.x, Mysql 10.x

DB Detail

No response

Configuration paramter

Parameters are written here.

https://github.com/kagemomiji/airsonic-advanced/blob/5ae84133dddc0cd111cefe7b0a0831fd49c42d54/.github/workflows/pr_ci.yml#L44-L122

Proxy Server

No response

client detail

No response

language

None

Relevant log output

[INFO] 
[INFO] Results:
[INFO] 
Error:  Errors: 
Error:  org.airsonic.player.service.PlayQueueServiceTest$NonJukeboxTests.testStop
[INFO]   Run 1: PASS
Error:    Run 2: PlayQueueServiceTest$NonJukeboxTests.testStop:148 » Execution Wanted but not i...
[INFO] 
[INFO] 
Error:  Tests run: 425, Failures: 0, Errors: 1, Skipped: 0
[INFO] 
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for Airsonic 11.1.3-SNAPSHOT:
[INFO] 
[INFO] Airsonic ........................................... SUCCESS [  1.086 s]
[INFO] Subsonic REST API .................................. SUCCESS [  4.144 s]
[INFO] Sonos API .......................................... SUCCESS [  4.332 s]
[INFO] Airsonic Main ...................................... FAILURE [09:00 min]
[INFO] Airsonic Docker Image .............................. SKIPPED
[INFO] Airsonic Integration Test .......................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  09:10 min
[INFO] Finished at: 2023-07-01T12:35:00Z
[INFO] ------------------------------------------------------------------------
Error:  Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.2:test (default-test) on project airsonic-main: There are test failures.
Error:  
Error:  Please refer to /home/runner/work/airsonic-advanced/airsonic-advanced/airsonic-main/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
Error:  
Error:  After correcting the problems, you can resume the build with the command
Error:    mvn <args> -rf :airsonic-main
Error: Process completed with exit code 1.