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

cppcheck test times out on OSX #1633

Closed
sloretz opened this issue Apr 15, 2021 · 2 comments · Fixed by #1634
Closed

cppcheck test times out on OSX #1633

sloretz opened this issue Apr 15, 2021 · 2 comments · Fixed by #1634
Labels
bug Something isn't working

Comments

@sloretz
Copy link
Contributor

sloretz commented Apr 15, 2021

Bug report

Required Info:

  • Operating System:
    • OSX
  • Installation type:
    • source
  • Version or commit hash:
  • DDS implementation:
    • N/A
  • Client library (if applicable):
    • rclcpp

Steps to reproduce issue

Run this job https://ci.ros2.org/job/nightly_osx_release/2029/

Expected behavior

Actual behavior

    Start 2: cppcheck

2: Test command: /Users/osrf/jenkins-agent/workspace/nightly_osx_release/venv/bin/python3 "-u" "/Users/osrf/jenkins-agent/workspace/nightly_osx_release/ws/install/ament_cmake_test/share/ament_cmake_test/cmake/run_test.py" "/Users/osrf/jenkins-agent/workspace/nightly_osx_release/ws/build/rclcpp/test_results/rclcpp/cppcheck.xunit.xml" "--package-name" "rclcpp" "--output-file" "/Users/osrf/jenkins-agent/workspace/nightly_osx_release/ws/build/rclcpp/ament_cppcheck/cppcheck.txt" "--command" "/Users/osrf/jenkins-agent/workspace/nightly_osx_release/ws/install/ament_cppcheck/bin/ament_cppcheck" "--xunit-file" "/Users/osrf/jenkins-agent/workspace/nightly_osx_release/ws/build/rclcpp/test_results/rclcpp/cppcheck.xunit.xml" "--include_dirs" "/Users/osrf/jenkins-agent/workspace/nightly_osx_release/ws/src/ros2/rclcpp/rclcpp/include"
2: Test timeout computed to be: 300
2: -- run_test.py: invoking following command in '/Users/osrf/jenkins-agent/workspace/nightly_osx_release/ws/src/ros2/rclcpp/rclcpp':
2:  - /Users/osrf/jenkins-agent/workspace/nightly_osx_release/ws/install/ament_cppcheck/bin/ament_cppcheck --xunit-file /Users/osrf/jenkins-agent/workspace/nightly_osx_release/ws/build/rclcpp/test_results/rclcpp/cppcheck.xunit.xml --include_dirs /Users/osrf/jenkins-agent/workspace/nightly_osx_release/ws/src/ros2/rclcpp/rclcpp/include
1/1 Test #2: cppcheck .........................***Timeout 300.13 sec

Additional information

It was pretty close to failing the previous job

1/1 Test #2: cppcheck .........................   Passed  295.42 sec

Maybe the test timeout needs to be extended?

@sloretz sloretz added the bug Something isn't working label Apr 15, 2021
@wjwwood
Copy link
Member

wjwwood commented Apr 15, 2021

Maybe the test timeout needs to be extended?

I think so. This isn't the first time we've had to raise it. cppcheck is just slow.

@ivanpauno
Copy link
Member

We could make it faster though, the main reason it's so slow is that we're not passing preprocessor definitions (see ament/ament_lint#270).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants