Skip to content

Drop cppcheck test exclusion on RHEL#758

Merged
cottsay merged 1 commit intomasterfrom
cottsay/drop-rhel-cppcheck-exclusion
Mar 4, 2024
Merged

Drop cppcheck test exclusion on RHEL#758
cottsay merged 1 commit intomasterfrom
cottsay/drop-rhel-cppcheck-exclusion

Conversation

@cottsay
Copy link
Member

@cottsay cottsay commented Mar 4, 2024

Previously, the version of cppcheck distributed in RHEL resulted in many (unactionable) linter failures only present on RHEL. Given the limited utility of running the linters on RHEL to begin with, we decided to simply skip the tests.

Changes either to ament_cppcheck or the version of cppcheck distributed in RHEL now appear to allow these tests to run successfully, and the cost of maintaining this special case now outweigh the benefit.

Reverts part of #567

Rolling: Build Status
Iron: Build Status
Humble: Build Status

Previously, the version of cppcheck distributed in RHEL resulted in many
(unactionable) linter failures only present on RHEL. Given the limited
utility of running the linters on RHEL to begin with, we decided to
simply skip the tests.

Changes either to ament_cppcheck or the version of cppcheck distributed
in RHEL now appear to allow these tests to run successfully, and the
cost of maintaining this special case now outweigh the benefit.

Reverts part of c0973c6.
@clalancette
Copy link
Contributor

Changes either to ament_cppcheck

It was most likely ament/ament_lint#345 ; cppcheck versions > 2.0 are ridiculously slow, so I ended up disabling them when we switched to Ubuntu 22.04. It looks like Almalinux 8 has cppcheck 2.4 and Almalinux 9 has cppcheck 2.9, so both of them are essentially "skipped" anyway.

Anyway, since we are skipping this in code now, I'm happy to remove this bit from the CI scripts.

@cottsay
Copy link
Member Author

cottsay commented Mar 4, 2024

So are we only running cppcheck tests on Humble then? Or I'd suppose Windows runs them?

@clalancette
Copy link
Contributor

So are we only running cppcheck tests on Humble then?

No, even on Humble it is disabled. I think we are only running them on Windows. In all honesty, we can probably drop ament_cppcheck from the default set of linters, but that is a slightly different discussion.

@cottsay cottsay merged commit 2d2bb18 into master Mar 4, 2024
@delete-merged-branch delete-merged-branch bot deleted the cottsay/drop-rhel-cppcheck-exclusion branch March 4, 2024 21:00
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.

2 participants