gz-transport
gz-transport copied to clipboard
[Fedora KDE] Tests do not pass on fresh source install - Discovery fails
Original report (archived issue) by Til Hoff (Bitbucket: turakar).
Description
ign-transport
is compiled from source without errors. After that, make test
is run. Some of the tests, most noticeably UNIT_Discovery_TEST
, fails. Test INTEGRATION_twoProcsSrvCallStress
hangs and blocks further tests.
Steps to reproduce
- use Fedora KDE 29 / 30
- install dependencies (migrated from the install instructions for ignition)
sudo dnf install cmake freeglut-devel ffmpeg-devel freeimage-devel gflags-devel glew-devel gts-devel ogre-devel protobuf-devel protobuf-c-devel qt5 tinyxml2-devel tinyxml-devel pkg-config protobuf-compiler python qt5-qtquickcontrols qt5-qtquickcontrols2 qt5-devel qt5-qtdeclarative-devel qt5-qtquickcontrols2-devel ruby rubygem-ronn uuid-devel libzip-devel jsoncpp-devel libcurl-devel libyaml-devel czmq-devel cppzmq-devel sqlite-devel libwebsockets-devel eigen3-devel openssl-devel git mercurial make g++
-
build
dart
,assimp
andgflags
from source (unrelated toign-transport
, but important for the merge-install)- On Fedora KDE 30 you can use
gflags-devel
from the repositories
- On Fedora KDE 30 you can use
-
clone the sources as laid out in the official install instructions for ignition
-
build a merge-install
colcon build --merge-install
- Execute the following:
cd ign-transport
mkdir build && cd build
cmake ..
make
make test
Expected behaviour
Compilation works. All tests pass.
Actual behaviour
Compilation works (no severe warnings printed, no dependencies not found). Test results:
Running tests...
Test project /home/t/projects/debris/approach-simulator/ignitionrobotics/ign-transport/build
Start 1: UNIT_AdvertiseOptions_TEST
1/90 Test #1: UNIT_AdvertiseOptions_TEST ............................. Passed 0.01 sec
Start 2: check_UNIT_AdvertiseOptions_TEST
2/90 Test #2: check_UNIT_AdvertiseOptions_TEST ....................... Passed 0.02 sec
Start 3: UNIT_CIface_TEST
3/90 Test #3: UNIT_CIface_TEST ....................................... Passed 0.37 sec
Start 4: check_UNIT_CIface_TEST
4/90 Test #4: check_UNIT_CIface_TEST ................................. Passed 0.02 sec
Start 5: UNIT_Clock_TEST
5/90 Test #5: UNIT_Clock_TEST ........................................ Passed 1.66 sec
Start 6: check_UNIT_Clock_TEST
6/90 Test #6: check_UNIT_Clock_TEST .................................. Passed 0.02 sec
Start 7: UNIT_Discovery_TEST
7/90 Test #7: UNIT_Discovery_TEST ....................................***Failed 33.84 sec
Start 8: check_UNIT_Discovery_TEST
8/90 Test #8: check_UNIT_Discovery_TEST .............................. Passed 0.03 sec
Start 9: UNIT_HandlerStorage_TEST
9/90 Test #9: UNIT_HandlerStorage_TEST ............................... Passed 0.02 sec
Start 10: check_UNIT_HandlerStorage_TEST
10/90 Test #10: check_UNIT_HandlerStorage_TEST ......................... Passed 0.03 sec
Start 11: UNIT_Helpers_TEST
11/90 Test #11: UNIT_Helpers_TEST ...................................... Passed 0.01 sec
Start 12: check_UNIT_Helpers_TEST
12/90 Test #12: check_UNIT_Helpers_TEST ................................ Passed 0.02 sec
Start 13: UNIT_MessageInfo_TEST
13/90 Test #13: UNIT_MessageInfo_TEST .................................. Passed 0.01 sec
Start 14: check_UNIT_MessageInfo_TEST
14/90 Test #14: check_UNIT_MessageInfo_TEST ............................ Passed 0.02 sec
Start 15: UNIT_NetUtils_TEST
15/90 Test #15: UNIT_NetUtils_TEST ..................................... Passed 0.02 sec
Start 16: check_UNIT_NetUtils_TEST
16/90 Test #16: check_UNIT_NetUtils_TEST ............................... Passed 0.03 sec
Start 17: UNIT_NodeOptions_TEST
17/90 Test #17: UNIT_NodeOptions_TEST .................................. Passed 0.01 sec
Start 18: check_UNIT_NodeOptions_TEST
18/90 Test #18: check_UNIT_NodeOptions_TEST ............................ Passed 0.02 sec
Start 19: UNIT_Node_TEST
19/90 Test #19: UNIT_Node_TEST ......................................... Passed 23.13 sec
Start 20: check_UNIT_Node_TEST
20/90 Test #20: check_UNIT_Node_TEST ................................... Passed 0.02 sec
Start 21: UNIT_Packet_TEST
21/90 Test #21: UNIT_Packet_TEST ....................................... Passed 0.01 sec
Start 22: check_UNIT_Packet_TEST
22/90 Test #22: check_UNIT_Packet_TEST ................................. Passed 0.03 sec
Start 23: UNIT_Publisher_TEST
23/90 Test #23: UNIT_Publisher_TEST .................................... Passed 0.01 sec
Start 24: check_UNIT_Publisher_TEST
24/90 Test #24: check_UNIT_Publisher_TEST .............................. Passed 0.02 sec
Start 25: UNIT_SubscribeOptions_TEST
25/90 Test #25: UNIT_SubscribeOptions_TEST ............................. Passed 0.02 sec
Start 26: check_UNIT_SubscribeOptions_TEST
26/90 Test #26: check_UNIT_SubscribeOptions_TEST ....................... Passed 0.02 sec
Start 27: UNIT_TopicStorage_TEST
27/90 Test #27: UNIT_TopicStorage_TEST ................................. Passed 0.01 sec
Start 28: check_UNIT_TopicStorage_TEST
28/90 Test #28: check_UNIT_TopicStorage_TEST ........................... Passed 0.03 sec
Start 29: UNIT_TopicUtils_TEST
29/90 Test #29: UNIT_TopicUtils_TEST ................................... Passed 0.01 sec
Start 30: check_UNIT_TopicUtils_TEST
30/90 Test #30: check_UNIT_TopicUtils_TEST ............................. Passed 0.02 sec
Start 31: UNIT_Uuid_TEST
31/90 Test #31: UNIT_Uuid_TEST ......................................... Passed 0.01 sec
Start 32: check_UNIT_Uuid_TEST
32/90 Test #32: check_UNIT_Uuid_TEST ................................... Passed 0.02 sec
Start 33: UNIT_ign_TEST
33/90 Test #33: UNIT_ign_TEST ..........................................***Timeout 240.03 sec
Start 34: check_UNIT_ign_TEST
34/90 Test #34: check_UNIT_ign_TEST .................................... Passed 0.02 sec
Start 35: UNIT_ign_src_TEST
35/90 Test #35: UNIT_ign_src_TEST ...................................... Passed 6.45 sec
Start 36: check_UNIT_ign_src_TEST
36/90 Test #36: check_UNIT_ign_src_TEST ................................ Passed 0.02 sec
Start 37: INTEGRATION_versioned_symbols
37/90 Test #37: INTEGRATION_versioned_symbols .......................... Passed 0.03 sec
Start 38: INTEGRATION_authPubSub
38/90 Test #38: INTEGRATION_authPubSub ................................. Passed 10.81 sec
Start 39: check_INTEGRATION_authPubSub
39/90 Test #39: check_INTEGRATION_authPubSub ........................... Passed 0.03 sec
Start 40: INTEGRATION_scopedTopic
40/90 Test #40: INTEGRATION_scopedTopic ................................ Passed 11.47 sec
Start 41: check_INTEGRATION_scopedTopic
41/90 Test #41: check_INTEGRATION_scopedTopic .......................... Passed 0.03 sec
Start 42: INTEGRATION_twoProcsPubSub
42/90 Test #42: INTEGRATION_twoProcsPubSub .............................***Exception: SegFault 73.67 sec
Start 43: check_INTEGRATION_twoProcsPubSub
43/90 Test #43: check_INTEGRATION_twoProcsPubSub ....................... Passed 0.03 sec
Start 44: INTEGRATION_twoProcsSrvCall
44/90 Test #44: INTEGRATION_twoProcsSrvCall ............................***Exception: SegFault 35.44 sec
Start 45: check_INTEGRATION_twoProcsSrvCall
45/90 Test #45: check_INTEGRATION_twoProcsSrvCall ...................... Passed 0.03 sec
Start 46: INTEGRATION_twoProcsSrvCallStress
The tests hang here with low CPU usage for over one hour. There is a detailed log in the comments below.
Version
- Fedora KDE 29 / 30
- source install
- latest ignition (blueprint)
Additional Information
- I think this is the reason why ign-gazebo does not start on my machine (ignitionrobotics/ign-gazebo#38) (gazebo client cannot find the server and therefore waits forever).
- The problem does not happen on classic Fedora (Gnome), as verified by spinning up several VMs
- There is a workaround: Set
IGN_IP=127.0.0.1
environment variable.