Skip to content

test_subscription_topic_statistics fails with rmw_connext_cpp #1403

Closed

Activity

  1. iuhilnehc-ynos commented on Oct 19, 2020

    @iuhilnehc-ynos
    Collaborator

    I can reproduce this failure, and the topic echo show the publisher for topic '/statistics' might publish message (nan members), please refer to

    $ ros2 topic echo /statistics statistics_msgs/msg/MetricsMessage
    measurement_source_name: test_sub_stats_node
    metrics_source: message_age
    unit: ms
    window_start:
      sec: 1603101739
      nanosec: 842547404
    window_stop:
      sec: 1603101740
      nanosec: 843078333
    statistics:
    - data_type: 1
      data: .nan
    - data_type: 3
      data: .nan
    - data_type: 2
      data: .nan
    - data_type: 5
      data: 0.0
    - data_type: 4
      data: .nan
    ---
    measurement_source_name: test_sub_stats_node
    metrics_source: message_period
    unit: ms
    window_start:
      sec: 1603101739
      nanosec: 842547404
    window_stop:
      sec: 1603101740
      nanosec: 843078333
    statistics:
    - data_type: 1
      data: .nan
    - data_type: 3
      data: .nan
    - data_type: 2
      data: .nan
    - data_type: 5
      data: 0.0
    - data_type: 4
      data: .nan
    ---
    

    I am sure it's introduced in #1281.

    #1281 lost logic,

        if (!has_samples) {
          continue;
        }
    
  2. added
    bug
    on Oct 28, 2020
  3. ivanpauno commented on Oct 28, 2020

    @ivanpauno
    Member

    @dabonnie does @iuhilnehc-ynos comment make sense to you?
    Would reintroducing that logic fix the issue?

  4. dabonnie commented on Oct 28, 2020

    @dabonnie
    Contributor

    I don't think so (context here).

    For that test I'm curious why it's only failing for connext. Notice how line 243 introduces a check for empty messages, which is used at line 416 to assert that empty header messages are empty. IMHO the continue block is just hiding a failure, where we don't expect a message to have empty fields at that point.

  5. added
    Connext
    tests
    Linux
    on Nov 4, 2020
  6. clalancette commented on Feb 3, 2022

    @clalancette
    Contributor

    Since we aren't using rmw_connext_cpp anymore, this one isn't really that relevant. So I'll close it out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

ConnextLinuxbugtests

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions