[SOLVED] FreeCAD tests fail

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!
User avatar
PrzemoF
Veteran
Posts: 3520
Joined: Fri Jul 25, 2014 4:52 pm
Contact:

Re: FreeCAD tests fail - help needed

Post by PrzemoF »

To reproduce the error on any machine with docker run:

Code: Select all

docker run -t -i przemof/executor /bin/bash
^^^ use przemof/executor-debug to have vim/nano installed
then clone FreeCAD e.g.

Code: Select all

git clone https://gitlab.com/PrzemoF/FreeCAD
and build

Code: Select all

mkdir build && cd build && cmake ../FreeCAD && cmake --build /build
then go to bin directory and run tests

Code: Select all

cd bin
./FreeCADCmd -t 0
User avatar
PrzemoF
Veteran
Posts: 3520
Joined: Fri Jul 25, 2014 4:52 pm
Contact:

Re: FreeCAD tests fail - help needed

Post by PrzemoF »

bernd wrote: Fri Jul 23, 2021 8:08 pm TestFemApp runs fine for me on my local machine! which commit fails for you? which test fails? I have one test desctivated allready becase it fails on other systems even if passes on my system.
Thanks for the info! Looks like the test system is not as stable as it should be.

I need to verify if my tests were on the up-to-date source. I potentially tested wrong branch. Sorry for the confusion.
User avatar
PrzemoF
Veteran
Posts: 3520
Joined: Fri Jul 25, 2014 4:52 pm
Contact:

Re: FreeCAD tests fail - help needed

Post by PrzemoF »

I FOIUND IT!!!! Hard to find if you don't know how the unittest works. The degree sign in comment line:
'''Verify chamfer depth and offset for a 90° v-bit.'''

https://github.com/FreeCAD/FreeCAD/blob ... urr.py#L55

breaks the unittest. It doesn't show up as an error because the string is OK, but cannot be digested by the unittest.

Edit: commit that should fix the problem:
https://gitlab.com/PrzemoF/FreeCAD/-/co ... f95ba6aa4e

Edit2: Tests in progress.... the test passed, but there is another error
User avatar
PrzemoF
Veteran
Posts: 3520
Joined: Fri Jul 25, 2014 4:52 pm
Contact:

Re: FreeCAD tests fail - help needed

Post by PrzemoF »

My patch fixes the deg problem, but there is another one:
https://gitlab.com/PrzemoF/FreeCAD/-/jobs/1449528915

It might be just missing yaml module
User avatar
PrzemoF
Veteran
Posts: 3520
Joined: Fri Jul 25, 2014 4:52 pm
Contact:

Re: FreeCAD tests fail - help needed

Post by PrzemoF »

Missing yaml fixed, but there is more of the same. Could it be python version?

Code: Select all

testUnicodeLabel (UnicodeTests.UnicodeBasicCases) ... ok
testAll (TestPythonSyntax.PythonSyntaxTestCase) ... ok
======================================================================
ERROR: testSchemeTranslation (UnitTests.UnitBasicCases)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builds/PrzemoF/FreeCAD/build/Mod/Test/UnitTests.py", line 128, in testSchemeTranslation
    print (q1, " : ", q2, " : ", t, " : ", i, " : ", val)
UnicodeEncodeError: 'ascii' codec can't encode characters in position 21-22: ordinal not in range(128)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "/builds/PrzemoF/FreeCAD/build/Mod/Test/UnitTests.py", line 130, in testSchemeTranslation
    print ("{}: {}".format(str(e), t[0]))
