ros2 / sros2

tools to generate and distribute keys for SROS 2
Apache License 2.0
89 stars 44 forks source link

👨‍🌾 test_generate_policy_no_nodes failed on Windows (Debug) #264

Closed caguero closed 2 years ago

caguero commented 3 years ago

Bug report

Required Info:

Steps to reproduce issue

test_generate_policy_no_nodes failed on CI here.

Expected behavior

The test should pass.

Actual behavior

The test fails with the following message:

==================================================================================================================================================================================================================================
FAIL: test_generate_policy_no_nodes.TestSROS2GeneratePolicyVerbWithNoNodes.test_generate_policy_no_policy_file[rmw_cyclonedds_cpp, True]
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\ci\ws\src\ros2\sros2\sros2\test\sros2\commands\security\verbs\test_generate_policy_no_nodes.py", line 63, in test_generate_policy_no_policy_file
    assert gen_command.wait_for_shutdown(timeout=2)
AssertionError: assert False
 +  where False = <bound method ProcessProxy.wait_for_shutdown of <launch_testing.tools.process.ProcessProxy object at 0x000001C7C07643C0>>(timeout=2)
 +    where <bound method ProcessProxy.wait_for_shutdown of <launch_testing.tools.process.ProcessProxy object at 0x000001C7C07643C0>> = <launch_testing.tools.process.ProcessProxy object at 0x000001C7C07643C0>.wait_for_shutdown

==================================================================================================================================================================================================================================
FAIL: test_generate_policy_no_nodes.TestSROS2GeneratePolicyVerbWithNoNodes.test_generate_policy_no_policy_file[rmw_fastrtps_cpp, False]
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\ci\ws\src\ros2\sros2\sros2\test\sros2\commands\security\verbs\test_generate_policy_no_nodes.py", line 63, in test_generate_policy_no_policy_file
    assert gen_command.wait_for_shutdown(timeout=2)
AssertionError: assert False
 +  where False = <bound method ProcessProxy.wait_for_shutdown of <launch_testing.tools.process.ProcessProxy object at 0x000001C7C1A13730>>(timeout=2)
 +    where <bound method ProcessProxy.wait_for_shutdown of <launch_testing.tools.process.ProcessProxy object at 0x000001C7C1A13730>> = <launch_testing.tools.process.ProcessProxy object at 0x000001C7C1A13730>.wait_for_shutdown
ruffsl commented 3 years ago

Does anyone else have a Windows license and system install to be able to reproduce this locally? I no longer have access to a Windows 10 workstation after graduating from my university.

Blast545 commented 2 years ago

:man_farmer: This test has failed 3 times in all the buildfarm in the last 21 days.

https://ci.ros2.org/job/nightly_linux_galactic_coverage/344/ https://ci.ros2.org/view/nightly/job/nightly_win_deb/2315/testReport/junit/sros2.test.sros2.commands.security.verbs/test_generate_policy_no_nodes/test_generate_policy_no_nodes/ https://ci.ros2.org/view/nightly/job/nightly_win_deb/2317/testReport/junit/sros2.test.sros2.commands.security.verbs/test_generate_policy_no_nodes/test_generate_policy_no_nodes/

Potentially related test failure that appeared once in these 21 days: https://ci.ros2.org/view/nightly/job/nightly_win_rep/2554/testReport/junit/sros2.test.sros2.commands.security.verbs/test_generate_policy/test_generate_policy/