Ubuntu Build is stuck on test phase
I am creating a Javafx application which opens and closes windows during my tests. I am testing on Windows, Mac and Ubuntu and the build completes fine on windows and mac but always gets stuck on the first test until I have to cancel it or it stays like that for an hour and fails.
You can see one of my builds here: https://ci.appveyor.com/project/Marcsllite/rad-shipment-calc/builds...
I have tried running the tests on different Ubuntu images, removing the first test file to see if it was related to that, and adding export DISPLAY=:99.0
like I had to for my travis builds. I looked through the discussions and couldn't find any that helped me. I believe this has something to do with needing a gui for the tests but I am not sure. Any assistance would be greatly appreciated.
Comments are currently closed for this discussion. You can start a new one.
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
Support Staff 1 Posted by Feodor Fitsner on 11 Jul, 2021 11:24 PM
It could be Build Agent crashes on Ubuntu, for some reason. Try enabling SSH to the build worker and then check build agent logs:
2 Posted by marcsllite on 15 Jul, 2021 02:37 PM
It looks like the build agent doesn't show that it crashed. I think it's a maven issue.
I looked into maven test freezing and followed this guide i found which showed me that this is all caused by JavaFX waiting for the start of the fx thread.
I updated my tests to use junit 5 and started using xvfb for the display
Xvfb :99 & export DISPLAY=:99
and everything is working fine. Thanks for the assistancemarcsllite closed this discussion on 15 Jul, 2021 02:37 PM.