Travis-CI, mac, clang and permanent failure.

Here's the place for discussion related to coding in FreeCAD, C++ or Python. Design, interfaces and structures.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: Travis-CI, mac, clang and permanent failure.

Post by Kunda1 »

PrzemoF wrote: Fri Nov 16, 2018 1:04 pm @Kunda1: do you have any service in mind that could take our logs? chunk.io is invite only now.
The service is now invite-only. Please send an email at hello@chunk.io if you'd like to get access to the service.
yorik wrote:
hey @yorik would you be able to send a message as a core-dev of FreeCAD asking to be invited ?
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
User avatar
PrzemoF
Veteran
Posts: 3520
Joined: Fri Jul 25, 2014 4:52 pm
Contact:

Re: Travis-CI, mac, clang and permanent failure.

Post by PrzemoF »

My fix failed. Someone with mac knowledge is needed to fix it.
User avatar
yorik
Founder
Posts: 13640
Joined: Tue Feb 17, 2009 9:16 pm
Location: Brussels
Contact:

Re: Travis-CI, mac, clang and permanent failure.

Post by yorik »

Kunda1 wrote: Fri Nov 16, 2018 2:39 pm hey @yorik would you be able to send a message as a core-dev of FreeCAD asking to be invited ?
Done!
User avatar
yorik
Founder
Posts: 13640
Joined: Tue Feb 17, 2009 9:16 pm
Location: Brussels
Contact:

Re: Travis-CI, mac, clang and permanent failure.

Post by yorik »

Okay I got a chunk.io access:
Congratulations! You can now access all chunk.io functionalities using the -u flag of cURL, e.g.: curl -u FreeCAD:password -T file chunk.io
Anyone else who needs the password please PM me
User avatar
PrzemoF
Veteran
Posts: 3520
Joined: Fri Jul 25, 2014 4:52 pm
Contact:

Re: Travis-CI, mac, clang and permanent failure.

Post by PrzemoF »

Anyone knows why this is failing? [1]. My macos knowledge is limited to the fact that it's related to unix somehow.

[1] https://travis-ci.org/FreeCAD/FreeCAD/jobs/461836424
tom
Posts: 165
Joined: Sun Mar 29, 2015 9:20 pm

Re: Travis-CI, mac, clang and permanent failure.

Post by tom »

IMHO now it is not an OSX specific problem, but it is Travis related. Travis does not see any output since you are redirecting all stdout into a log file. After 15 minutes of silence Travis assumes that the build process is stuck in an endless loop and thus it kills the build. I have no idea how to solve this. Either we have output on stdout/stderr and Travis fails because of reaching the 1 million lines limit or we have no output and Travis fails, because the build is too silent. We would need some kind of heartbeat for Travis.
tom
Posts: 165
Joined: Sun Mar 29, 2015 9:20 pm

Re: Travis-CI, mac, clang and permanent failure.

Post by tom »

Perhaps that will help:

Instead of

Code: Select all

CMD >> build_output.txt
try this

Code: Select all

CMD | tee -a build_output.txt | sed "s/^.*//" | tr '\n' '.'
Basically, this will print a dot to stdout for each line of the build_output.txt. So, instead of getting over 1 million log lines we will see only 1 million dots on one line while the original output is still being redirected into build_output.txt.
User avatar
PrzemoF
Veteran
Posts: 3520
Joined: Fri Jul 25, 2014 4:52 pm
Contact:

Re: Travis-CI, mac, clang and permanent failure.

Post by PrzemoF »

Thanks!! That makes sense - I'll try and report back.

Edit: I used time stamp - if that fails I'll got for dots or a time stamp once in a while
https://travis-ci.org/FreeCAD/FreeCAD/jobs/463054982
User avatar
sgrogan
Veteran
Posts: 6499
Joined: Wed Oct 22, 2014 5:02 pm

Re: Travis-CI, mac, clang and permanent failure.

Post by sgrogan »

PrzemoF wrote: Mon Dec 03, 2018 2:34 pm My macos knowledge is limited to the fact that it's related to unix somehow.
Me too ;)
I think the root cause is here: https://forum.freecadweb.org/viewtopic.php?f=4&t=31694
Related: https://docs.travis-ci.com/user/reference/osx/
I think Peter might be lurking: https://www.somsubhra.com/github-releas ... ry=freecad
"fight the good fight"
Post Reply