[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: [SOLVED] FreeCAD tests fail

Post by PrzemoF »

OK, I hope this can help, but it's not fast and you'll have limited debugging capabilities (vim & nano as editors, let me know if you need more tools)

1. Install docker
2. Run docker image with:

Code: Select all

docker run -it przemof/executor-debug /bin/bash
^^ that pulls my executor-debug docker image from dockerhub, runs it locally and you have bash session open. The container is not permanent! I don't know yet how to preserve the changes made in bash session (cloning and compilation)
3.

Code: Select all

git clone https://github.com/FreeCAD/FreeCAD && mkdir build && cd build && cmake  ../FreeCAD && cmake --build /build -j$(nproc)
4.

Code: Select all

bin/FreeCADCmd -t TestFemApp
I'll provide info how it fails when I have the compilation finished.
User avatar
PrzemoF
Veteran
Posts: 3520
Joined: Fri Jul 25, 2014 4:52 pm
Contact:

Re: [SOLVED] FreeCAD tests fail

Post by PrzemoF »

The failure log:

Code: Select all

root@23ba8d9a069f:/build# bin/FreeCADCmd -t TestFemApp
[..] removed, too much text

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


----------------------------------------------------------------------
Ran 82 tests in 30.114s

FAILED (failures=1)
User avatar
PrzemoF
Veteran
Posts: 3520
Joined: Fri Jul 25, 2014 4:52 pm
Contact:

Re: [SOLVED] FreeCAD tests fail

Post by PrzemoF »

New error in Fem:
https://gitlab.com/PrzemoF/FreeCAD/-/jobs/1460408164

Code: Select all

======================================================================
FAIL: test_ccx_cantilever_ele_tria6 (femtest.app.test_solver_z88.TestSolverZ88)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builds/PrzemoF/FreeCAD/build/Mod/Fem/femtest/app/test_solver_z88.py", line 92, in test_ccx_cantilever_ele_tria6
    self.inputfile_writing_test(get_namefromdef("test_"))
  File "/builds/PrzemoF/FreeCAD/build/Mod/Fem/femtest/app/test_solver_z88.py", line 170, in inputfile_writing_test
    self.assertFalse(
AssertionError: 'Comparing /builds/PrzemoF/FreeCAD/build/Mod/Fem/femtest/data/z88/ccx_cantilever_ele_tria6/z88man.txt to /tmp/FEM_unittests/solver_z88_ccx_cantilever_ele_tria6_9f6806991402/z88man.txt failed!\n--- \n+++ \n@@ -13 +13 @@\n-   IHFLAG          1\n+   IHFLAG          0\n@@ -33 +33 @@\n-   ISFLAG        1\n+   ISFLAG        0\n' is not false : Z88 write_inp_file for ccx_cantilever_ele_tria6 test failed.
Comparing /builds/PrzemoF/FreeCAD/build/Mod/Fem/femtest/data/z88/ccx_cantilever_ele_tria6/z88man.txt to /tmp/FEM_unittests/solver_z88_ccx_cantilever_ele_tria6_9f6806991402/z88man.txt failed!
--- 
+++ 
@@ -13 +13 @@
-   IHFLAG          1
+   IHFLAG          0
@@ -33 +33 @@
-   ISFLAG        1
+   ISFLAG        0
----------------------------------------------------------------------
Ran 559 tests in 70.686s
FAILED (failures=1)
User avatar
bernd
Veteran
Posts: 12851
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: [SOLVED] FreeCAD tests fail

Post by bernd »

User avatar
bernd
Veteran
Posts: 12851
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: [SOLVED] FreeCAD tests fail

Post by bernd »

They pass on my local machine ... Any chance I can run this on a PR or on my gitlab to find where the problem is?
User avatar
PrzemoF
Veteran
Posts: 3520
Joined: Fri Jul 25, 2014 4:52 pm
Contact:

Re: [SOLVED] FreeCAD tests fail

Post by PrzemoF »

Give it ~10 minutes to build and test: https://gitlab.com/PrzemoF/FreeCAD/-/jobs/1462407127

Edit: builds & tests OK, but with my home made fix for the previous issue: https://gitlab.com/PrzemoF/FreeCAD/-/co ... 56ed57fe1c
openBrain
Veteran
Posts: 9041
Joined: Fri Nov 09, 2018 5:38 pm
Contact:

Re: [SOLVED] FreeCAD tests fail

Post by openBrain »

bernd wrote: Thu Jul 29, 2021 11:32 am They pass on my local machine ... Any chance I can run this on a PR or on my gitlab to find where the problem is?
FYI issue #4694
openBrain
Veteran
Posts: 9041
Joined: Fri Nov 09, 2018 5:38 pm
Contact:

Re: [SOLVED] FreeCAD tests fail

Post by openBrain »

bernd wrote: Thu Jul 29, 2021 11:32 am They pass on my local machine ... Any chance I can run this on a PR or on my gitlab to find where the problem is?
FWIW the complete trace when I run the test on my debug build :

Code: Select all

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

Re: [SOLVED] FreeCAD tests fail

Post by PrzemoF »

That -3 replaced with +1 tells me it's exactly the same problem I fixed (temporary fix) in my gitlab-v3 repo: https://gitlab.com/PrzemoF/FreeCAD/-/co ... 3d28c1a679
bernd knows about it, but I think, the core reason of that behaviour is not known.
User avatar
PrzemoF
Veteran
Posts: 3520
Joined: Fri Jul 25, 2014 4:52 pm
Contact:

Re: [SOLVED] FreeCAD tests fail

Post by PrzemoF »

This one fails on tests, maybe parallelisation is part of the problem?

https://gitlab.com/PrzemoF/FreeCAD/-/co ... 396920af2f
Post Reply