Travis build failure

Having trouble installing or compiling FreeCAD? Get help here.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
User avatar
sgrogan
Veteran
Posts: 6499
Joined: Wed Oct 22, 2014 5:02 pm

Re: Travis build failure

Post by sgrogan »

wmayer wrote: Wed Jan 15, 2020 11:16 pm Ah, thanks for the information.
What should the "rule" be? I see three cases;
FreeCADcmd, no gui,I think the test should fail as it did.
FreeCAD -c, console mode, but the gui stuff has been built, I think the test should pass here, I think this is how Travis is set up, less the "packaging" issue.
FreeCAD, full gui, maybe with something like this https://forum.freecadweb.org/viewtopic.php?f=4&t=42264 we could test the gui as well.
"fight the good fight"
vocx
Veteran
Posts: 5197
Joined: Thu Oct 18, 2018 9:18 pm

Re: Travis build failure

Post by vocx »

sgrogan wrote: Wed Jan 15, 2020 11:31 pm ...
FreeCAD -c, console mode, but the gui stuff has been built, I think the test should pass here, ...
I think the test should fail here. We are telling FreeCAD we want console mode, so it should turn off the GUI somehow, if that is at all possible. Otherwise this -c option makes no sense, and we should only have two options, FreeCAD or FreeCADCmd.
Always add the important information to your posts if you need help. Also see Tutorials and Video tutorials.
To support the documentation effort, and code development, your donation is appreciated: liberapay.com/FreeCAD.
wmayer
Founder
Posts: 20307
Joined: Thu Feb 19, 2009 10:32 am
Contact:

Re: Travis build failure

Post by wmayer »

sgrogan wrote: Wed Jan 15, 2020 11:31 pm FreeCADcmd, no gui,I think the test should fail as it did.
FreeCAD -c, console mode, but the gui stuff has been built, I think the test should pass here, I think this is how Travis is set up, less the "packaging" issue.
FreeCADCmd and FreeCAD -c from a user point of view is exactly the same. So, if for the one case FreeCADGui shouldn't be allowed then for the other case it shouldn't be allowed either.
The technical difference between both versions is that FreeCADCmd doesn't link against any GUI libs so that it can be used on pure server systems where no GUI stuff is installed.
FreeCAD, full gui, maybe with something like this https://forum.freecadweb.org/viewtopic.php?f=4&t=42264 we could test the gui as well.
When doing this then it should be done additionally to the console tests.
User avatar
sgrogan
Veteran
Posts: 6499
Joined: Wed Oct 22, 2014 5:02 pm

Re: Travis build failure

Post by sgrogan »

wmayer wrote: Thu Jan 16, 2020 8:48 am When doing this then it should be done additionally to the console tests.
Agreed.

What do think about disabling SEH for the Travis builds. I can't find a way to return an error if SEH catches a segfault, so a test will time out and the rest of the tests will be skipped. So for Travis it may be better to let the app crash. If we ever deploy for win from Travis this would change.
"fight the good fight"
wmayer
Founder
Posts: 20307
Joined: Thu Feb 19, 2009 10:32 am
Contact:

Re: Travis build failure

Post by wmayer »

sgrogan wrote: Wed Jan 22, 2020 2:03 am
wmayer wrote: Thu Jan 16, 2020 8:48 am When doing this then it should be done additionally to the console tests.
Agreed.

What do think about disabling SEH for the Travis builds. I can't find a way to return an error if SEH catches a segfault, so a test will time out and the rest of the tests will be skipped. So for Travis it may be better to let the app crash. If we ever deploy for win from Travis this would change.
Yes, for the travis tests SEH can be switched off.
triplus
Veteran
Posts: 9471
Joined: Mon Dec 12, 2011 4:45 pm

Re: Travis build failure

Post by triplus »

Reading the discussion i am not sure if any other issues need to be resolved ATM, looking at the logs, the GCC caching issue wasn't resolved yet. Hence lets try to do that:

https://forum.freecadweb.org/viewtopic.php?f=10&t=42615
wmayer
Founder
Posts: 20307
Joined: Thu Feb 19, 2009 10:32 am
Contact:

Re: Travis build failure

Post by wmayer »

Any idea what happened to the Windows build that it again fails?
C:\Users\travis\build\FreeCAD\FreeCAD> % Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 606 0 606 0 0 606 0 --:--:-- --:--:-- --:--:-- 1549
100 5291k 100 5291k 0 0 5291k 0 0:00:01 --:--:-- 0:00:01 5291k
No output has been received in the last 10m0s, this potentially indicates a stalled build or something wrong with the build itself.
Check the details on how to adjust your build configuration on: https://docs.travis-ci.com/user/common- ... s-received
The build has been terminated
Apparently an operation takes more than 10min without output and thus it gets cancelled by the system but I wonder which operation exactly?

EDIT:
See also: https://forum.freecadweb.org/viewtopic. ... 10#p367206
triplus
Veteran
Posts: 9471
Joined: Mon Dec 12, 2011 4:45 pm

Re: Travis build failure

Post by triplus »

As said in the other thread, currently Travis Windows jobs will hang and timeout, whenever cmd.exe /C is used. Not much we can do about it, something for Travis people to sort out.
triplus
Veteran
Posts: 9471
Joined: Mon Dec 12, 2011 4:45 pm

Re: Travis build failure

Post by triplus »

Windows builds are back.
Post Reply