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

[humble] Store db schema version and ROS_DISTRO name in db3 files (backport #1156) #1175

Merged
merged 2 commits into from
Dec 3, 2022

Conversation

mergify[bot]
Copy link

@mergify mergify bot commented Nov 22, 2022

This is an automatic backport of pull request #1156 done by Mergify.

Mergify commands and options

More conditions and actions can be found in the documentation.

You can also trigger Mergify actions by commenting on this pull request:

  • @Mergifyio refresh will re-evaluate the rules
  • @Mergifyio rebase will rebase this PR on its base branch
  • @Mergifyio update will merge the base branch into this PR
  • @Mergifyio backport <destination> will backport this PR on <destination> branch

Additionally, on Mergify dashboard you can:

  • look at your merge queues
  • generate the Mergify configuration with the config editor.

Finally, you can contact us on https://mergify.com

* Add new tables for `schema` and `metadata`

Signed-off-by: Michael Orlov <michael.orlov@apex.ai>

* Add `SqliteWrapper::table_exists(table_name)`

Signed-off-by: Michael Orlov <michael.orlov@apex.ai>

* Add `get_db_schema_versio()` and `get_recorded_ros_distro()`

Signed-off-by: Michael Orlov <michael.orlov@apex.ai>

* Add unit tests for checking new and old db schema versions

Added following unit tests:
- `get_db_schema_version_returns_correct_value`
- `get_recorded_ros_distro_returns_correct_value`
- `check_backward_compatibility_with_schema_version_2`

Signed-off-by: Michael Orlov <michael.orlov@apex.ai>

Signed-off-by: Michael Orlov <michael.orlov@apex.ai>
(cherry picked from commit 9498426)

# Conflicts:
#	rosbag2_storage_default_plugins/include/rosbag2_storage_default_plugins/sqlite/sqlite_storage.hpp
#	rosbag2_storage_default_plugins/src/rosbag2_storage_default_plugins/sqlite/sqlite_storage.cpp
@mergify mergify bot requested a review from a team as a code owner November 22, 2022 22:37
@mergify mergify bot requested review from MichaelOrlov and hidmic and removed request for a team November 22, 2022 22:37
@mergify mergify bot added the conflicts label Nov 22, 2022
@MichaelOrlov MichaelOrlov changed the title Store db schema version and ROS_DISTRO name in db3 files (backport #1156) [backport humble] Store db schema version and ROS_DISTRO name in db3 files (backport #1156) Nov 22, 2022
Signed-off-by: Michael Orlov <michael.orlov@apex.ai>
@MichaelOrlov
Copy link
Contributor

Gist: https://gist.githubusercontent.com/MichaelOrlov/4d66b069b53d925405f37bfb97eb8cf4/raw/42ba67ebe168afdff02c25d6f99624949318b7cc/ros2.repos
BUILD args: --packages-above-and-dependencies rosbag2_storage rosbag2_storage_default_plugins rosbag2_tests
TEST args: --packages-above rosbag2_storage rosbag2_storage_default_plugins rosbag2_tests
ROS Distro: humble
Job: ci_launcher
ci_launcher ran: https://ci.ros2.org/job/ci_launcher/11167

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

@MichaelOrlov MichaelOrlov changed the title [backport humble] Store db schema version and ROS_DISTRO name in db3 files (backport #1156) [humble] Store db schema version and ROS_DISTRO name in db3 files (backport #1156) Nov 23, 2022
@MichaelOrlov
Copy link
Contributor

Re-run Windows CI build

  • Windows Build Status

@MichaelOrlov
Copy link
Contributor

Re-run Windows CI build

  • Windows Build Status

@MichaelOrlov
Copy link
Contributor

Re-run Windows CI build without RTI connext Micro

  • Windows Build Status

@MichaelOrlov MichaelOrlov merged commit b64b7b0 into humble Dec 3, 2022
@delete-merged-branch delete-merged-branch bot deleted the mergify/bp/humble/pr-1156 branch December 3, 2022 00:53
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.

None yet

1 participant