← Back to Pull requests

build: find mimick_vendor for test targets (fixes #2306) #3413

Merged
Aaravanand00 merged 3 files (3 lines) on Nov 17, 2026 08:38 UTC
View on GitHub
Aaravanand00 Aaravanand00 commented on Nov 15, 2026 11:03 UTC
Author

Description

Fixes #2306

rclcpp, rclcpp_action, and rclcpp_lifecycle link several test targets against the mimick library and declare mimick_vendor as a <test_depend> in their package.xml files.

However, none of their CMakeLists.txt files actually invoked find_package(mimick_vendor REQUIRED). Without this call, CMake does not import the mimick target with its exported vendor installation paths, and instead falls back to passing plain -lmimick to the linker.

When overlaying rclcpp on top of binary installations (e.g. colcon build --allow-overriding rclcpp ...), /usr/bin/ld fails to locate libmimick.a in the isolated vendor prefix unless the environment was re-sourced after installing ros-<distro>-mimick-vendor.

This PR adds find_package(mimick_vendor REQUIRED) under BUILD_TESTING in:

  • rclcpp/test/CMakeLists.txt

  • rclcpp_action/CMakeLists.txt

  • rclcpp_lifecycle/CMakeLists.txt
  • Matching the pattern already used in rcl/test/CMakeLists.txt.

    Is this user-facing behavior change?

    No API changes. Fixes linker failure (/usr/bin/ld: cannot find -lmimick) when compiling tests on overlay workspaces.

    Did you use Generative AI?

    Yes AI was used to assist with root cause analysis and verifying CMake dependency chains.

    Additional Information

  • Verified locally with ament_lint_cmake (0 problems found).
  • Diff: 3 lines (+3 / -0) across 3 files Reviewer: mjcarroll Review duration: 2735m
    All Vouch review confidence checks passed
    Residual risk 0.04 = Change Risk (0.14) × (1 − Review Confidence (0.72)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.14 · 3 lines diff across 3 files
    0.14
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.55 · 3 substantive comment(s)
    0.55
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 50%
    71%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.083
    Real PR Conversation Timeline
    6 items
    github-actions[bot] github-actions[bot] commented on Nov 15, 2026 11:11 UTC
    Bot

    ABI Compliance Check

    ✅ Verdict: compatible

    | Library | Verdict | Summary |
    |---|---|---|
    | libcomponent_manager.so | ✅ compatible | No ABI changes detected. |
    | librclcpp.so | ✅ compatible | No ABI changes detected. |
    | librclcpp_action.so | ✅ compatible | No ABI changes detected. |
    | librclcpp_lifecycle.so | ✅ compatible | No ABI changes detected. |

    <details><summary>✅ <code>libcomponent_manager.so</code> — full abidiff report</summary>

    Compared:

  • Base: lib-base/libcomponent_manager.so

  • Head: lib-pr/libcomponent_manager.so @ b15fde2
  • (empty report — no differences printed by abidiff)
    

    </details>

    <details><summary>✅ <code>librclcpp.so</code> — full abidiff report</summary>

    Compared:

  • Base: lib-base/librclcpp.so

  • Head: lib-pr/librclcpp.so @ b15fde2
  • (empty report — no differences printed by abidiff)
    

    </details>

    <details><summary>✅ <code>librclcpp_action.so</code> — full abidiff report</summary>

    Compared:

  • Base: lib-base/librclcpp_action.so

  • Head: lib-pr/librclcpp_action.so @ b15fde2
  • (empty report — no differences printed by abidiff)
    

    </details>

    <details><summary>✅ <code>librclcpp_lifecycle.so</code> — full abidiff report</summary>

    Compared:

  • Base: lib-base/librclcpp_lifecycle.so

  • Head: lib-pr/librclcpp_lifecycle.so @ b15fde2
  • (empty report — no differences printed by abidiff)
    

    </details>

    <sub>Updated for commit b15fde2 · check run · suppressions: /home/runner/work/_temp/ros2-abi-suppressions.txt</sub>
    <!-- libabigail-action-marker:ros2-abi -->

    Aaravanand00 Aaravanand00 commented on Nov 15, 2026 11:28 UTC
    Author

    @clalancette @fujitatomoya ptal is this looks good???

    mjcarroll mjcarroll commented on Nov 16, 2026 19:03 UTC
    Contributor

    Pulls: ros2/rclcpp#3413
    Gist: https://gist.githubusercontent.com/mjcarroll/433cb4c696956225ea1a57a51eb665f1/raw/6a3af7ab6c1a6718ee0fc727a62f35329595388f/ros2.repos
    BUILD args: --packages-above-and-dependencies rclcpp rclcpp_action rclcpp_lifecycle
    TEST args: --packages-above rclcpp rclcpp_action rclcpp_lifecycle
    ROS Distro: rolling
    Job: ci_launcher
    ci_launcher ran: https://ci.ros2.org/job/ci_launcher/21126
    Linux ![Build Status](http://ci.ros2.org/job/ci_linux/31334/)
    Linux-aarch64 ![Build Status](http://ci.ros2.org/job/ci_linux-aarch64/23939/)
    Linux-rhel ![Build Status](http://ci.ros2.org/job/ci_linux-rhel/11107/)
    Windows ![Build Status](http://ci.ros2.org/job/ci_windows/30091/)

    mjcarroll mjcarroll approved these changes on Nov 16, 2026 19:04 UTC
    Approved Reviewer

    Approved these changes.

    ahcorde ahcorde approved these changes on Nov 17, 2026 08:38 UTC
    Approved Reviewer

    Approved these changes.

    Reviewers
    Assignees
    Aaravanand00 Aaravanand00
    Labels
    risk: low confidence: 71.9% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 14.2% (LOW) · Higher = larger blast radius
    14.2%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 71.9% · Lower = rushed or shallow review
    71.9%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 4% · Safe to merge
    4%
    Repository