-
Notifications
You must be signed in to change notification settings - Fork 781
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
MISRSA results different in CI and workstation #1847
Comments
With #1859 , the errors in my local system have now become consistent with the CI.
|
danmar/cppcheck#5925 seems to be the PR that generates the misra 5.8 errors in my local system. |
Confirmed the results seem to match on my workstation now
However, if I run it again, I don't get back all the failures, particularly the 5.8 ones. Perhaps the cache is the reason?
|
Can confirm it is the cache. Deleting and running a fresh cppcheck returns back the misra errors. |
Alright, so the update seems to partially solve this. Let's just get the violations fixed in the update PR and get that merged, then we can tackle the rest of this separately. Bounty is locked to you |
inconsistent results from multiple cppcheck analysis seems to be an issue from cppchecker's side. This issue seems to be caused by the caching done by We can probably creating a work around by deleting the cache everytime we run into an error while running cppchecker. Though we would probably lose some of the speed up that come with caching. |
If that's true, let's just drop the caching entirely. Any speedup is not worth an inconsistent test. The other part of this is the not failing CI even though it reports errors; is this a separate cppcheck bug? |
Seems like it. |
Nice find. Can we fix this for now by just adding a second pass? Or maybe it's just easier too fix this in upstream cppecheck? |
If the time difference between both of these options isn't too substantial, I would prefer we just run the misra addon over the dump, as we are already cherrypicking my previous commit. |
Nice job @0x41head. There's a bunch of good open openpilot bounties up for grabs if you want - https://github.com/orgs/commaai/projects/26 |
Running
test_misra.sh
on my workstation, I get no errors, but CI reports a few style violations and doesn't fail. We need to figure out why the results are different and why CI doesn't fail even though errors are reported. Also need to fix these violations.https://github.com/commaai/panda/actions/runs/7770060952/job/21189783553
The text was updated successfully, but these errors were encountered: