Open andrese02 opened 1 year ago
Thank you for the extensive report and we are taking a deeper look in these as we are having hard time reproduce the errors. SignatureFinalizingTest we were able to repeat and looking into fixing it. Also would it be possible for you to try in SessionStatusReprocessingServiceTest class increase assertMaxReprocessingAttempts timeout values (e.g. from 60 yo 180) and see if that´s any help?
PS! There is a paremeter skipTests=True what can be used for compiling and image building without running tests, e.g. ./mvnw clean install -DskipTests=True
.
I tested the timeout "fix" and it worked. This leads me to believe that SessionStatusReprocessingServiceTest results are actually timeout related. As i was testing and trying to get the docker up and running, i recompiled and ran the tests multiple times. Sometimes the same tests would fail, other times not, sometimes no tests failed. There were couple of other tests that behaved similary, but unfortunately i wasn't able to reproduce the same result multiple times. Same goes to the SmartIdApplicationTests that seemed to fail at random intervals
So i assume that most of the failures are related to network speed or external servers load.
Main goal is to run version 2.6.0 inside docker.
Environment:
Code checkout and init
Compiling
Failed tests reports: siga_2.6.0\siga-signature-service\target\surefire-reports\ee.openeid.siga.service.signature.container.status.SessionStatusReprocessingServiceTest.txt 20230201_01_00_SessionStatusReprocessingServiceTest.txt siga_2.6.0\siga-signature-service\target\surefire-reports\ee.openeid.siga.service.signature.SignatureFinalizingTest.txt 20230201_01_00_SignatureFinalizingTest.txt
Simply disabled the said tests (commented out from the Java code) and recompiled. All other tests succeeded and compilation was finished.
Build docker image
Failed tests report: siga_2.6.0\siga-webapp\target\surefire-reports\ee.openeid.siga.SmartIdApplicationTests.txt 20230201_01_01_SmartIdApplicationTests.txt