[new failures] Failing tests: path wb

Having trouble installing or compiling FreeCAD? Get help here.
looo
Posts: 2821
Joined: Mon Nov 11, 2013 5:29 pm

[new failures] Failing tests: path wb

Postby looo » Sun Aug 25, 2019 9:44 am

Sunday builds fail due to path tests.

Code: Select all

ERROR: test00 (PathTests.TestPathHelix.TestPathHelix)
Verify Helix does not throw an exception.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "$PREFIX/Mod/Path/PathTests/TestPathHelix.py", line 39, in setUp
    self.doc = FreeCAD.open(FreeCAD.getHomePath() + 'Mod/Path/PathTests/test_holes00.fcstd')
OSError: File '$PREFIX/Mod/Path/PathTests/test_holes00.fcstd' does not exist!

======================================================================
ERROR: test01 (PathTests.TestPathHelix.TestPathHelix)
Verify Helix generates proper holes from model
----------------------------------------------------------------------
Traceback (most recent call last):
  File "$PREFIX/Mod/Path/PathTests/TestPathHelix.py", line 39, in setUp
    self.doc = FreeCAD.open(FreeCAD.getHomePath() + 'Mod/Path/PathTests/test_holes00.fcstd')
OSError: File '$PREFIX/Mod/Path/PathTests/test_holes00.fcstd' does not exist!

======================================================================
ERROR: test02 (PathTests.TestPathHelix.TestPathHelix)
Verify Helix generates proper holes for rotated model
----------------------------------------------------------------------
Traceback (most recent call last):
  File "$PREFIX/Mod/Path/PathTests/TestPathHelix.py", line 39, in setUp
    self.doc = FreeCAD.open(FreeCAD.getHomePath() + 'Mod/Path/PathTests/test_holes00.fcstd')
OSError: File '$PREFIX/Mod/Path/PathTests/test_holes00.fcstd' does not exist!

======================================================================
ERROR: test03 (PathTests.TestPathHelix.TestPathHelix)
Verify Helix generates proper holes for rotated base model
----------------------------------------------------------------------
Traceback (most recent call last):
  File "$PREFIX/Mod/Path/PathTests/TestPathHelix.py", line 39, in setUp
    self.doc = FreeCAD.open(FreeCAD.getHomePath() + 'Mod/Path/PathTests/test_holes00.fcstd')
OSError: File '$PREFIX/Mod/Path/PathTests/test_holes00.fcstd' does not exist!

======================================================================
ERROR: test04 (PathTests.TestPathHelix.TestPathHelix)
Verify Helix generates proper holes for rotated clone base model
----------------------------------------------------------------------
Traceback (most recent call last):
  File "$PREFIX/Mod/Path/PathTests/TestPathHelix.py", line 39, in setUp
    self.doc = FreeCAD.open(FreeCAD.getHomePath() + 'Mod/Path/PathTests/test_holes00.fcstd')
OSError: File '$PREFIX/Mod/Path/PathTests/test_holes00.fcstd' does not exist!

----------------------------------------------------------------------
Ran 340 tests in 26.112s

https://circleci.com/gh/looooo/freecad- ... tification

https://circleci.com/gh/looooo/freecad- ... tification
Last edited by looo on Sun Sep 01, 2019 1:44 pm, edited 2 times in total.
User avatar
sgrogan
Posts: 5330
Joined: Wed Oct 22, 2014 5:02 pm

Re: Failing tests: path wb

Postby sgrogan » Sun Aug 25, 2019 3:08 pm

looo wrote:
Sun Aug 25, 2019 9:44 am
Sunday builds fail due to path tests.
See Here: https://github.com/FreeCAD/FreeCAD/pull/2451
mlampert
Posts: 1306
Joined: Fri Sep 16, 2016 9:28 pm

Re: Failing tests: path wb

Postby mlampert » Sun Aug 25, 2019 6:35 pm

apologies - and thanks @sgrogan for cleaning up my mess :oops:
looo
Posts: 2821
Joined: Mon Nov 11, 2013 5:29 pm

Re: Failing tests: path wb

Postby looo » Mon Aug 26, 2019 2:34 pm

Thanks. Works now.
looo
Posts: 2821
Joined: Mon Nov 11, 2013 5:29 pm

Re: [new failures] Failing tests: path wb

Postby looo » Sun Sep 01, 2019 1:48 pm

There are some new failures when testing with gui:

1.

Code: Select all

Traceback (most recent call last):
  File "/home/lo/conda/envs/freecadqt5.12/lib/python3.7/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/home/lo/conda/envs/freecadqt5.12/lib/python3.7/unittest/case.py", line 615, in run
    testMethod()
  File "/home/lo/conda/envs/freecadqt5.12/Mod/Fem/femtest/testsolverframework.py", line 247, in test_solver_framework
    self.assertFalse(ret, "GMSH geo write file test failed.\n{}".format(ret))
  File "/home/lo/conda/envs/freecadqt5.12/lib/python3.7/unittest/case.py", line 686, in assertFalse
    raise self.failureException(msg)
AssertionError: 'Comparing /home/lo/conda/envs/freecadqt5.12/Mod/Fem/femtest/testfiles/elmer/group_mesh.geo to /tmp/FEM_unittests/FEM_solverframework/group_mesh.geo failed!\n--- \n+++ \n@@ -1,0 +2 @@\n+Merge  + self.temp_file_geometry + ;\n@@ -3,4 +4,4 @@\n-Physical Surface("Face1") = {1};\n-Physical Surface("Face2") = {2};\n-Physical Surface("Face6") = {6};\n-Physical Volume("Solid1") = {1};\n+Physical Surface( + group + ) = {1};\n+Physical Surface( + group + ) = {2};\n+Physical Surface( + group + ) = {6};\n+Physical Volume( + group + ) = {1};\n' is not false : GMSH geo write file test failed.
Comparing /home/lo/conda/envs/freecadqt5.12/Mod/Fem/femtest/testfiles/elmer/group_mesh.geo to /tmp/FEM_unittests/FEM_solverframework/group_mesh.geo failed!
--- 
+++ 
@@ -1,0 +2 @@
+Merge  + self.temp_file_geometry + ;
@@ -3,4 +4,4 @@
-Physical Surface("Face1") = {1};
-Physical Surface("Face2") = {2};
-Physical Surface("Face6") = {6};
-Physical Volume("Solid1") = {1};

2.

Code: Select all

Traceback (most recent call last):
  File "/home/lo/conda/envs/freecadqt5.12/lib/python3.7/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/home/lo/conda/envs/freecadqt5.12/lib/python3.7/unittest/case.py", line 615, in run
    testMethod()
  File "/home/lo/conda/envs/freecadqt5.12/Mod/Path/PathTests/TestPathSetupSheet.py", line 53, in test00
    attrs = ss.templateAttributes(True, True)
  File "/home/lo/conda/envs/freecadqt5.12/Mod/Path/PathScripts/PathSetupSheet.py", line 192, in templateAttributes
    attrs[Template.CoolantMode] = self.obj.CoolantMode.UserString
AttributeError: 'str' object has no attribute 'UserString'
User avatar
Kunda1
Posts: 5505
Joined: Thu Jan 05, 2017 9:03 pm

Re: [new failures] Failing tests: path wb

Postby Kunda1 » Sun Sep 01, 2019 3:54 pm

Code: Select all

Traceback (most recent call last):
  File "/home/lo/conda/envs/freecadqt5.12/lib/python3.7/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/home/lo/conda/envs/freecadqt5.12/lib/python3.7/unittest/case.py", line 615, in run
    testMethod()
  File "/home/lo/conda/envs/freecadqt5.12/Mod/Fem/femtest/testsolverframework.py", line 247, in test_solver_framework
    self.assertFalse(ret, "GMSH geo write file test failed.\n{}".format(ret))
  File "/home/lo/conda/envs/freecadqt5.12/lib/python3.7/unittest/case.py", line 686, in assertFalse
    raise self.failureException(msg)
AssertionError: 'Comparing /home/lo/conda/envs/freecadqt5.12/Mod/Fem/femtest/testfiles/elmer/group_mesh.geo to /tmp/FEM_unittests/FEM_solverframework/group_mesh.geo failed!\n--- \n+++ \n@@ -1,0 +2 @@\n+Merge  + self.temp_file_geometry + ;\n@@ -3,4 +4,4 @@\n-Physical Surface("Face1") = {1};\n-Physical Surface("Face2") = {2};\n-Physical Surface("Face6") = {6};\n-Physical Volume("Solid1") = {1};\n+Physical Surface( + group + ) = {1};\n+Physical Surface( + group + ) = {2};\n+Physical Surface( + group + ) = {6};\n+Physical Volume( + group + ) = {1};\n' is not false : GMSH geo write file test failed.
Comparing /home/lo/conda/envs/freecadqt5.12/Mod/Fem/femtest/testfiles/elmer/group_mesh.geo to /tmp/FEM_unittests/FEM_solverframework/group_mesh.geo failed!
Looks like FEM as well
Want to contribute back to FC? Checkout:
#lowhangingfruit | Use the Source, Luke. | How to Help FreeCAD | How to report FC bugs and features