-
Notifications
You must be signed in to change notification settings - Fork 64
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
Bugfix in integration tests and fixed ROS2 tests #1841
Conversation
@erlingrj It looks like the fix in the test suite also exposed a bug in the zephyr support (see the test log). Could you take a look at this? |
Ok, I think I found the problem. |
Will take a look tomorrow! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thanks for the fix!
Why should the targetConfig be reloaded after applying the Configurators, which is what we use to change the targetProperty? I believe the Zephyr tests now fail because the Configurator step adds the platform target property, but now this is undone by reloading the targetConfig once more after. |
Do we need a new type of Configurator which can modify the target properties and runs last? |
Oh, that is a good point. Thanks! I guess it was not well-defined how the configurator is supposed to be used. The configurator for the ROS2 tests was modifying the resource, so that the target config needs to be reloaded after the transformation. I will change the ROS2 generator to also directly modify the target properties. |
I had assumed that the added reload happened in between runs, but if it happens after the target property changes and before the execution, then that's no bueno. |
This PR fixes a bug in our integration tests that prevented the C++ ROS2 tests from actually being compiled with the ROS2 flag. Effectively, we did not run any of the ROS2 tests for a while. Since a few small bugs crept into the ROS2 support in the meantime, this PR also fixes the problems in the ROS2 code generation and pulls in lf-lang/reactor-cpp#50.