Skip to content

Fix rviz Qt6 threshold: 15.1 → 15.1.14 - #3807

Merged
nbbrooks merged 1 commit into
mainfrom
nbbrooks/rviz-qt6-threshold-15.1.14
Aug 3, 2026
Merged

nbbrooks merged 1 commit into
mainfrom
nbbrooks/rviz-qt6-threshold-15.1.14

Conversation

@nbbrooks

@nbbrooks nbbrooks commented Aug 2, 2026

Copy link
Copy Markdown
Collaborator

Description

Follow-up to #3707. The Qt6 gates it added test rviz2_VERSION VERSION_GREATER_EQUAL 15.1, but rviz didn't switch to Qt6 at 15.1.0.

ros2/rviz#1635 — "Use qt6 as the default dependency from rosdep" (ahcorde, merged 2025-12-08, 4784c8cd) — first shipped in the 15.1.14 tag on 2025-12-17.

Bisecting rviz_common/package.xml upstream:

15.1.11 15.1.12 15.1.13 15.1.14
qtbase5-dev qtbase5-dev qtbase5-dev qt6-base-dev

So 15.1.0 – 15.1.13 are Qt5 but currently classify as Qt6. Building against an rviz in that window selects Qt6 while rviz itself is Qt5.

Impact

Latent, not currently breaking — no active distro is in the bad window:

distro rviz2_VERSION actual Qt
humble 11.2.26 Qt5
jazzy 14.1.22 Qt5
kilted 15.0.13 Qt5
lyrical 15.2.4 Qt6
rolling 16.0.1 Qt6

Worth fixing anyway: kilted is at 15.0.13, one patch series below the bad range.

Note the failure mode is not a silent ABI mismatch — where Qt5 and Qt6 are both installed, find_package(Qt6) after rviz's Qt5 has defined the versionless Qt::Core target aborts the configure with Some (but not all) targets in this export set were already defined.

Changes

15.1 → 15.1.14 in all 8 CMakeLists.txt carrying the gate (moveit_ros/visualization + the 7 moveit_setup_assistant packages), and the comment now records which release introduced the switch.

Validation

Probed osrf/ros:<distro>-desktop containers: confirmed rviz2_VERSION and rviz_common_VERSION agree, and the corrected gate still resolves correctly — kilted 15.0.13 → Qt5, lyrical 15.2.4 → Qt6, rolling 16.0.1 → Qt6.

Checklist

  • Required by CI: Code is auto formatted using clang-format — CMake-only, no C++ changed
  • Extend the tutorials / documentation — not applicable
  • Document API changes relevant to the user in the MIGRATION.md notes — not applicable, build-system-internal
  • Create tests, which fail without this PR — not applicable
  • Include a screenshot if changing a GUI — not applicable

🤖 Generated with Claude Code

@nbbrooks
nbbrooks force-pushed the nbbrooks/rviz-qt6-threshold-15.1.14 branch from c9ab5b0 to 58af015 Compare August 2, 2026 20:42
The Qt6 gates added in #3707 test `rviz2_VERSION VERSION_GREATER_EQUAL 15.1`,
but rviz did not switch to Qt6 at 15.1.0. ros2/rviz#1635 ("Use qt6 as the
default dependency from rosdep", ahcorde, merged 2025-12-08, commit 4784c8cd)
first shipped in the 15.1.14 tag on 2025-12-17. Bisecting rviz_common's
package.xml:

  15.1.11  qtbase5-dev
  15.1.12  qtbase5-dev
  15.1.13  qtbase5-dev
  15.1.14  qt6-base-dev   <- switch

So 15.1.0 through 15.1.13 are Qt5 but are currently classified as Qt6. Any
build against an rviz in that window picks Qt6 while rviz itself is Qt5.

No active distro sits in that window today (humble 11.2.x, jazzy 14.1.x,
kilted 15.0.x are Qt5; lyrical 15.2.x and rolling 16.0.x are Qt6), so this is
latent rather than currently breaking -- but kilted is at 15.0.13, one patch
series below the bad range.

Applied to all 8 CMakeLists.txt carrying the gate (moveit_ros/visualization
plus the 7 moveit_setup_assistant packages).

Verified in osrf/ros:<distro>-desktop containers that rviz2_VERSION and
rviz_common_VERSION agree and that the corrected gate still resolves
correctly: kilted 15.0.13 -> Qt5, lyrical 15.2.4 -> Qt6, rolling 16.0.1 -> Qt6.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
@nbbrooks
nbbrooks force-pushed the nbbrooks/rviz-qt6-threshold-15.1.14 branch from 58af015 to ede3d8a Compare August 2, 2026 23:57
@codecov

codecov Bot commented Aug 3, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 46.30%. Comparing base (f737f20) to head (ede3d8a).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3807      +/-   ##
==========================================
+ Coverage   46.21%   46.30%   +0.09%     
==========================================
  Files         726      726              
  Lines       59510    59506       -4     
  Branches     7623     7623              
==========================================
+ Hits        27497    27547      +50     
+ Misses      31845    31793      -52     
+ Partials      168      166       -2     

☔ View full report in Codecov by Harness.
📢 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.

@nbbrooks
nbbrooks merged commit e27514f into main Aug 3, 2026
13 of 20 checks passed
@nbbrooks
nbbrooks deleted the nbbrooks/rviz-qt6-threshold-15.1.14 branch August 3, 2026 02:39
@github-project-automation github-project-automation Bot moved this to ✅ Done in MoveIt Aug 3, 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.

1 participant