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

More Helpful Error Messages (backport #275) #289

Merged
merged 1 commit into from
Dec 2, 2021

Conversation

mergify[bot]
Copy link

@mergify mergify bot commented Nov 23, 2021

This is an automatic backport of pull request #275 done by Mergify.


Mergify commands and options

More conditions and actions can be found in the documentation.

You can also trigger Mergify actions by commenting on this pull request:

  • @Mergifyio refresh will re-evaluate the rules
  • @Mergifyio rebase will rebase this PR on its base branch
  • @Mergifyio update will merge the base branch into this PR
  • @Mergifyio backport <destination> will backport this PR on <destination> branch

Additionally, on Mergify dashboard you can:

  • look at your merge queues
  • generate the Mergify configuration with the config editor.

Finally, you can contact us on https://mergify.com

* More Helpful Error Messages

Signed-off-by: David V. Lu <davidvlu@gmail.com>

* Linting

Signed-off-by: David V. Lu <davidvlu@gmail.com>
(cherry picked from commit b6f187a)
@adityapande-1995
Copy link
Contributor

adityapande-1995 commented Nov 23, 2021

CI with foxy repos.url:
build : --packages-above-and-dependencies launch_ros
test : --packages-above launch_ros

  • Linux Build Status
  • Linux-aarch64 Build Status
  • macOS Build Status
  • Windows Build Status

@adityapande-1995
Copy link
Contributor

adityapande-1995 commented Nov 24, 2021

Windows error seems to be flaky and unrelated. CI re-run :
Build Status

Attempt 2 :
Build Status

@DLu
Copy link
Contributor

DLu commented Dec 1, 2021

@adityapande-1995 Anything I should do here?

@adityapande-1995
Copy link
Contributor

adityapande-1995 commented Dec 1, 2021

@jacobperron do you think this windows rosbag error is related to the shutdown issue : ros2/rosbag2#926 ? In this case the CI is not able to find the .db3 file for rosbag.

@jacobperron
Copy link
Member

The failure looks unrelated to me. You can trigger a vanilla foxy build to be sure, but I would be okay merging this.

@jacobperron
Copy link
Member

It would be nice to create a ticket in rosbag2 for this unrelated failure.

@adityapande-1995
Copy link
Contributor

adityapande-1995 commented Dec 1, 2021

Vanilla foxy CI for windows : Build Status

Same error appears in the vanialla builld. I'll merge this and ticket the issue.

@@ -69,9 +69,17 @@ def check_sequence_type_is_allowed(sequence):
if isinstance(value[0], Substitution):
# Value is a list of substitutions, so perform them to make a string
evaluated_value = perform_substitutions(context, list(value))
yaml_evaluated_value = yaml.safe_load(evaluated_value)
if yaml_evaluated_value is None:
yaml_evaluated_value = ''
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removing this check breaks existing launch files in Foxy (and Galactic). For example, the following used to work:

import launch
from launch.actions import DeclareLaunchArgument
from launch.substitutions import LaunchConfiguration
from launch_ros.actions import Node


def generate_launch_description():
    return launch.LaunchDescription([
        DeclareLaunchArgument('foo', default_value=''),
        Node(
            package='demo_nodes_py',
            executable='talker',
            name='talker_node',
            output='screen',
            parameters = [
                {'foo': LaunchConfiguration('foo')}
            ]
        ),
    ])

because the LaunchConfiguration substitution evaluated to None which used to translate to the empty string.

I think we can easily fix the issue in Foxy and Galactic by adding back L73-74 above, but I'm not sure what the correct behavior should be on Rolling.

@adityapande-1995 @DLu thoughts?

cc/ @Yadunund

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See #300 for a proposed fix.

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.

3 participants