Open franzlst opened 4 years ago
Also the first parametrization (dynamic_library_insertion) is unstable.
This is the underlying error, causing the AssertionError
:
00:03:47.550 =================================== FAILURES ===================================
00:03:47.550 __________ test_dynamic_state_insertion[dynamic_library_insertion-0] ___________
00:03:47.550 Traceback (most recent call last):
00:03:47.550 File "/home_local/jenkins/common_rafcon_develop/tests/gui/execution/test_dynamic_state_operations.py", line 30, in test_dynamic_state_insertion
00:03:47.550 gui(menubar_ctrl.on_start_activate, None, None)
00:03:47.550 File "/home_local/jenkins/common_rafcon_develop/tests/gui/conftest.py", line 34, in __call__
00:03:47.550 call_gui_callback(wait_for_gui)
00:03:47.550 File "/home_local/jenkins/common_rafcon_develop/.tox/py27/lib/python2.7/site-packages/rafcon/utils/gui_functions.py", line 71, in call_gui_callback
00:03:47.550 raise_(e_instance, None, e_traceback)
00:03:47.550 File "/home_local/jenkins/common_rafcon_develop/.tox/py27/lib/python2.7/site-packages/rafcon/utils/gui_functions.py", line 49, in fun
00:03:47.550 result = callback(*args, **kwargs)
00:03:47.550 File "/home_local/jenkins/common_rafcon_develop/.tox/py27/lib/python2.7/site-packages/rafcon/core/decorators.py", line 53, in func_wrapper
00:03:47.550 return_value = func(*args, **kwargs)
00:03:47.550 File "/home_local/jenkins/common_rafcon_develop/.tox/py27/lib/python2.7/site-packages/gtkmvc3/observable.py", line 47, in wrapper
00:03:47.550 res = _func(*args, **kwargs)
00:03:47.550 File "/home_local/jenkins/common_rafcon_develop/.tox/py27/lib/python2.7/site-packages/rafcon/core/states/container_state.py", line 768, in add_state
00:03:47.550 assert isinstance(state, State)
00:03:47.550 AssertionError
So a LibraryState is created (dynamically in the execute
function of an ExecutionState) and passed as state to ContainerState.add_state
. However, at that point assert isinstance(state, State)
is not fulfilled.
I tried hard, to find out why this is, but did not succeed. One problem is that I cannot reproduce this locally on my machine.
Originally created by @franzlst (Franz.Steinmetz@dlr.de) at 2019-08-06 12:08:03+00:00 (moved from RMC internal repository)
The test_dynamic_state_insertion is unstable. The dynamic_library_insertion parameterization is stable, the other two are not.
Till the test is fixed, it is marked as unstable.
The following stacktrace occurs often:
Originally created by @sebastian-brunner (Sebastian.Brunner@dlr.de) at 2019-08-06 11:50:51+00:00 (moved from RMC internal repository)