Skip to content
This repository has been archived by the owner on Feb 9, 2021. It is now read-only.

fixes docker problem #237

Merged
merged 3 commits into from Mar 11, 2018
Merged

fixes docker problem #237

merged 3 commits into from Mar 11, 2018

Conversation

dcowden
Copy link
Owner

@dcowden dcowden commented Mar 8, 2018

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.

@coveralls
Copy link

coveralls commented Mar 8, 2018

Coverage Status

Coverage remained the same at 92.194% when pulling 5af3fa9 on fix_docker_problem into eb199ba on master.

@dcowden
Copy link
Owner Author

dcowden commented Mar 8, 2018

@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.

@dcowden
Copy link
Owner Author

dcowden commented Mar 8, 2018

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?

@jmwright
Copy link
Collaborator

jmwright commented Mar 8, 2018

@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?

@dcowden
Copy link
Owner Author

dcowden commented Mar 9, 2018

@adam-urbanczyk ideas on how to get rid of this segfault?

@adam-urbanczyk
Copy link
Contributor

@dcowden I am using this FreeCAD build for CI:
https://anaconda.org/freecad/freecad/0.17/download/linux-64/freecad-0.17-py36_11.tar.bz2

You can install it into a new conda env like this:

conda create -y -q -n freecad_cq3 -c freecad -c conda-forge freecad=0.17=py36_11 python=3.6 pyparsing conda mock;

Not sure though how to marry this with docker. Would this help: https://github.com/rothnic/docker-tinyconda ?

@fragmuffin
Copy link
Contributor

I've done almost exactly that with docker-builds for virtual environments in cqparts.

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 unittest and deploytest docker containers for both ubuntu-py2 and ubuntu-py3 environments.

The conda command is in: cqparts/env in the ubuntu-py3/setup.sh file.

If you'd like me to implement the same strategy in cadquery, I'd be happy to create a PR for it... just say the word.

@dcowden
Copy link
Owner Author

dcowden commented Mar 10, 2018

@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
Copy link
Contributor

@dcowden I think all this was caused by recently changed latest OCCT package version in the conda-forge channel. I fixed the version in #239

@adam-urbanczyk
Copy link
Contributor

@dcowden #239 seems to be passing. In my PR FreeCAD and OCCT versions are fixed to:

freecad=0.17=py36_11 occt=7.2.0=occt7.2.0_0

Now I realized that you just pushed a change to travis.yml to use freecad=0.17=py36_12 Should I update my PR? Or do we leave the current version?

@dcowden
Copy link
Owner Author

dcowden commented Mar 10, 2018

@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.

@adam-urbanczyk
Copy link
Contributor

@dcowden I was not precise. We need to define the OCCT version exactly to avoid this kind of mess in the future. So either:

freecad=0.17=py36_11 occt=7.2.0=occt7.2.0_0 (my PR)

or

freecad=0.17=py36_12 occt=7.2.0=2 (what is used implicitly in your PR)

In the latter case, you'd have to still put this explicitly into travis.yml.

@dcowden
Copy link
Owner Author

dcowden commented Mar 11, 2018

thanks @adam-urbanczyk for the help getting the segfault fixed!

@dcowden dcowden merged commit 1348e8d into master Mar 11, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants