Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ros2bag QOS test uses several sleeps on windows #454

Closed
Karsten1987 opened this issue Jul 8, 2020 · 7 comments · Fixed by #462 or #525
Closed

ros2bag QOS test uses several sleeps on windows #454

Karsten1987 opened this issue Jul 8, 2020 · 7 comments · Fixed by #462 or #525
Assignees
Labels
bug Something isn't working

Comments

@Karsten1987
Copy link
Collaborator

Test is "reliably" failing on windows:
https://ci.ros2.org/view/nightly/job/nightly_win_rel/1605/testReport/ros2bag.test/test_record_qos_profiles/test_record_qos_profiles/

FAIL: test_record_qos_profiles.TestRos2BagRecord.test_incomplete_qos_profile
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Traceback (most recent call last):
  File "c:\python38\lib\shutil.py", line 613, in _rmtree_unsafe
    os.unlink(fullname)
PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: 'C:\\Users\\ContainerAdministrator\\AppData\\Local\\Temp\\tmphur3j5pi\\ros2bag_test_incomplete_0.db3'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "c:\python38\lib\tempfile.py", line 803, in onerror
    _os.unlink(path)
PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: 'C:\\Users\\ContainerAdministrator\\AppData\\Local\\Temp\\tmphur3j5pi\\ros2bag_test_incomplete_0.db3'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\ci\ws\src\ros2\rosbag2\ros2bag\test\test_record_qos_profiles.py", line 87, in test_incomplete_qos_profile
    assert not matches, print('ros2bag CLI did not produce the expected output')

@emersonknapp do you have an idea?

@Karsten1987 Karsten1987 added the bug Something isn't working label Jul 8, 2020
@emersonknapp
Copy link
Collaborator

I don't know immediately but will begin investigating

@dirk-thomas
Copy link
Member

@emersonknapp Any update on this?

@dirk-thomas
Copy link
Member

Please see #462 which modifies the test to only create one temp dir for all tests within the test class. That allows it to be cleanly removed on Windows.

@dirk-thomas
Copy link
Member

The test is still failing (even though it passed CI on the PR) - reopening...

@dirk-thomas dirk-thomas reopened this Jul 17, 2020
@emersonknapp
Copy link
Collaborator

Noted - we are pulling this in as top priority for Monday

@dirk-thomas dirk-thomas changed the title ros2bag QOS test is failing on windows ros2bag QOS test uses several sleeps on windows Jul 23, 2020
@emersonknapp emersonknapp self-assigned this Jul 31, 2020
@jaisontj
Copy link
Contributor

@dirk-thomas Could you take a look at: #525 ? It gets rid of most of the time.sleep except for the one inside tearDownClass. Was not able to find a better way around it. However, given the title of this issue, we no longer use several sleeps in the test, can this issue be closed?

@dirk-thomas
Copy link
Member

can this issue be closed?

Sounds good to me. Once the PR is merged that should happen automatically.

MichaelOrlov pushed a commit that referenced this issue May 25, 2023
- test_record_qos_profiles failures is a known issue described in the
#454
- To fix those tests need to backport #462, #466, #470, #472, #525
- Skipping them for a while

Signed-off-by: Michael <[email protected]>
MichaelOrlov pushed a commit that referenced this issue May 25, 2023
- test_record_qos_profiles failures is a known issue described in the
#454
- To fix those tests need to backport #462, #466, #470, #472, #525
- Skipping them for a while

Signed-off-by: Michael Orlov <[email protected]>
MichaelOrlov pushed a commit that referenced this issue May 25, 2023
* Fix for CI regression in TestRos2BagRecord

- Replace get_actual_qos() to the qos_profile() as it was before #1335
For some reason on Foxy it doesn't work as expected. Probably due to the
missing some underlying dependencies in other core packages.

Signed-off-by: Michael Orlov <[email protected]>

* Revert "Fix for CI regression in TestRos2BagRecord"

This reverts commit f50f46a.

Signed-off-by: Michael Orlov <[email protected]>

* Skip test_record_qos_profiles on Windows since they are flaky

- test_record_qos_profiles failures is a known issue described in the
#454
- To fix those tests need to backport #462, #466, #470, #472, #525
- Skipping them for a while

Signed-off-by: Michael Orlov <[email protected]>

---------

Signed-off-by: Michael Orlov <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
4 participants