Skip to content

Update deprecated usage of get_package_share without std::filesystem::path#3703

Merged
nbbrooks merged 6 commits intomoveit:mainfrom
stephanie-eng:seng/update-get-package-share
Mar 23, 2026
Merged

Update deprecated usage of get_package_share without std::filesystem::path#3703
nbbrooks merged 6 commits intomoveit:mainfrom
stephanie-eng:seng/update-get-package-share

Conversation

@stephanie-eng
Copy link
Contributor

Description

CI appears to be borked. Maybe this will help.

Checklist

  • Required by CI: Code is auto formatted using clang-format
  • Extend the tutorials / documentation reference
  • Document API changes relevant to the user in the MIGRATION.md notes
  • Create tests, which fail without this PR reference
  • Include a screenshot if changing a GUI
  • While waiting for someone to review your request, please help review another open pull request to support the maintainers

@codecov
Copy link

codecov bot commented Mar 13, 2026

Codecov Report

❌ Patch coverage is 52.94118% with 8 lines in your changes missing coverage. Please review.
✅ Project coverage is 46.28%. Comparing base (f1135a4) to head (da8f17d).
⚠️ Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
moveit_core/utils/src/robot_model_test_utils.cpp 50.00% 6 Missing ⚠️
moveit_ros/planning/rdf_loader/src/rdf_loader.cpp 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##            main    #3703       +/-   ##
==========================================
+ Coverage   0.00%   46.28%   +46.28%     
==========================================
  Files        539      726      +187     
  Lines      47592    59495    +11903     
  Branches    6085     7623     +1538     
==========================================
+ Hits           0    27533    +27533     
+ Misses     47592    31794    -15798     
- Partials       0      168      +168     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@stephanie-eng stephanie-eng requested a review from nbbrooks March 13, 2026 20:13
@stephanie-eng stephanie-eng force-pushed the seng/update-get-package-share branch 3 times, most recently from f9eb433 to f0b9544 Compare March 13, 2026 21:34
@nbbrooks
Copy link
Contributor

nbbrooks commented Mar 15, 2026

This is to address ament/ament_index#112

No, this is to address ament/ament_index#104 in Rolling distro - ament/ament_index#112 is not released to debians yet.

@nbbrooks
Copy link
Contributor

@stephanie-eng could you turn on "Allow edits from maintainers" so I can push some changes? For now I duplicated this PR in #3705

@stephanie-eng
Copy link
Contributor Author

Screenshot_20260315_134006_Firefox
Should already be on @nbbrooks

Stephanie Eng and others added 5 commits March 22, 2026 11:11
This reverts commit f0b9544.
Qt6 migration will be handled in a separate branch.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@nbbrooks nbbrooks force-pushed the seng/update-get-package-share branch from a3d95b1 to 8bef942 Compare March 22, 2026 17:16
Copy link
Contributor

@nbbrooks nbbrooks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Image

@nbbrooks nbbrooks enabled auto-merge (squash) March 23, 2026 13:09
@nbbrooks nbbrooks disabled auto-merge March 23, 2026 13:09
@nbbrooks
Copy link
Contributor

Looks like I missed a QT migration I'll address in a followup - in previous PRs I recall the deprecation check failing on get_package_share deprecations but I do not see this here so LGTM.

  /home/runner/work/moveit2/moveit2/.work/target_ws/src/moveit2/moveit_setup_assistant/moveit_setup_srdf_plugins/src/collision_linear_model.cpp: In function ‘bool moveit_setup::srdf_setup::compareVariants(const QVariant&, const QVariant&)’:
  /home/runner/work/moveit2/moveit2/.work/target_ws/src/moveit2/moveit_setup_assistant/moveit_setup_srdf_plugins/src/collision_linear_model.cpp:279:42: error: ‘Type’ is deprecated: Use QMetaType::Type instead. [-Werror=deprecated-declarations]
    279 |   if (left.userType() == QVariant::Type::Int)
        |                                          ^~~
  In file included from /usr/include/x86_64-linux-gnu/qt6/QtCore/qabstractitemmodel.h:11,
                   from /usr/include/x86_64-linux-gnu/qt6/QtCore/qabstractproxymodel.h:7,
                   from /usr/include/x86_64-linux-gnu/qt6/QtCore/QAbstractProxyModel:1,
                   from /home/runner/work/moveit2/moveit2/.work/target_ws/src/moveit2/moveit_setup_assistant/moveit_setup_srdf_plugins/include/moveit_setup_srdf_plugins/collision_linear_model.hpp:39,
                   from /home/runner/work/moveit2/moveit2/.work/target_ws/src/moveit2/moveit_setup_assistant/moveit_setup_srdf_plugins/src/collision_linear_model.cpp:37:
  /usr/include/x86_64-linux-gnu/qt6/QtCore/qvariant.h:61:70: note: declared here
     61 |     enum QT_DEPRECATED_VERSION_X_6_0("Use QMetaType::Type instead.") Type
        |                                                                      ^~~~
  At global scope:
  cc1plus: note: unrecognized command-line option ‘-Wno-unknown-warning-option’ may have been intended to silence earlier diagnostics
  cc1plus: all warnings being treated as errors
  gmake[2]: *** [CMakeFiles/moveit_setup_srdf_plugins.dir/build.make:90: CMakeFiles/moveit_setup_srdf_plugins.dir/src/collision_linear_model.cpp.o] Error 1
  gmake[1]: *** [CMakeFiles/Makefile2:166: CMakeFiles/moveit_setup_srdf_plugins.dir/all] Error 2
  gmake: *** [Makefile:146: all] Error 2
  ---
  Failed   <<< moveit_setup_srdf_plugins [41.2s, exited with code 2]

@nbbrooks nbbrooks changed the title Update deprecated usage of get_package_share Update deprecated usage of get_package_share without std::filesystem::path Mar 23, 2026
@nbbrooks nbbrooks merged commit 17b0dcf into moveit:main Mar 23, 2026
9 of 11 checks passed
@github-project-automation github-project-automation bot moved this to ✅ Done in MoveIt Mar 23, 2026
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.

3 participants