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.
User avatar
Kunda1
Posts: 5806
Joined: Thu Jan 05, 2017 9:03 pm

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

Postby Kunda1 » Fri Nov 16, 2018 2:39 pm

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 ?
Want to contribute back to FC? Checkout:
#lowhangingfruit | Use the Source, Luke. | How to Help FreeCAD | How to report FC bugs and features
User avatar
PrzemoF
Posts: 2654
Joined: Fri Jul 25, 2014 4:52 pm
Contact:

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

Postby PrzemoF » Fri Nov 16, 2018 3:18 pm

My fix failed. Someone with mac knowledge is needed to fix it.
User avatar
yorik
Site Admin
Posts: 11567
Joined: Tue Feb 17, 2009 9:16 pm
Location: São Paulo, Brazil
Contact:

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

Postby yorik » Fri Nov 16, 2018 7:23 pm

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
PrzemoF
Posts: 2654
Joined: Fri Jul 25, 2014 4:52 pm
Contact:

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

Postby PrzemoF » Wed Nov 28, 2018 2:44 pm

I'm trying to get it fixed, but there is a cache error [1]. That this function: [2]

[1] https://travis-ci.org/FreeCAD/FreeCAD/j ... 84288#L204
[2] https://github.com/FreeCAD/FreeCAD-port ... rs.sh#L203
User avatar
yorik
Site Admin
Posts: 11567
Joined: Tue Feb 17, 2009 9:16 pm
Location: São Paulo, Brazil
Contact:

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

Postby yorik » Thu Nov 29, 2018 1:24 pm

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
Posts: 2654
Joined: Fri Jul 25, 2014 4:52 pm
Contact:

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

Postby PrzemoF » Mon Dec 03, 2018 2:34 pm

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: 65
Joined: Sun Mar 29, 2015 9:20 pm

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

Postby tom » Mon Dec 03, 2018 9:29 pm

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: 65
Joined: Sun Mar 29, 2015 9:20 pm

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

Postby tom » Mon Dec 03, 2018 9:49 pm

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
Posts: 2654
Joined: Fri Jul 25, 2014 4:52 pm
Contact:

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

Postby PrzemoF » Mon Dec 03, 2018 10:04 pm

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
Posts: 5425
Joined: Wed Oct 22, 2014 5:02 pm

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

Postby sgrogan » Mon Dec 03, 2018 11:05 pm

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