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

Fixes flaky RobotState test (backport #3105) #3107

Merged
merged 2 commits into from
Nov 16, 2024

Conversation

mergify[bot]
Copy link

@mergify mergify bot commented Nov 16, 2024

Description

Fixes #3103 by ensuring that the dirty_link_transforms_ member is cleared before querying the RobotState

See #3102 for more details on the cause.

TLDR:

Setting the build type to Release causes tests to silently fail, whereas Debug does not (some tests rely on assert calls, which are enabled / disabled based on the presence of the NDBUG macro variable, which is set by CMake depending on the build type).

See the SonarScan pipeline call to ros-industrial/industrial_ci@master, which sets DCMAKE_BUILD_TYPE to Debug (and where the tests fail), and the same call in the rolling-ci pipeline (where the tests pass), which sets the same variable to Release.

I've also added a comment (and demonstration of the fix, at least for this test) locally.

Checklist

  • Required by CI: Code is auto formatted using clang-format
  • Extend the tutorials / documentation reference
  • Document API changes relevant to the user in the MIGRATION.md notes
  • Create tests, which fail without this PR reference
  • Include a screenshot if changing a GUI
  • While waiting for someone to review your request, please help review another open pull request to support the maintainers

This is an automatic backport of pull request #3105 done by [Mergify](https://mergify.com).

* Fixes flaky RobotState test

* Removes redundant line

(cherry picked from commit f20265a)

# Conflicts:
#	moveit_core/robot_state/test/robot_state_test.cpp
@mergify mergify bot added the conflicts label Nov 16, 2024
Copy link
Author

mergify bot commented Nov 16, 2024

Cherry-pick of f20265a has failed:

On branch mergify/bp/humble/pr-3105
Your branch is up to date with 'origin/humble'.

You are currently cherry-picking commit f20265a5a.
  (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 <file>..." to mark resolution)
	both modified:   moveit_core/robot_state/test/robot_state_test.cpp

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

@TSNoble
Copy link
Contributor

TSNoble commented Nov 16, 2024

@sea-bass Thanks for fixing the conflicts 😄

@sea-bass sea-bass merged commit c6a38fa into humble Nov 16, 2024
7 checks passed
@sea-bass sea-bass deleted the mergify/bp/humble/pr-3105 branch November 16, 2024 11:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants