fix: reject deprecated node-name frontend key - #538
Conversation
Signed-off-by: Lidang Jiang <lidangjiang@gmail.com>
christophebedard
left a comment
There was a problem hiding this comment.
As I mentioned in #537 (comment), node-name was indeed deprecated and should've been removed a long time ago. Other than removing some tests that I don't think we need, this looks good.
Please update the PR description to match the PR template and disclose any AI use.
Signed-off-by: Lidang Jiang <lidangjiang@gmail.com>
Waiting on this |
|
Thanks for the reminder. I updated the PR description to match the ROS 2 PR template and added the Generative AI disclosure. |
christophebedard
left a comment
There was a problem hiding this comment.
Looks good, thanks for the PR.
If someone was using node-name in an XML or YAML launch file, it wouldn't work, it currently wouldn't work, so this isn't a breaking change. It's more of an improved error message. Therefore, I will backport it to older distros.
|
Pulls: #538 |
|
@Mergifyio backport lyrical kilted jazzy humble |
✅ Backports have been createdDetails
|
Description
Stop accepting the deprecated
node-namefrontend key inNode.parse()so YAML and XML launch files report it as an unexpected key/attribute, matching the existingnameAPI.Fixes #537
Is this user-facing behavior change?
Yes. Launch files that still use the deprecated
node-namefrontend key/attribute will now fail frontend parsing as an unexpected key/attribute. Users should use the existingnamekey/attribute instead.Did you use Generative AI?
Yes. I used OpenAI Codex (GPT-5) to help prepare this PR, including drafting the PR description, checking the diff, and addressing reviewer feedback. The code change itself is limited to removing the deprecated
node-nameparsing path; the initially added regression tests were removed after review feedback.Additional Information
Before
After
Test plan
git diff --checkpython3 -m py_compile launch_ros/launch_ros/actions/node.py test_launch_ros/test/test_launch_ros/frontend/test_node_frontend.pyruff check launch_ros/launch_ros/actions/node.py test_launch_ros/test/test_launch_ros/frontend/test_node_frontend.pyament_index_pythonis not installed