Code Monkey home page Code Monkey logo

autoware.core's People

Contributors

awf-autoware-bot[bot] avatar kenji-miyake avatar pre-commit-ci[bot] avatar shmpwk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

autoware.core's Issues

ament_cpplint gives test errors on generated message files

Checklist

  • I've read the contribution guidelines.
  • I've searched other issues and no duplicate issues were found.
  • I'm convinced that this is not my fault but a bug.

Description

The ros2 message unit tests related to ament_cpplint fail with Category 'whitespace/line_length' errors.

Expected behavior

ament_cpplint shouldn't give line length errors for generated message files.

Actual behavior

I was trying to generate a new messages package named autoware_control_center_msgs.

https://github.com/autowarefoundation/autoware.core/actions/runs/3913282956/jobs/6688988149#step:7:926 fails.

To replicate it on my machine I ran:
colcon test --event-handlers console_cohesion+ --packages-select autoware_control_center_msgs --ctest-args -L ".*" --executor sequential --return-code-on-test-failure
And got the same result.

The following tests FAILED:
          2 - cpplint_rosidl_generated_c (Failed)
          5 - cpplint_rosidl_typesupport_fastrtps_c (Failed)
          8 - cpplint_rosidl_generated_cpp (Failed)
         11 - cpplint_rosidl_typesupport_fastrtps_cpp (Failed)
         14 - cpplint_rosidl_typesupport_introspection_c (Failed)
         17 - cpplint_rosidl_typesupport_c (Failed)
         20 - cpplint_rosidl_typesupport_introspection_cpp (Failed)
         23 - cpplint_rosidl_typesupport_cpp (Failed)
         26 - cpplint_rosidl_generated_py (Failed)

To test other packages, I tried it for already existing messages like autoware_planning_msgs or autoware_sensing_msgs and got the same test errors.

Then created a test PR on autoware_msgs to debug, they were successful.

In following PR, I tested with exactly same package, it passed the test.

https://github.com/autowarefoundation/autoware_msgs/actions/runs/3931108667/jobs/6721941355#step:7:870 is successful.

Steps to reproduce

  1. Update your system?
  2. colcon build --symlink-install --cmake-args -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_EXPORT_COMPILE_COMMANDS=1 --packages-select autoware_sensing_msgs
  3. colcon test --event-handlers console_cohesion+ --packages-select autoware_sensing_msgs --ctest-args -L ".*" --executor sequential --return-code-on-test-failure

It should fail the test.

Versions

  • OS: Ubuntu 22.04
  • ROS2: humble
  • Autoware: Core/Universe

Possible causes

Maybe some update was made in humble message generation or ament_cpplint.

Additional context

No response

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.