UnicodeEncodeError: 'ascii' codec can't encode characters in position 103-104: ordinal not in range(128)
======================================================================
FAIL: test_constraint_centrif (femtest.app.test_solver_calculix.TestSolverCalculix)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builds/PrzemoF/FreeCAD/build/Mod/Fem/femtest/app/test_solver_calculix.py", line 144, in test_constraint_centrif
    self.input_file_writing_test(get_namefromdef("test_"))
  File "/builds/PrzemoF/FreeCAD/build/Mod/Fem/femtest/app/test_solver_calculix.py", line 322, in input_file_writing_test
    self.assertFalse(
AssertionError: 'Comparing /builds/PrzemoF/FreeCAD/build/Mod/Fem/femtest/data/calculix/constraint_centrif.inp to /tmp/FEM_unittests/solver_calculix_constraint_centrif_2b438be10356/Mesh.inp failed!\n--- \n+++ \n@@ -18683,40 +18683,769 @@\n-3,\n-9,\n-17,\n-23,\n-286,\n-287,\n-288,\n-482,\n-483,\n-484,\n-678,\n-940,\n-941,\n-942,\n-1136,\n-1137,\n-1138,\n-1332,\n-1811,\n-1812,\n-1813,\n-1814,\n-1815,\n-1816,\n-1817,\n-1818,\n-1819,\n-1820,\n-1821,\n-2736,\n-2737,\n-2738,\n-2739,\n-2740,\n-2741,\n-2742,\n-2743,\n-2744,\n-2745,\n-2746,\n+1,\n+2,\n+10,\n+11,\n+12,\n+13,\n+14,\n+29,\n+30,\n+31,\n+32,\n+33,\n+34,\n+35,\n+36,\n+37,\n+38,\n+39,\n+40,\n+41,\n+42,\n+43,\n+44,\n+45,\n+46,\n+47,\n+48,\n+49,\n+50,\n+51,\n+52,\n+53,\n+54,\n+55,\n+56,\n+57,\n+58,\n+59,\n+60,\n+61,\n+62,\n+63,\n+64,\n+65,\n+66,\n+67,\n+68,\n+69,\n+70,\n+71,\n+72,\n+73,\n+74,\n+75,\n+76,\n+77,\n+78,\n+79,\n+80,\n+81,\n+82,\n+83,\n+84,\n+85,\n+86,\n+87,\n+88,\n+89,\n+90,\n+91,\n+92,\n+93,\n+94,\n+95,\n+96,\n+97,\n+98,\n+99,\n+100,\n+101,\n+102,\n+103,\n+104,\n+105,\n+106,\n+107,\n+108,\n+109,\n+110,\n+111,\n+112,\n+113,\n+114,\n+115,\n+116,\n+117,\n+118,\n+119,\n+120,\n+121,\n+122,\n+123,\n+124,\n+125,\n+126,\n+127,\n+128,\n+129,\n+130,\n+131,\n+132,\n+133,\n+134,\n+135,\n+136,\n+137,\n+138,\n+139,\n+140,\n+141,\n+142,\n+143,\n+144,\n+145,\n+146,\n+147,\n+148,\n+149,\n+150,\n+151,\n+152,\n+153,\n+154,\n+155,\n+156,\n+157,\n+158,\n+159,\n+160,\n+161,\n+162,\n+163,\n+164,\n+165,\n+166,\n+167,\n+168,\n+169,\n+170,\n+171,\n+172,\n+173,\n+174,\n+175,\n+176,\n+177,\n+178,\n+179,\n+180,\n+181,\n+182,\n+183,\n+184,\n+185,\n+186,\n+187,\n+188,\n+189,\n+190,\n+191,\n+192,\n+193,\n+194,\n+195,\n+196,\n+197,\n+198,\n+199,\n+200,\n+201,\n+202,\n+203,\n+204,\n+205,\n+206,\n+207,\n+208,\n+209,\n+210,\n+211,\n+212,\n+213,\n+214,\n+215,\n+216,\n+217,\n+218,\n+219,\n+220,\n+221,\n+222,\n+223,\n+224,\n+225,\n+226,\n+227,\n+228,\n+229,\n+230,\n+231,\n+232,\n+233,\n+234,\n+235,\n+236,\n+237,\n+238,\n+239,\n+240,\n+241,\n+242,\n+243,\n+244,\n+245,\n+246,\n+247,\n+248,\n+249,\n+250,\n+251,\n+252,\n+253,\n+254,\n+255,\n+256,\n+257,\n+258,\n+259,\n+260,\n+261,\n+262,\n+263,\n+264,\n+265,\n+266,\n+267,\n+268,\n+269,\n+270,\n+271,\n+272,\n+273,\n+274,\n+275,\n+276,\n+277,\n+278,\n+279,\n+280,\n+281,\n+282,\n+283,\n+284,\n+285,\n+523,\n+524,\n+525,\n+526,\n+527,\n+528,\n+529,\n+530,\n+531,\n+532,\n+533,\n+534,\n+535,\n+536,\n+537,\n+538,\n+539,\n+540,\n+541,\n+542,\n+543,\n+544,\n+545,\n+546,\n+547,\n+548,\n+549,\n+550,\n+551,\n+552,\n+553,\n+554,\n+555,\n+556,\n+557,\n+558,\n+559,\n+560,\n+561,\n+562,\n+563,\n+564,\n+565,\n+566,\n+567,\n+568,\n+569,\n+570,\n+571,\n+572,\n+573,\n+574,\n+575,\n+576,\n+577,\n+578,\n+579,\n+580,\n+581,\n+582,\n+583,\n+584,\n+585,\n+586,\n+587,\n+588,\n+589,\n+590,\n+591,\n+592,\n+593,\n+594,\n+595,\n+596,\n+597,\n+598,\n+599,\n+600,\n+601,\n+602,\n+603,\n+604,\n+605,\n+606,\n+607,\n+608,\n+609,\n+610,\n+649,\n+650,\n+651,\n+652,\n+653,\n+654,\n+655,\n+656,\n+657,\n+658,\n+659,\n+660,\n+661,\n+662,\n+663,\n+664,\n+665,\n+666,\n+667,\n+668,\n+669,\n+670,\n+671,\n+672,\n+673,\n+674,\n+675,\n+676,\n+677,\n+1337,\n+1338,\n+1339,\n+1340,\n+1341,\n+1342,\n+1343,\n+1344,\n+1345,\n+1346,\n+1347,\n+1348,\n+1349,\n+1350,\n+1351,\n+1352,\n+1353,\n+1354,\n+1355,\n+1356,\n+1357,\n+1358,\n+1359,\n+1360,\n+1361,\n+1362,\n+1363,\n+1364,\n+1365,\n+1366,\n+1367,\n+1368,\n+1369,\n+1370,\n+1371,\n+1372,\n+1373,\n+1374,\n+1375,\n+1376,\n+1377,\n+1378,\n+1379,\n+1380,\n+1381,\n+1382,\n+1383,\n+1384,\n+1385,\n+1386,\n+1387,\n+1388,\n+1389,\n+1390,\n+1391,\n+1392,\n+1393,\n+1394,\n+1395,\n+1396,\n+1397,\n+1398,\n+1399,\n+1400,\n+1401,\n+1402,\n+1403,\n+1404,\n+1405,\n+1406,\n+1407,\n+1408,\n+1409,\n+1410,\n+1411,\n+1412,\n+1413,\n+1414,\n+1415,\n+1416,\n+1417,\n+1418,\n+1419,\n+1420,\n+1421,\n+1422,\n+1423,\n+1424,\n+1425,\n+1426,\n+1427,\n+1428,\n+1429,\n+1430,\n+1431,\n+1432,\n+1433,\n+1434,\n+1435,\n+1436,\n+1437,\n+1438,\n+1439,\n+1440,\n+1441,\n+1442,\n+1443,\n+1444,\n+1445,\n+1446,\n+1447,\n+1448,\n+1449,\n+1450,\n+1451,\n+1452,\n+1453,\n+1454,\n+1455,\n+1456,\n+1457,\n+1458,\n+1459,\n+1460,\n+1461,\n+1462,\n+1463,\n+1464,\n+1465,\n+1466,\n+1467,\n+1468,\n+1469,\n+1470,\n+1471,\n+1472,\n+1473,\n+1474,\n+1475,\n+1476,\n+1477,\n+1478,\n+1479,\n+1480,\n+1481,\n+1482,\n+1483,\n+1484,\n+1485,\n+1486,\n+1487,\n+1488,\n+1489,\n+1490,\n+1491,\n+1492,\n+1493,\n+1494,\n+1495,\n+1496,\n+1497,\n+1498,\n+1499,\n+1500,\n+1501,\n+1502,\n+1503,\n+1504,\n+1505,\n+1506,\n+1507,\n+1508,\n+1509,\n+1510,\n+1511,\n+1512,\n+1513,\n+1514,\n+1515,\n+1516,\n+1517,\n+1518,\n+1519,\n+1520,\n+1521,\n+1522,\n+1523,\n+1524,\n+1525,\n+1526,\n+1527,\n+1528,\n+1529,\n+1530,\n+1531,\n+1532,\n+1533,\n+1534,\n+1535,\n+1536,\n+1537,\n+1538,\n+1539,\n+1540,\n+1541,\n+1542,\n+1543,\n+1544,\n+1545,\n+1546,\n+1547,\n+1548,\n+1549,\n+1550,\n+1551,\n+1552,\n+1553,\n+1554,\n+1555,\n+1556,\n+1557,\n+1558,\n+1559,\n+1560,\n+1561,\n+1562,\n+1563,\n+1564,\n+1565,\n+1566,\n+1567,\n+1568,\n+1569,\n+1570,\n+1571,\n+1572,\n+1573,\n+1574,\n+1575,\n+1576,\n+1577,\n+1578,\n+1579,\n+1580,\n+1581,\n+1582,\n+1583,\n+1584,\n+1585,\n+1586,\n+1587,\n+1588,\n+1589,\n+1590,\n+1591,\n+1592,\n+1593,\n+1594,\n+1595,\n+1596,\n+1597,\n+1598,\n+1599,\n+1600,\n+1601,\n+1602,\n+1603,\n+1604,\n+1605,\n+1606,\n+1607,\n+1608,\n+1609,\n+1610,\n+1611,\n+1612,\n+1613,\n+1614,\n+1615,\n+1616,\n+1617,\n+1618,\n+1619,\n+1620,\n+1621,\n+1622,\n+1623,\n+1624,\n+1625,\n+1626,\n+1627,\n+1628,\n+1629,\n+1630,\n+1631,\n+1632,\n+1633,\n+1634,\n+1635,\n+1636,\n+1637,\n+1638,\n+1639,\n+1640,\n+1641,\n+1642,\n+1643,\n+1644,\n+1645,\n+1646,\n+1647,\n+1648,\n+1649,\n+1650,\n+1651,\n+1652,\n+1653,\n+1654,\n+1655,\n+1656,\n+1657,\n+1658,\n+1659,\n+1660,\n+1661,\n+1662,\n+1663,\n+1664,\n+1665,\n+1666,\n+1667,\n+1668,\n+1669,\n+1670,\n+1671,\n+1672,\n+1673,\n+1674,\n+1675,\n+1676,\n+1677,\n+1678,\n+1679,\n+1680,\n+1681,\n+1682,\n+1683,\n+1684,\n+1685,\n+1686,\n+1687,\n+1688,\n+1689,\n+1690,\n+1691,\n+1692,\n+1693,\n+1694,\n+1695,\n+1696,\n+1697,\n+1698,\n+1699,\n+1700,\n+1701,\n+1702,\n+1703,\n+1704,\n+1705,\n+1706,\n+1707,\n+1708,\n+1709,\n+1710,\n+1711,\n+1712,\n+1713,\n+1714,\n+1715,\n+1716,\n+1717,\n+1718,\n+1719,\n+1720,\n+1721,\n+1722,\n+1809,\n+1810,\n' is not false : CalculiX write_inp_file for constraint_centrif test failed.
Comparing /builds/PrzemoF/FreeCAD/build/Mod/Fem/femtest/data/calculix/constraint_centrif.inp to /tmp/FEM_unittests/solver_calculix_constraint_centrif_2b438be10356/Mesh.inp failed!
User avatar
PrzemoF
Veteran
Posts: 3520
Joined: Fri Jul 25, 2014 4:52 pm
Contact:

Re: FreeCAD tests fail - help needed

Post by PrzemoF »

Anther fixing one "UnicodeEncodeError: 'ascii' codec can't encode characters in position" I'm hit by another. I need to find out what's the core reason.

Edit: utf-8 was not properly handled. Looks like it's OK on some systems, but not not on all
User avatar
PrzemoF
Veteran
Posts: 3520
Joined: Fri Jul 25, 2014 4:52 pm
Contact:

Re: FreeCAD tests fail - help needed

Post by PrzemoF »

I'm down to 3 errors:2 in TestPathAdaptive and one in femtest. Full log: https://gitlab.com/PrzemoF/FreeCAD/-/jobs/1449675278

Code: Select all

======================================================================
FAIL: test_constraint_centrif (femtest.app.test_solver_calculix.TestSolverCalculix)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builds/PrzemoF/FreeCAD/build/Mod/Fem/femtest/app/test_solver_calculix.py", line 144, in test_constraint_centrif
    self.input_file_writing_test(get_namefromdef("test_"))
  File "/builds/PrzemoF/FreeCAD/build/Mod/Fem/femtest/app/test_solver_calculix.py", line 322, in input_file_writing_test
    self.assertFalse(
AssertionError: 'Comparing /builds/PrzemoF/FreeCAD/build/Mod/Fem/femtest/data/calculix/constraint_centrif.inp to /tmp/FEM_unittests/solver_calculix_constraint_centrif_b5232752d6d7/Mesh.inp failed!\n--- \n+++ \n@@ -18683,40 +18683,769 @@\n-3,\n-9,\n-17,\n-23,\n-286,\n-287,\n-288,\n-482,\n-483,\n-484,\n-678,\n-940,\n-941,\n-942,\n-1136,\n-1137,\n-1138,\n-1332,\n-1811,\n-1812,\n-1813,\n-1814,\n-1815,\n-1816,\n-1817,\n-1818,\n-1819,\n-1820,\n-1821,\n-2736,\n-2737,\n-2738,\n-2739,\n-2740,\n-2741,\n-2742,\n-2743,\n-2744,\n-2745,\n-2746,\n+1,\n+2,\n+10,\n+11,\n+12,\n+13,\n+14,\n+29,\n+30,\n+31,\n+32,\n+33,\n+34,\n+35,\n+36,\n+37,\n+38,\n+39,\n+40,\n+41,\n+42,\n+43,\n+44,\n+45,\n+46,\n+47,\n+48,\n+49,\n+50,\n+51,\n+52,\n+53,\n+54,\n+55,\n+56,\n+57,\n+58,\n+59,\n+60,\n+61,\n+62,\n+63,\n+64,\n+65,\n+66,\n+67,\n+68,\n+69,\n+70,\n+71,\n+72,\n+73,\n+74,\n+75,\n+76,\n+77,\n+78,\n+79,\n+80,\n+81,\n+82,\n+83,\n+84,\n+85,\n+86,\n+87,\n+88,\n+89,\n+90,\n+91,\n+92,\n+93,\n+94,\n+95,\n+96,\n+97,\n+98,\n+99,\n+100,\n+101,\n+102,\n+103,\n+104,\n+105,\n+106,\n+107,\n+108,\n+109,\n+110,\n+111,\n+112,\n+113,\n+114,\n+115,\n+116,\n+117,\n+118,\n+119,\n+120,\n+121,\n+122,\n+123,\n+124,\n+125,\n+126,\n+127,\n+128,\n+129,\n+130,\n+131,\n+132,\n+133,\n+134,\n+135,\n+136,\n+137,\n+138,\n+139,\n+140,\n+141,\n+142,\n+143,\n+144,\n+145,\n+146,\n+147,\n+148,\n+149,\n+150,\n+151,\n+152,\n+153,\n+154,\n+155,\n+156,\n+157,\n+158,\n+159,\n+160,\n+161,\n+162,\n+163,\n+164,\n+165,\n+166,\n+167,\n+168,\n+169,\n+170,\n+171,\n+172,\n+173,\n+174,\n+175,\n+176,\n+177,\n+178,\n+179,\n+180,\n+181,\n+182,\n+183,\n+184,\n+185,\n+186,\n+187,\n+188,\n+189,\n+190,\n+191,\n+192,\n+193,\n+194,\n+195,\n+196,\n+197,\n+198,\n+199,\n+200,\n+201,\n+202,\n+203,\n+204,\n+205,\n+206,\n+207,\n+208,\n+209,\n+210,\n+211,\n+212,\n+213,\n+214,\n+215,\n+216,\n+217,\n+218,\n+219,\n+220,\n+221,\n+222,\n+223,\n+224,\n+225,\n+226,\n+227,\n+228,\n+229,\n+230,\n+231,\n+232,\n+233,\n+234,\n+235,\n+236,\n+237,\n+238,\n+239,\n+240,\n+241,\n+242,\n+243,\n+244,\n+245,\n+246,\n+247,\n+248,\n+249,\n+250,\n+251,\n+252,\n+253,\n+254,\n+255,\n+256,\n+257,\n+258,\n+259,\n+260,\n+261,\n+262,\n+263,\n+264,\n+265,\n+266,\n+267,\n+268,\n+269,\n+270,\n+271,\n+272,\n+273,\n+274,\n+275,\n+276,\n+277,\n+278,\n+279,\n+280,\n+281,\n+282,\n+283,\n+284,\n+285,\n+523,\n+524,\n+525,\n+526,\n+527,\n+528,\n+529,\n+530,\n+531,\n+532,\n+533,\n+534,\n+535,\n+536,\n+537,\n+538,\n+539,\n+540,\n+541,\n+542,\n+543,\n+544,\n+545,\n+546,\n+547,\n+548,\n+549,\n+550,\n+551,\n+552,\n+553,\n+554,\n+555,\n+556,\n+557,\n+558,\n+559,\n+560,\n+561,\n+562,\n+563,\n+564,\n+565,\n+566,\n+567,\n+568,\n+569,\n+570,\n+571,\n+572,\n+573,\n+574,\n+575,\n+576,\n+577,\n+578,\n+579,\n+580,\n+581,\n+582,\n+583,\n+584,\n+585,\n+586,\n+587,\n+588,\n+589,\n+590,\n+591,\n+592,\n+593,\n+594,\n+595,\n+596,\n+597,\n+598,\n+599,\n+600,\n+601,\n+602,\n+603,\n+604,\n+605,\n+606,\n+607,\n+608,\n+609,\n+610,\n+649,\n+650,\n+651,\n+652,\n+653,\n+654,\n+655,\n+656,\n+657,\n+658,\n+659,\n+660,\n+661,\n+662,\n+663,\n+664,\n+665,\n+666,\n+667,\n+668,\n+669,\n+670,\n+671,\n+672,\n+673,\n+674,\n+675,\n+676,\n+677,\n+1337,\n+1338,\n+1339,\n+1340,\n+1341,\n+1342,\n+1343,\n+1344,\n+1345,\n+1346,\n+1347,\n+1348,\n+1349,\n+1350,\n+1351,\n+1352,\n+1353,\n+1354,\n+1355,\n+1356,\n+1357,\n+1358,\n+1359,\n+1360,\n+1361,\n+1362,\n+1363,\n+1364,\n+1365,\n+1366,\n+1367,\n+1368,\n+1369,\n+1370,\n+1371,\n+1372,\n+1373,\n+1374,\n+1375,\n+1376,\n+1377,\n+1378,\n+1379,\n+1380,\n+1381,\n+1382,\n+1383,\n+1384,\n+1385,\n+1386,\n+1387,\n+1388,\n+1389,\n+1390,\n+1391,\n+1392,\n+1393,\n+1394,\n+1395,\n+1396,\n+1397,\n+1398,\n+1399,\n+1400,\n+1401,\n+1402,\n+1403,\n+1404,\n+1405,\n+1406,\n+1407,\n+1408,\n+1409,\n+1410,\n+1411,\n+1412,\n+1413,\n+1414,\n+1415,\n+1416,\n+1417,\n+1418,\n+1419,\n+1420,\n+1421,\n+1422,\n+1423,\n+1424,\n+1425,\n+1426,\n+1427,\n+1428,\n+1429,\n+1430,\n+1431,\n+1432,\n+1433,\n+1434,\n+1435,\n+1436,\n+1437,\n+1438,\n+1439,\n+1440,\n+1441,\n+1442,\n+1443,\n+1444,\n+1445,\n+1446,\n+1447,\n+1448,\n+1449,\n+1450,\n+1451,\n+1452,\n+1453,\n+1454,\n+1455,\n+1456,\n+1457,\n+1458,\n+1459,\n+1460,\n+1461,\n+1462,\n+1463,\n+1464,\n+1465,\n+1466,\n+1467,\n+1468,\n+1469,\n+1470,\n+1471,\n+1472,\n+1473,\n+1474,\n+1475,\n+1476,\n+1477,\n+1478,\n+1479,\n+1480,\n+1481,\n+1482,\n+1483,\n+1484,\n+1485,\n+1486,\n+1487,\n+1488,\n+1489,\n+1490,\n+1491,\n+1492,\n+1493,\n+1494,\n+1495,\n+1496,\n+1497,\n+1498,\n+1499,\n+1500,\n+1501,\n+1502,\n+1503,\n+1504,\n+1505,\n+1506,\n+1507,\n+1508,\n+1509,\n+1510,\n+1511,\n+1512,\n+1513,\n+1514,\n+1515,\n+1516,\n+1517,\n+1518,\n+1519,\n+1520,\n+1521,\n+1522,\n+1523,\n+1524,\n+1525,\n+1526,\n+1527,\n+1528,\n+1529,\n+1530,\n+1531,\n+1532,\n+1533,\n+1534,\n+1535,\n+1536,\n+1537,\n+1538,\n+1539,\n+1540,\n+1541,\n+1542,\n+1543,\n+1544,\n+1545,\n+1546,\n+1547,\n+1548,\n+1549,\n+1550,\n+1551,\n+1552,\n+1553,\n+1554,\n+1555,\n+1556,\n+1557,\n+1558,\n+1559,\n+1560,\n+1561,\n+1562,\n+1563,\n+1564,\n+1565,\n+1566,\n+1567,\n+1568,\n+1569,\n+1570,\n+1571,\n+1572,\n+1573,\n+1574,\n+1575,\n+1576,\n+1577,\n+1578,\n+1579,\n+1580,\n+1581,\n+1582,\n+1583,\n+1584,\n+1585,\n+1586,\n+1587,\n+1588,\n+1589,\n+1590,\n+1591,\n+1592,\n+1593,\n+1594,\n+1595,\n+1596,\n+1597,\n+1598,\n+1599,\n+1600,\n+1601,\n+1602,\n+1603,\n+1604,\n+1605,\n+1606,\n+1607,\n+1608,\n+1609,\n+1610,\n+1611,\n+1612,\n+1613,\n+1614,\n+1615,\n+1616,\n+1617,\n+1618,\n+1619,\n+1620,\n+1621,\n+1622,\n+1623,\n+1624,\n+1625,\n+1626,\n+1627,\n+1628,\n+1629,\n+1630,\n+1631,\n+1632,\n+1633,\n+1634,\n+1635,\n+1636,\n+1637,\n+1638,\n+1639,\n+1640,\n+1641,\n+1642,\n+1643,\n+1644,\n+1645,\n+1646,\n+1647,\n+1648,\n+1649,\n+1650,\n+1651,\n+1652,\n+1653,\n+1654,\n+1655,\n+1656,\n+1657,\n+1658,\n+1659,\n+1660,\n+1661,\n+1662,\n+1663,\n+1664,\n+1665,\n+1666,\n+1667,\n+1668,\n+1669,\n+1670,\n+1671,\n+1672,\n+1673,\n+1674,\n+1675,\n+1676,\n+1677,\n+1678,\n+1679,\n+1680,\n+1681,\n+1682,\n+1683,\n+1684,\n+1685,\n+1686,\n+1687,\n+1688,\n+1689,\n+1690,\n+1691,\n+1692,\n+1693,\n+1694,\n+1695,\n+1696,\n+1697,\n+1698,\n+1699,\n+1700,\n+1701,\n+1702,\n+1703,\n+1704,\n+1705,\n+1706,\n+1707,\n+1708,\n+1709,\n+1710,\n+1711,\n+1712,\n+1713,\n+1714,\n+1715,\n+1716,\n+1717,\n+1718,\n+1719,\n+1720,\n+1721,\n+1722,\n+1809,\n+1810,\n' is not false : CalculiX write_inp_file for constraint_centrif test failed.
Comparing /builds/PrzemoF/FreeCAD/build/Mod/Fem/femtest/data/calculix/constraint_centrif.inp to /tmp/FEM_unittests/solver_calculix_constraint_centrif_b5232752d6d7/Mesh.inp failed!
and

Code: Select all

======================================================================
FAIL: test04 (PathTests.TestPathAdaptive.TestPathAdaptive)
test04() Verify path generated non-closed edges with differing Z-heights that are closed with Z=1 projection: "Edge9", "Edge2", "Edge8", "Edge15", "Edge30", "Edge31", "Edge29", "Edge19".
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builds/PrzemoF/FreeCAD/build/Mod/Path/PathTests/TestPathAdaptive.py", line 233, in test04
    self.assertTrue(len(adaptive.Path.Commands) > 100, "Command count not greater than 100.")
AssertionError: False is not true : Command count not greater than 100.
======================================================================
FAIL: test06 (PathTests.TestPathAdaptive.TestPathAdaptive)
test06() Verify path generated with outer and inner edge loops at same Z height: "Edge15", "Edge30", "Edge31", "Edge29", "Edge19", "Edge18", "Edge35", "Edge32", "Edge34", "Edge33".
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builds/PrzemoF/FreeCAD/build/Mod/Path/PathTests/TestPathAdaptive.py", line 297, in test06
    self.assertFalse(isInBox, "Paths originating within the inner hole.")
AssertionError: True is not false : Paths originating within the inner hole.
----------------------------------------------------------------------
Ran 372 tests in 58.585s
FAILED (failures=3)
User avatar
PrzemoF
Veteran
Posts: 3520
Joined: Fri Jul 25, 2014 4:52 pm
Contact:

Re: FreeCAD tests fail - help needed

Post by PrzemoF »

The FEM test error boils down to node numbering and different source file, but it's in comments (might be a hint what's wrong):

Code: Select all

3,							      |	1,
9,							      |	2,
17,							      |	10,
23,							      |	11,
286,							      |	12,
287,							      |	13,
288,							      |	14,
482,							      |	29,
483,							      |	30,
484,							      |	31,
678,							      |	32,
940,							      |	33,
941,							      |	34,
942,							      |	35,
1136,							      |	36,
1137,							      |	37,
1138,							      |	38,
1332,							      |	39,
1811,							      |	40,
1812,							      |	41,
1813,							      |	42,
1814,							      |	43,
1815,							      |	44,
1816,							      |	45,
1817,							      |	46,
1818,							      |	47,
1819,							      |	48,
1820,							      |	49,
1821,							      |	50,
2736,							      |	51,
2737,							      |	52,
2738,							      |	53,
2739,							      |	54,
2740,							      |	55,
2741,							      |	56,
2742,							      |	57,
2743,							      |	58,
2744,							      |	59,
2745,							      |	60,
2746,							      |	61,
**   written by    --> FreeCAD 0.20.25188 (Git)		      |	**   written by    --> FreeCAD 0.20.25314 (Git)
**   written on    --> Mon Jul  5 15:41:32 2021		      |	**   written on    --> Sat Jul 24 16:59:17 2021
**   file name     --> centrif.FCStd			      |	**   file name     --> constraint_centrif.FCStd
User avatar
PrzemoF
Veteran
Posts: 3520
Joined: Fri Jul 25, 2014 4:52 pm
Contact:

Re: FreeCAD tests fail - help needed

Post by PrzemoF »

OK, I got is sorted by updating the .inp file. The rest of errors is fixed by pending PR by Russell, so I can proudly announce first successful build and test of FreeCAD using gitlab CI system: https://gitlab.com/PrzemoF/FreeCAD/-/pi ... /342378907
User avatar
bernd
Veteran
Posts: 12849
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: FreeCAD tests fail - help needed

Post by bernd »

PrzemoF wrote: Sat Jul 24, 2021 9:45 pm OK, I got is sorted by updating the .inp file. The rest of errors is fixed by pending PR by Russell, so I can proudly announce first successful build and test of FreeCAD using gitlab CI system: https://gitlab.com/PrzemoF/FreeCAD/-/pi ... /342378907
does it mean you created a new inp file and pushed the new inp file as a workaround


I already had this problem on a contact test. Different machines create different inp files. Mostly the node order. Since contact and centrif constrait uses faces I may have a look at them. For the node constraints I do use sorted sets (which again will be a list) to be sure to have the correct order and no duplicates. The problem is I can not test this, because it does not fail for me ... :o

I will have a look.
Post Reply