Conversation
@jmwright @RustyVermeer I'm having problems getting this small patch to pass tests on python 3.6-- its getting a freecad segfault running tests. I think i remember some conversations around this. I ran it 3 times in a row and its repeatable. Anyone have ideas? I really doubt my changes actually introduced this problem though i suppose its possible. |
I suspect this could be because we're using freecad 0.17 as a part of the python 3.6 build-- that's not stable yet is it? |
@dcowden To my knowledge there's not a Python 3 version of 0.16, and probably never will be. 0.17 is not stable yet, but it is in feature freeze. I think that @adam-urbanczyk did something temporary with the version that Anaconda installs on Travis to get rid of the segfaults. Maybe he can point you in the right direction? |
@adam-urbanczyk ideas on how to get rid of this segfault? |
@dcowden I am using this FreeCAD build for CI: You can install it into a new conda env like this:
Not sure though how to marry this with docker. Would this help: https://github.com/rothnic/docker-tinyconda ? |
I've done almost exactly that with docker-builds for virtual environments in I wanted an environment that I could use to quickly run unit-tests, and to test library deployment, so I staged it into 3 separate environments: a base environment, then using the base containers built the The conda command is in: cqparts/env in the If you'd like me to implement the same strategy in |
@adam-urbanczyk thanks. The segfault i'm getting isnt in the docker build. Actually, the docker build works fine. its the main build that's failing-- its getting a segfault when it does python runtests.py. Can you have a look at the most recent failure and see if it looks familiar? Though this PR is about docker, I'm pretty sure its not related to Docker. the only change I made was a change to a python command line file. |
@adam-urbanczyk I dont know-- which one do you think is the best one to use? Is there a reason we might prefer the occt version or the non-occt version? it appears that either your solution or mine will work, but not sure which is best. |
@dcowden I was not precise. We need to define the OCCT version exactly to avoid this kind of mess in the future. So either:
or
In the latter case, you'd have to still put this explicitly into travis.yml. |
thanks @adam-urbanczyk for the help getting the segfault fixed! |
not working on python2-- and docker hub doesnt run the tests when it builds, so
the builds appear to work but then dont!
this fixes it though-- still need to somehow get dockerhub to run the build and test script, not just the docker image.