-
Notifications
You must be signed in to change notification settings - Fork 257
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
fix RHEL CI warning for rosbag2_storage_mcap. #1883
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@MichaelOrlov can you take a look?
9d1e034
to
ee2da8d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i am in the middle of RHEL CI https://ci.ros2.org/job/ci_linux-rhel/1801/testReport/rosbag2_storage_mcap/ and https://github.com/ros2/rosbag2/actions/runs/12334336949/job/34424404138?pr=1883... 😓 any thoughts?
@fujitatomoya I am bit confused. Do you see this error on Rolling or Humble? And only on RHEL or other distros too?
|
@fujitatomoya I have a suspicious that |
See in the log https://ci.ros2.org/job/ci_linux-rhel/1801/consoleText
As far as I understand the clang format trying to refer to the the default Need to compare how the same clang format check running on Rolling CI or how it was running before it starts failig. |
Humble only.
Yeah, RHEL only.
So this is really weird... why does it not use |
This is a bug in the GitHub workflow on Humble: https://github.com/ros2/rosbag2/blob/humble/.github/workflows/lint.yml#L21 . I'll submit a PR to fix it. |
@clalancette thanks! i was taking a look at the same line! happy to review PR! |
See #1884, which should fix this. |
ad13f87
to
6e81385
Compare
Test CI with |
Pulls: #1883 |
6e81385
to
4fa321e
Compare
rosbag2_storage_mcap/test/rosbag2_storage_mcap/test_message_definition_cache.cpp
Outdated
Show resolved
Hide resolved
Signed-off-by: Tomoya Fujita <[email protected]>
4fa321e
to
b66eb2d
Compare
the other thing is that github workflow uses released package, and CI builds the package for after all, github workflow seems to be fine to me by local verification. something could be wrong with RHEL CI but the following CI commands are the same between rolling and humble. Test command: /usr/bin/python3 "-u" "/home/jenkins-agent/workspace/ci_linux-rhel/ws/install/ament_cmake_test/share/ament_cmake_test/cmake/run_test.py" "/home/jenkins-agent/workspace/ci_linux-rhel/ws/build/rosbag2_storage_mcap/test_results/rosbag2_storage_mcap/clang_format.xunit.xml" "--package-name" "rosbag2_storage_mcap" "--output-file" "/home/jenkins-agent/workspace/ci_linux-rhel/ws/build/rosbag2_storage_mcap/ament_clang_format/clang_format.txt" "--command" "/home/jenkins-agent/workspace/ci_linux-rhel/ws/install/ament_clang_format/bin/ament_clang_format" "--xunit-file" "/home/jenkins-agent/workspace/ci_linux-rhel/ws/build/rosbag2_storage_mcap/test_results/rosbag2_storage_mcap/clang_format.xunit.xml" "--config" ".clang-format" i cannot think of anything else... any thoughts? |
My best guess of what is happening here is that the different versions of clang on Ubuntu 22.04 (1.14.0) and RHEL-8 (18.1.8) have different formatting. We deal with this a lot when updating e.g. uncrustify. The good news is that there is a solution which I believe will satisfy both. I'm going to push a commit to this branch in a minute here to see if that is the case. |
Signed-off-by: Chris Lalancette <[email protected]>
All right, the only failure here was on the Hpr job, but that didn't have to do with formatting. So I'll say that this is fixed. I'm going to run CI on it. @MichaelOrlov since I did some work here, I'd like your review on this. |
@clalancette thanks for checking this! hopefully CI goes green 🤞🤞🤞 |
@MichaelOrlov all green! @clalancette thanks again 🚀 this took my time longer than expected.... small things take time 😅 |
see RHEL failure https://ci.ros2.org/job/ci_linux-rhel/1801/testReport/rosbag2_storage_mcap/