Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 35.2k
gh-112301: Compiler warning management tooling#121730
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
Uh oh!
There was an error while loading. Please reload this page.
Changes from all commits
51487273bd5a106813003ab4d754615d228fc0a60b7793d8099715d2bc44ec2e2ca75fbd1634eb07b1d6e1954a55935143c19d953b9b95000c0fc31e568d6c9f6281eFile filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| Add tooling to check for changes in compiler warnings. | ||
hugovk marked this conversation as resolved.
Uh oh!There was an error while loading. Please reload this page. | ||
| Patch by Nate Ohlson. | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| # Files listed will be ignored by the compiler warning checker | ||
| # for the Ubuntu/build and test job. | ||
| # Keep lines sorted lexicographically to help avoid merge conflicts. |
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,195 @@ | ||||||||
| #!/usr/bin/env python3 | ||||||||
Member There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do we need this one? Member There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I meant to comment this too: no, I don't think we do because the file does not have the executable bit and we're running it via | ||||||||
| """ | ||||||||
| Parses compiler output with -fdiagnostics-format=json and checks that warnings | ||||||||
| exist only in files that are expected to have warnings. | ||||||||
| """ | ||||||||
| import argparse | ||||||||
| import json | ||||||||
| import re | ||||||||
| import sys | ||||||||
| from pathlib import Path | ||||||||
| def extract_warnings_from_compiler_output(compiler_output: str) -> list[dict]: | ||||||||
| ||||||||
| defextract_warnings_from_compiler_output(compiler_output: str) ->list[dict]: | |
| defextract_warnings_from_compiler_output(compiler_output: str) ->list[dict]: |
Also, please don't force push in this repo, it makes it easier to review new commits, and we squash merge everything at the end anyway. I think force-pushing is sometimes to blame for pinging lots of unrelated CODEOWNERS too.
In order to keep the commit history intact, please avoid squashing or amending history and then force-pushing to the PR. Reviewers often want to look at individual commits.
https://devguide.python.org/getting-started/pull-request-lifecycle/#quick-guide
Thanks!
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.
Updated to adhere to PEP8.
After a rebase there were several commits that came from branches from different forks. Not really sure how that happened but I had to revert to my last commit and force push to get rid of them.
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.
Thank you! I just pushed a commit to also wrap comments and strings to 79 chars as well.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.