Skip to content

gh-112301: Add Warning Count to Warning Check Tooling - #122711

Merged
hugovk merged 50 commits into
python:mainfrom
nohlson:add-warning-count-to-warning-ignore-files
Aug 14, 2024
Merged

gh-112301: Add Warning Count to Warning Check Tooling#122711
hugovk merged 50 commits into
python:mainfrom
nohlson:add-warning-count-to-warning-ignore-files

Conversation

@nohlson

@nohlsonnohlson commented Aug 6, 2024

Copy link
Copy Markdown
Contributor

This adds the feature of specifying how many warnings should be ignored in a particular file for the check compiler warning tooling. This makes adding a particular file to the warning ignore files a bit more tolerable because it means that changes that introduce more warnings to a file will be caught. If a warning is fixed by a change but a new warning is introduced this will not be caught, however. That would require maintaining a list of specific warnings to ignore, which would be a bit overkill.

This change also removes duplicate warnings from being processed by the tooling, so that the accurate number of warnings per file can be specified when ignoring warnings in the .warningignore_* file.

Comment threadTools/build/check_warnings.py Outdated
Comment threadTools/build/check_warnings.py Outdated
Comment threadTools/build/check_warnings.py Outdated
@nohlson

Copy link
Copy Markdown
ContributorAuthor

I have made the requested changes; please review again

@bedevere-app

Copy link
Copy Markdown

Thanks for making the requested changes!

: please review the changes made to this pull request.

@sethmlarsonsethmlarson left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Handful of review comments for you, otherwise looking good! :)

Comment threadTools/build/check_warnings.py Outdated
Comment threadTools/build/check_warnings.py Outdated
Comment threadTools/build/check_warnings.py

@sethmlarsonsethmlarson left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks Nate! Really excited to see this land 🚀

@hugovkhugovk left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment threadTools/build/check_warnings.py Outdated
Comment threadTools/build/check_warnings.py Outdated
nohlsonand others added 2 commits August 14, 2024 10:54
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>

@hugovkhugovk left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! 🚀

@hugovk
hugovk merged commit 1cf624b into python:mainAug 14, 2024
blhsing pushed a commit to blhsing/cpython that referenced this pull request Aug 22, 2024
…22711)
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Sign up for freeto 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.

3 participants

@nohlson@hugovk@sethmlarson