← Back to Pull requests

fix: Set GZ_IP on all types of tests #4047

Merged
azeey merged 11 files (16 lines) on Oct 07, 2026 16:11 UTC
View on GitHub
azeey azeey commented on Oct 07, 2026 02:58 UTC
Author

🦟 Bug fix

Summary


Currently, only integration tests set GZ_IP, but many of our unit and other types of tests use gz-transport. I noticed the error "Exception sending a multicast message:No route to host" on UNIT_Server_TEST running on macOS (see https://build.osrfoundation.org/job/gz_sim-ci-pr_any-homebrew-arm64/2165/consoleText). Setting GZ_IP should eliminate this.

Backport Policy


<!-- Should this PR be backported to older versions? Important factors to consider include API/ABI and behavior changes. If so, which versions? Choose one pre-written option or suggest your own. If you're unsure leave this empty and let the maintainer advise. -->
  • This is safe to backport to the following versions:

  • - [x] Jetty
    - [x] Ionic
    - [x] Harmonic
    - [x] Fortress
  • This should not be backported

  • I am not sure

  • Other (fill in yourself)
  • Checklist


  • Signed all commits for DCO

  • Added a screen capture or video to the PR description that demonstrates the fix (as needed)

  • Added tests

  • Updated documentation (as needed)

  • Updated migration guide (as needed)

  • Consider updating Python bindings (if the library has them)

  • codecheck passed (See contributing)

  • All tests passed (See test coverage)

  • Updated Bazel files (if adding new files). Created an issue otherwise.

  • While waiting for a review on your PR, please help review another open pull request to support the maintainers

  • Was GenAI used to generate this PR? If so, make sure to add "Assisted-by" to your commits. (See this policy for more info.)
  • Note to maintainers: Remember to use Squash-Merge and edit the commit message to match the pull request summary while retaining Signed-off-by and Generated-by messages.

    Backports: If this is a backport, please use Rebase and Merge instead.

    Diff: 16 lines (+14 / -2) across 11 files Reviewer: ahcorde Review duration: 793m
    All Vouch review confidence checks passed
    Residual risk 0.10 = Change Risk (0.35) × (1 − Review Confidence (0.70)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.35 · 16 lines diff across 11 files
    0.35
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.55 · 2 substantive comment(s)
    0.55
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    70%
    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.170
    Real PR Conversation Timeline
    4 items
    ahcorde ahcorde approved these changes on Oct 07, 2026 08:38 UTC
    Approved Reviewer

    Approved these changes.

    arjo129 arjo129 commented on Oct 08, 2026 07:28 UTC
    Contributor

    @mergifyio backport gz-sim10 gz-sim8 gz-sim9 ign-gazebo6

    mergify[bot] mergify[bot] commented on Oct 08, 2026 07:28 UTC
    Bot

    backport gz-sim10 gz-sim8 gz-sim9 ign-gazebo6

    ✅ Backports have been created

    <details>

    #4053 fix: Set GZ_IP on all types of tests (backport #4047) has been created for branch gz-sim10 but encountered conflicts

    Cherry-pick of c46e4708b37d42e851d0a0fc8c467a3b887114f6 has failed:

    On branch mergify/bp/gz-sim10/pr-4047
    Your branch is up to date with 'origin/gz-sim10'.
    
    You are currently cherry-picking commit c46e470.
      (fix conflicts and run "git cherry-pick --continue")
      (use "git cherry-pick --skip" to skip this patch)
      (use "git cherry-pick --abort" to cancel the cherry-pick operation)
    
    Changes to be committed:
    	modified:   src/CMakeLists.txt
    	modified:   src/cmd/CMakeLists.txt
    	modified:   src/gui/CMakeLists.txt
    	modified:   src/gui/plugins/CMakeLists.txt
    	modified:   src/systems/environmental_sensor_system/CMakeLists.txt
    	modified:   src/systems/hydrodynamics/CMakeLists.txt
    	modified:   src/systems/logical_audio_sensor_plugin/CMakeLists.txt
    	modified:   src/systems/physics/CMakeLists.txt
    	modified:   test/performance/CMakeLists.txt
    	modified:   test/regression/CMakeLists.txt
    
    Unmerged paths:
      (use "git add <file>..." to mark resolution)
    	both modified:   src/systems/diff_drive/CMakeLists.txt
    

    To fix up this pull request, you can check it out locally. See documentation: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally
    #4054 fix: Set GZ_IP on all types of tests (backport #4047) has been created for branch gz-sim8 but encountered conflicts

    Cherry-pick of c46e4708b37d42e851d0a0fc8c467a3b887114f6 has failed:

    On branch mergify/bp/gz-sim8/pr-4047
    Your branch is up to date with 'origin/gz-sim8'.
    
    You are currently cherry-picking commit c46e470.
      (fix conflicts and run "git cherry-pick --continue")
      (use "git cherry-pick --skip" to skip this patch)
      (use "git cherry-pick --abort" to cancel the cherry-pick operation)
    
    Changes to be committed:
    	modified:   src/CMakeLists.txt
    	modified:   src/gui/CMakeLists.txt
    	modified:   src/gui/plugins/CMakeLists.txt
    	modified:   src/systems/environmental_sensor_system/CMakeLists.txt
    	modified:   src/systems/hydrodynamics/CMakeLists.txt
    	modified:   src/systems/logical_audio_sensor_plugin/CMakeLists.txt
    	modified:   src/systems/physics/CMakeLists.txt
    	modified:   test/performance/CMakeLists.txt
    	modified:   test/regression/CMakeLists.txt
    
    Unmerged paths:
      (use "git add <file>..." to mark resolution)
    	both modified:   src/cmd/CMakeLists.txt
    	both modified:   src/systems/diff_drive/CMakeLists.txt
    

    To fix up this pull request, you can check it out locally. See documentation: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally
    #4055 fix: Set GZ_IP on all types of tests (backport #4047) has been created for branch gz-sim9 but encountered conflicts

    Cherry-pick of c46e4708b37d42e851d0a0fc8c467a3b887114f6 has failed:

    On branch mergify/bp/gz-sim9/pr-4047
    Your branch is up to date with 'origin/gz-sim9'.
    
    You are currently cherry-picking commit c46e470.
      (fix conflicts and run "git cherry-pick --continue")
      (use "git cherry-pick --skip" to skip this patch)
      (use "git cherry-pick --abort" to cancel the cherry-pick operation)
    
    Changes to be committed:
    	modified:   src/CMakeLists.txt
    	modified:   src/cmd/CMakeLists.txt
    	modified:   src/gui/CMakeLists.txt
    	modified:   src/gui/plugins/CMakeLists.txt
    	modified:   src/systems/environmental_sensor_system/CMakeLists.txt
    	modified:   src/systems/hydrodynamics/CMakeLists.txt
    	modified:   src/systems/logical_audio_sensor_plugin/CMakeLists.txt
    	modified:   src/systems/physics/CMakeLists.txt
    	modified:   test/performance/CMakeLists.txt
    	modified:   test/regression/CMakeLists.txt
    
    Unmerged paths:
      (use "git add <file>..." to mark resolution)
    	both modified:   src/systems/diff_drive/CMakeLists.txt
    

    To fix up this pull request, you can check it out locally. See documentation: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally
    #4056 fix: Set GZ_IP on all types of tests (backport #4047) has been created for branch ign-gazebo6 but encountered conflicts

    Cherry-pick of c46e4708b37d42e851d0a0fc8c467a3b887114f6 has failed:

    On branch mergify/bp/ign-gazebo6/pr-4047
    Your branch is up to date with 'origin/ign-gazebo6'.
    
    You are currently cherry-picking commit c46e470.
      (fix conflicts and run "git cherry-pick --continue")
      (use "git cherry-pick --skip" to skip this patch)
      (use "git cherry-pick --abort" to cancel the cherry-pick operation)
    
    Unmerged paths:
      (use "git add/rm <file>..." as appropriate to mark resolution)
    	both modified:   src/CMakeLists.txt
    	both modified:   src/cmd/CMakeLists.txt
    	both modified:   src/gui/CMakeLists.txt
    	both modified:   src/gui/plugins/CMakeLists.txt
    	both modified:   src/systems/diff_drive/CMakeLists.txt
    	deleted by us:   src/systems/environmental_sensor_system/CMakeLists.txt
    	both modified:   src/systems/hydrodynamics/CMakeLists.txt
    	both modified:   src/systems/logical_audio_sensor_plugin/CMakeLists.txt
    	both modified:   src/systems/physics/CMakeLists.txt
    	both modified:   test/performance/CMakeLists.txt
    	both modified:   test/regression/CMakeLists.txt
    
    no changes added to commit (use "git add" and/or "git commit -a")
    

    To fix up this pull request, you can check it out locally. See documentation: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally

    </details>

    Reviewers
    Assignees
    azeey azeey
    Labels
    risk: low confidence: 70.5% 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: 34.6% (LOW) · Higher = larger blast radius
    34.6%
    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: 70.5% · Lower = rushed or shallow review
    70.5%
    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: 10.2% · Safe to merge
    10.2%