Skip to content

scripts: ci: guideline_check: mitigate excessive false positives #77104

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

Merged

Conversation

cfriedt
Copy link
Member

@cfriedt cfriedt commented Aug 14, 2024

Add a list of exclusion regexes for coccinelle.

Fixes #77103

@cfriedt cfriedt force-pushed the skip-coccicheck-for-libc-and-posix branch 2 times, most recently from b4dfbdb to 4171425 Compare August 14, 2024 22:26
In order to reduce excessive false positives for Coding
Guidelines checks in CI, maintain a list of paths that are
marked "safe" for reserved names to be implemented or declared.

Signed-off-by: Chris Friedt <[email protected]>
@cfriedt cfriedt force-pushed the skip-coccicheck-for-libc-and-posix branch from 4171425 to 9a4bec3 Compare August 14, 2024 22:27
@ycsin
Copy link
Member

ycsin commented Aug 15, 2024

cant tell why the CI failed, triggered them to rerun

@cfriedt
Copy link
Member Author

cfriedt commented Aug 15, 2024

cant tell why the CI failed, triggered them to rerun

GH was down for a fair while yesterday.

@cfriedt
Copy link
Member Author

cfriedt commented Aug 15, 2024

For traceability, this fix is working now on the following PRs:

#74180
#76327
#76352

However, I am still running through wide-scale testing (--all platforms with twister) on 76352.

@kartben
Copy link
Collaborator

kartben commented Aug 15, 2024

@cfriedt mildly related: should errno be added to scripts/coccinelle/symbols.txt? See #76800.

@cfriedt
Copy link
Member Author

cfriedt commented Aug 15, 2024

@cfriedt mildly related: should errno be added to scripts/coccinelle/symbols.txt? See #76800.

Ah yes - that would make sense (maybe in a separate PR?)

@cfriedt
Copy link
Member Author

cfriedt commented Aug 19, 2024

I'm going to go ahead and merge this to unblock other PRs, since it's green and looks like it has all of the required approvals. Normally, I try to avoid merging my own PRs though.

@cfriedt cfriedt merged commit 1c28ded into zephyrproject-rtos:main Aug 19, 2024
27 checks passed
@cfriedt cfriedt deleted the skip-coccicheck-for-libc-and-posix branch August 19, 2024 13:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ci: coccinelle: false positives hindering development flow
8 participants