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) #3108

Merged
merged 2 commits into from
Nov 16, 2024
Merged

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)
@sea-bass sea-bass merged commit 90f8de0 into iron Nov 16, 2024
3 of 6 checks passed
@sea-bass sea-bass deleted the mergify/bp/iron/pr-3105 branch November 16, 2024 15:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants