The Travis test failure thread

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!
Post Reply
abdullah
Veteran
Posts: 4935
Joined: Sun May 04, 2014 3:16 pm
Contact:

The Travis test failure thread

Post by abdullah »

Hi, one thread for reporting test failures :)

So as the title says we have a failing tests in the wild:

Code: Select all

======================================================================
ERROR: test_tetra10_yml (femtest.testmesh.TestMeshEleTetra10)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Users\travis\build\FreeCAD\FreeCAD\build\Mod\Fem\femtest\testmesh.py"
, line 474, in test_tetra10_yml
    write(self.femmesh, outfile)
  File "C:\Users\travis\build\FreeCAD\FreeCAD\build\Mod\Fem\feminout\importYamlJ
sonMesh.py", line 203, in write
    mesh_data = importToolsFem.make_dict_from_femmesh(fem_mesh)
  File "C:\Users\travis\build\FreeCAD\FreeCAD\build\Mod\Fem\feminout\importTools
Fem.py", line 288, in make_dict_from_femmesh
    for e in femmesh.Edges:
AttributeError: 'str' object has no attribute 'Edges'
======================================================================
FAIL: test_1_static_analysis (femtest.testccxtools.TestCcxTools)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Users\travis\build\FreeCAD\FreeCAD\build\Mod\Fem\femtest\testccxtools
.py", line 220, in test_1_static_analysis
    "ccxtools write_inp_file test failed.\n{}".format(ret)
AssertionError: 'Comparing C:/Users/travis/build/FreeCAD/FreeCAD/build/Mod\\Fem\
\femtest\\testfiles\\ccx\\cube_static.inp to C:\\Users\\travis\\AppData\\Local\\
Temp\\FEM_unittests\\FEM_ccx_static\\Mesh.inp failed!\n--- \n+++ \n@@ -590,0 +59
1,5 @@\n+** outputs --> dat file\n+** reaction forces for Constraint fixed\n+*NO
DE PRINT, NSET=FemConstraintFixed, TOTALS=ONLY\n+RF\n+\n' is not false : ccxtool
s write_inp_file test failed.
Comparing C:/Users/travis/build/FreeCAD/FreeCAD/build/Mod\Fem\femtest\testfiles\
ccx\cube_static.inp to C:\Users\travis\AppData\Local\Temp\FEM_unittests\FEM_ccx_
static\Mesh.inp failed!
---
+++
@@ -590,0 +591,5 @@
+** outputs --> dat file
+** reaction forces for Constraint fixed
+*NODE PRINT, NSET=FemConstraintFixed, TOTALS=ONLY
+RF
+
======================================================================
FAIL: test_2_static_multiple_material (femtest.testccxtools.TestCcxTools)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Users\travis\build\FreeCAD\FreeCAD\build\Mod\Fem\femtest\testccxtools
.py", line 408, in test_2_static_multiple_material
    "ccxtools write_inp_file test failed.\n{}".format(ret)
AssertionError: 'Comparing C:/Users/travis/build/FreeCAD/FreeCAD/build/Mod\\Fem\
\femtest\\testfiles\\ccx\\multimat.inp to C:\\Users\\travis\\AppData\\Local\\Tem
p\\FEM_unittests\\FEM_ccx_multimat/Mesh.inp failed!\n--- \n+++ \n@@ -1282,0 +128
3,5 @@\n+** outputs --> dat file\n+** reaction forces for Constraint fixed\n+*NO
DE PRINT, NSET=ConstraintFixed, TOTALS=ONLY\n+RF\n+\n' is not false : ccxtools w
rite_inp_file test failed.
Comparing C:/Users/travis/build/FreeCAD/FreeCAD/build/Mod\Fem\femtest\testfiles\
ccx\multimat.inp to C:\Users\travis\AppData\Local\Temp\FEM_unittests\FEM_ccx_mul
timat/Mesh.inp failed!
---
+++
@@ -1282,0 +1283,5 @@
+** outputs --> dat file
+** reaction forces for Constraint fixed
+*NODE PRINT, NSET=ConstraintFixed, TOTALS=ONLY
+RF
+
======================================================================
FAIL: test_3_freq_analysis (femtest.testccxtools.TestCcxTools)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Users\travis\build\FreeCAD\FreeCAD\build\Mod\Fem\femtest\testccxtools
.py", line 524, in test_3_freq_analysis
    "ccxtools write_inp_file test failed.\n{}".format(ret)
AssertionError: 'Comparing C:/Users/travis/build/FreeCAD/FreeCAD/build/Mod\\Fem\
\femtest\\testfiles\\ccx\\cube_frequency.inp to C:\\Users\\travis\\AppData\\Loca
l\\Temp\\FEM_unittests\\FEM_ccx_frequency\\Mesh.inp failed!\n--- \n+++ \n@@ -464
,0 +465,2 @@\n+** outputs --> dat file\n+** reaction forces for Constraint fixed
\n' is not false : ccxtools write_inp_file test failed.
Comparing C:/Users/travis/build/FreeCAD/FreeCAD/build/Mod\Fem\femtest\testfiles\
ccx\cube_frequency.inp to C:\Users\travis\AppData\Local\Temp\FEM_unittests\FEM_c
cx_frequency\Mesh.inp failed!
---
+++
@@ -464,0 +465,2 @@
+** outputs --> dat file
+** reaction forces for Constraint fixed
======================================================================
FAIL: test_4_thermomech_analysis (femtest.testccxtools.TestCcxTools)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Users\travis\build\FreeCAD\FreeCAD\build\Mod\Fem\femtest\testccxtools
.py", line 756, in test_4_thermomech_analysis
    "ccxtools write_inp_file test failed.\n{}".format(ret)
AssertionError: 'Comparing C:/Users/travis/build/FreeCAD/FreeCAD/build/Mod\\Fem\
\femtest\\testfiles\\ccx\\spine_thermomech.inp to C:\\Users\\travis\\AppData\\Lo
cal\\Temp\\FEM_unittests\\FEM_ccx_thermomech\\Mesh.inp failed!\n--- \n+++ \n@@ -
199,0 +200,5 @@\n+** outputs --> dat file\n+** reaction forces for Constraint fi
xed\n+*NODE PRINT, NSET=FemConstraintFixed, TOTALS=ONLY\n+RF\n+\n' is not false
: ccxtools write_inp_file test failed.
Comparing C:/Users/travis/build/FreeCAD/FreeCAD/build/Mod\Fem\femtest\testfiles\
ccx\spine_thermomech.inp to C:\Users\travis\AppData\Local\Temp\FEM_unittests\FEM
_ccx_thermomech\Mesh.inp failed!
---
+++
@@ -199,0 +200,5 @@
+** outputs --> dat file
+** reaction forces for Constraint fixed
+*NODE PRINT, NSET=FemConstraintFixed, TOTALS=ONLY
+RF
+
======================================================================
FAIL: test_solver_framework (femtest.testsolverframework.TestSolverFrameWork)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Users\travis\build\FreeCAD\FreeCAD\build\Mod\Fem\femtest\testsolverfr
amework.py", line 178, in test_solver_framework
    self.assertFalse(ret, "ccxtools write_inp_file test failed.\n{}".format(ret)
)
AssertionError: 'Comparing C:/Users/travis/build/FreeCAD/FreeCAD/build/Mod\\Fem\
\femtest\\testfiles\\ccx\\cube_static.inp to C:\\Users\\travis\\AppData\\Local\\
Temp\\FEM_unittests\\FEM_solverframework\\Mesh.inp failed!\n--- \n+++ \n@@ -590,
0 +591,5 @@\n+** outputs --> dat file\n+** reaction forces for Constraint fixed\
n+*NODE PRINT, NSET=FemConstraintFixed, TOTALS=ONLY\n+RF\n+\n' is not false : cc
xtools write_inp_file test failed.
Comparing C:/Users/travis/build/FreeCAD/FreeCAD/build/Mod\Fem\femtest\testfiles\
ccx\cube_static.inp to C:\Users\travis\AppData\Local\Temp\FEM_unittests\FEM_solv
erframework\Mesh.inp failed!
---
+++
@@ -590,0 +591,5 @@
+** outputs --> dat file
+** reaction forces for Constraint fixed
+*NODE PRINT, NSET=FemConstraintFixed, TOTALS=ONLY
+RF
+
----------------------------------------------------------------------
Ran 334 tests in 32.523s
FAILED (failures=5, errors=1)
As they appear to be FEM, I ping the FEM master:
bernd wrote: ping
User avatar
wandererfan
Veteran
Posts: 6326
Joined: Tue Nov 06, 2012 5:42 pm
Contact:

Re: The Travis test failure thread

Post by wandererfan »

Cross post re potentially missing libraries for QtXmlPatterns on Travis Win builds.
abdullah
Veteran
Posts: 4935
Joined: Sun May 04, 2014 3:16 pm
Contact:

Re: The Travis test failure thread

Post by abdullah »

abdullah
Veteran
Posts: 4935
Joined: Sun May 04, 2014 3:16 pm
Contact:

Re: The Travis test failure thread

Post by abdullah »

We are having a new issue with test failure.

https://github.com/FreeCAD/FreeCAD/commits/master

Failure is:

Code: Select all

======================================================================
FAIL: test_1_static_analysis (femtest.testccxtools.TestCcxTools)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Users\travis\build\FreeCAD\FreeCAD\build\Mod\Fem\femtest\testccxtools
.py", line 268, in test_1_static_analysis
    "Invalid results read from .frd file"
AssertionError: True is not false : Invalid results read from .frd file
----------------------------------------------------------------------
Ran 336 tests in 34.143s
FAILED (failures=1)
Full log:
https://travis-ci.org/FreeCAD/FreeCAD/jobs/554842187

I guess this one goes to bern...
bernd wrote:... ping ...
Russ4262
Posts: 953
Joined: Sat Jun 30, 2018 3:22 pm
Location: Oklahoma
Contact:

Re: The Travis test failure thread

Post by Russ4262 »

Starting prior to PR #2330, or there abouts, Travis CI is failing due to FEM related test.

Code: Select all

======================================================================
FAIL: test_1_static_analysis (femtest.testccxtools.TestCcxTools)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Users\travis\build\FreeCAD\FreeCAD\build\Mod\Fem\femtest\testccxtools
.py", line 268, in test_1_static_analysis
    "Invalid results read from .frd file"
AssertionError: True is not false : Invalid results read from .frd file
----------------------------------------------------------------------
Russ
User avatar
bernd
Veteran
Posts: 12851
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: The Travis test failure thread

Post by bernd »

:o :oops: My one ... I missed it. As soon as I am on a computer I will try fix it. For me on linux test run fine must be on windows ...
User avatar
bernd
Veteran
Posts: 12851
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: The Travis test failure thread

Post by bernd »

mlampert
Veteran
Posts: 1772
Joined: Fri Sep 16, 2016 9:28 pm

Re: The Travis test failure thread

Post by mlampert »

Does the trick for me - thanks.
User avatar
apeltauer
Posts: 399
Joined: Fri Aug 11, 2017 2:19 pm

Re: The Travis test failure thread

Post by apeltauer »

also works again on windows 10...
thanks...
Post Reply