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

Fix splitting tests on windows #407

Merged
merged 4 commits into from
May 12, 2020
Merged

Fix splitting tests on windows #407

merged 4 commits into from
May 12, 2020

Conversation

Karsten1987
Copy link
Collaborator

fixes #305

Signed-off-by: Karsten Knese <[email protected]>
Signed-off-by: Karsten Knese <[email protected]>
Signed-off-by: Karsten Knese <[email protected]>
@Karsten1987
Copy link
Collaborator Author

  • Linux Build Status
  • Linux-aarch64 Build Status
  • macOS Build Status
  • Windows Build Status

@Karsten1987
Copy link
Collaborator Author

Look at that, a green Windows build :)

This is ready for review.

@brawner
Copy link
Contributor

brawner commented May 11, 2020

European extreme:

Build Status

@Karsten1987
Copy link
Collaborator Author

that looks now like a different problem:

[ERROR] [1589185764.148699300] [rosbag2_storage]: Could not open 'C:\Users\ContainerAdministrator\AppData\Local\Temp\tmp_test_dir.a07544\record_end_to_end_test_with_zstd_file_compression_compresses_files\record_end_to_end_test_with_zstd_file_compression_compresses_files_0' with 'sqlite3'. Error: Failed to setup storage. Error: Error when processing SQL statement. SQLite error (5): database is locked

That looks like another timing issue where the database is locked or not released on time before the next test starts.

@brawner
Copy link
Contributor

brawner commented May 11, 2020

Doing a search for [ OK ] RecordFixture.record_end_to_end_test_with_zstd_file_compression_compresses_files shows the test passed 34 times before it failed. I don't think we'll see this come up in CI anymore.

Signed-off-by: Karsten Knese <[email protected]>
@Karsten1987
Copy link
Collaborator Author

Karsten1987 commented May 11, 2020

I've let it run 100 times wo/ any errors on my local Windows VM with the latest change. Regarding the SQL Locks, there was a PR from @sriramster in #189 which we never pursued any further. But I think it's orthogonal to the fix proposed here.

EDIT: I've just seen there is already an open ticket for that case where the database is locked: #240

@piraka9011
Copy link
Contributor

Is the solution basically just cleaning up all directories at the end of each test run?

@Karsten1987
Copy link
Collaborator Author

no, the fix is to fill in the metadata correctly.

@Karsten1987 Karsten1987 merged commit a47e9de into master May 12, 2020
@delete-merged-branch delete-merged-branch bot deleted the windows_tests branch May 12, 2020 21:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bag splitting test is unreliable with zstd_file_compression on Windows
4 participants