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

Revert "Use std::shared_ptr for gz::transport::NodeShared (#484)" #490

Merged
merged 1 commit into from
Apr 2, 2024

Conversation

azeey
Copy link
Contributor

@azeey azeey commented Apr 1, 2024

🦟 Bug fix

Summary

#484 fixed the INTEGRATION_triggered_publisher test in gz-sim8, but introduced a couple of regressions (see https://build.osrfoundation.org/job/gz_sim-ci-gz-sim8-jammy-amd64/82/ and https://build.osrfoundation.org/job/gz_sim-ci-gz-sim8-jammy-amd64/83/):

NetworkHandshake.Updates

Error Message
/home/jenkins/workspace/gz_sim-ci-gz-sim8-jammy-amd64/gz-sim/test/integration/network_handshake.cc:220
Expected: (100u) <= (zPos.size()), actual: 100 vs 70

and ServerRepeat/SceneBroadcasterTest.StateStatic/0 (from ServerRepeat_SceneBroadcasterTest)


Error Message
/home/jenkins/workspace/gz_sim-ci-gz-sim8-jammy-amd64/gz-sim/test/integration/scene_broadcaster_system.cc:588
Expected: (stepMsg.stats().real_time().nsec()) < (_msg.stats().real_time().nsec()), actual: 943661800 vs 44593094

It is possible to fix the regressions, but I did notice deadlocks while testing my fixes locally. The deadlocks occur as NodeShared was being destroyed, so I think it's best to revert this and investigate why the deadlock occurs. I'll open an issue to track it.

Checklist

  • Signed all commits for DCO
  • 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)
  • While waiting for a review on your PR, please help review another open pull request to support the maintainers

Note to maintainers: Remember to use Rebase and Merge

🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸

@azeey azeey requested a review from caguero as a code owner April 1, 2024 21:24
@github-actions github-actions bot added the 🎵 harmonic Gazebo Harmonic label Apr 1, 2024
Copy link

codecov bot commented Apr 1, 2024

Codecov Report

Attention: Patch coverage is 95.00000% with 1 lines in your changes are missing coverage. Please review.

Project coverage is 87.71%. Comparing base (eac2e69) to head (0099c2d).
Report is 10 commits behind head on gz-transport13.

Files Patch % Lines
src/NodeShared.cc 92.85% 1 Missing ⚠️
Additional details and impacted files
@@                Coverage Diff                 @@
##           gz-transport13     #490      +/-   ##
==================================================
+ Coverage           87.69%   87.71%   +0.02%     
==================================================
  Files                  59       59              
  Lines                5704     5708       +4     
==================================================
+ Hits                 5002     5007       +5     
+ Misses                702      701       -1     

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

@azeey
Copy link
Contributor Author

azeey commented Apr 2, 2024

There is an (expected) ABI failure, but the change hasn't been released yet, so we can go ahead and merge.

@azeey azeey merged commit 0bcf9c6 into gazebosim:gz-transport13 Apr 2, 2024
9 of 10 checks passed
@azeey azeey deleted the revert_484 branch April 2, 2024 14:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🎵 harmonic Gazebo Harmonic
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

4 participants