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 behavior change introduced in #2452 #2527

Merged
merged 2 commits into from
Aug 20, 2024

Conversation

azeey
Copy link
Contributor

@azeey azeey commented Aug 16, 2024

🦟 Bug fix

Fixes #

Summary

PR #2452 changed the loading order of plugins attached to worlds and models. While the change is desirable, it changed the behavior of functions like topicFromScopedName. This reverts the behavior and the changes in associated tests.

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 Squash-Merge and edit the commit message to match the pull request summary while retaining Signed-off-by messages.

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

PR gazebosim#2452 changed the loading order of plugins attached to worlds and models. While the change is desirable, it changed the behavior of functions like `topicFromScopedName`. This reverts the behavior and the changes in associated tests.

Signed-off-by: Addisu Z. Taddese <[email protected]>
@azeey azeey requested a review from mjcarroll as a code owner August 16, 2024 22:08
@github-actions github-actions bot added the 🌱 garden Ignition Garden label Aug 16, 2024
@azeey azeey mentioned this pull request Aug 16, 2024
9 tasks
@iche033
Copy link
Contributor

iche033 commented Aug 16, 2024

looks like the touch plugin integration test is now failing. I can also reproduce it locally.

The issue was not that world plugins are loaded after model plugins, but
that previously, model plugins were called before the model's parent
entity was set.

Signed-off-by: Addisu Z. Taddese <[email protected]>
@azeey
Copy link
Contributor Author

azeey commented Aug 17, 2024

Okay, it turns out the plugin loading order was not the problem. World plugins were always loaded first. The issue was
that before #2452, model plugins were called before the model's parent entity was set. To keep the behavior as is, I moved the world plugin logic above where models were created in SdfEntityCreator.

I'll say since the plugin loading order hasn't changed, this is not as a big of a breaking change as I had originally thought.

@azeey azeey requested a review from nkoenig August 19, 2024 18:31
@nkoenig
Copy link
Contributor

nkoenig commented Aug 20, 2024

Looks good.

@azeey
Copy link
Contributor Author

azeey commented Aug 20, 2024

There was a failure on homebrew, but I think it's a flaky test (https://build.osrfoundation.org/job/gz_sim-ci-pr_any-homebrew-amd64/796/). Rerunning Build Status

@azeey azeey merged commit 6a7c75d into gazebosim:gz-sim7 Aug 20, 2024
9 checks passed
@azeey azeey deleted the revert_behavior_change branch August 20, 2024 22:03
@azeey azeey mentioned this pull request Aug 20, 2024
iche033 added a commit that referenced this pull request Aug 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🌱 garden Ignition Garden
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants