[foxy] Backport parser fixes and type_utils refactor#530
Conversation
Signed-off-by: Dan Rose <dan@digilabs.io>
…sults that need to be coerced to a specific type (#438) Signed-off-by: Ivan Santiago Paunovic <ivanpauno@ekumenlabs.com>
Part of backporting #438 to Foxy. Signed-off-by: Jacob Perron <jacob@openrobotics.org>
52ef127 to
7ce628f
Compare
hidmic
left a comment
There was a problem hiding this comment.
Only skimmed through the PR. API compatibility holds.
LGTM pending green Foxy CI
It does change behavior though, there are values that are parsed different after this PR. |
Question is, do we consider the old behavior a bug or valid but different? I was leaning towards this is a bugfix (correction to intended behavior), but I don't know. |
|
#443 also needs to be backport (#438 was causing issues in CI).
I don't remember exactly, I think that some cases were valid but different (some cases were maybe a bug). <param name="asd" value="''3''"/>was a parameter with a value <param name="asd" value="3" type="str"/> |
Good catch.
Good point, and this is indeed breaking behavior @jacobperron. We may have to reconsider. Having said that, it's also true that quoting was a bit of an obscure corner of
but I don't think we ever documented that behavior. Or at least I don't remember seeing it written anywhere. |
True. I'm ok with backporting this, but it's a potentially breaking change. |
|
This is primarily an attempt to fix ros2/launch_ros#214 (which is a bug in the parser), but it seemed not trivial to fix. I hadn't considered the behavior change. It would be good to know what corner cases this breaks exactly before proceeding. If we decide to merge this, then hopefully we can enumerate the cases this breaks (and show the preferred syntax). |
The only one I remember is the one commented before #530 (comment), I'm not aware of other corner cases but there might be. |
Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
|
Added backport of #443 (85f01b9).
IMO, this was a workaround because of a bug. I think it's worth fixing this with a release note that folks no longer need to do this extra quoting. If everyone agrees with this, I can add a note to the Foxy release page (for the upcoming patch release). |
|
CI together with ros2/launch_ros#265: Edit: Test failures are unrelated to this change. |
Related to ros2/launch#530 and ros2/launch_ros#265 Signed-off-by: Jacob Perron <jacob@openrobotics.org>
|
I've added a release note for the next patch release: ros2/ros2_documentation#2074 |
Related to ros2/launch#530 and ros2/launch_ros#265 Signed-off-by: Jacob Perron <jacob@openrobotics.org>
|
👨🌾 I think this backport caused a test regression in all the foxy jobs. This is the test is failing: https://github.com/ros2/launch_ros/blob/c9b6b7057d19b3cba67072818d499370cb14f163/test_launch_ros/test/test_launch_ros/frontend/test_node_frontend.py#L167 PTAL @jacobperron |
|
@Blast545 My mistake, I forgot to merge the connected PR ros2/launch_ros#265, which I think should resolve the issue. |
|
No prob, thanks for taking a look! |
* Note launch behavior change in Foxy Patch 7 Related to ros2/launch#530 and ros2/launch_ros#265 Signed-off-by: Jacob Perron <jacob@openrobotics.org> * Fix link syntax Signed-off-by: Jacob Perron <jacob@openrobotics.org> * Minor fixes. Signed-off-by: Chris Lalancette <clalancette@openrobotics.org> Co-authored-by: Chris Lalancette <clalancette@openrobotics.org>
* Note launch behavior change in Foxy Patch 7 Related to ros2/launch#530 and ros2/launch_ros#265 Signed-off-by: Jacob Perron <jacob@openrobotics.org> * Fix link syntax Signed-off-by: Jacob Perron <jacob@openrobotics.org> * Minor fixes. Signed-off-by: Chris Lalancette <clalancette@openrobotics.org> Co-authored-by: Chris Lalancette <clalancette@openrobotics.org> (cherry picked from commit dc0ddb4)
* Note launch behavior change in Foxy Patch 7 Related to ros2/launch#530 and ros2/launch_ros#265 Signed-off-by: Jacob Perron <jacob@openrobotics.org> * Fix link syntax Signed-off-by: Jacob Perron <jacob@openrobotics.org> * Minor fixes. Signed-off-by: Chris Lalancette <clalancette@openrobotics.org> Co-authored-by: Chris Lalancette <clalancette@openrobotics.org> (cherry picked from commit dc0ddb4)
Backport #414 (prerequisite for #438) (6fd0e83)
Backport #438 (175c466)
Add back functions removed in #438 for backwards compatibility (7ce628f)
For context, this is part of an effort to fix ros2/launch_ros#214 for Foxy.
This PR will enable us to easily backport ros2/launch_ros#137
I don't think there are any significant changes to API, but it's a large change so I may be mistaken.