Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 34k
gh-112301: Enable warning emitting options and ignore warnings in CI#123020
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
hugovk merged 125 commits into python:main from nohlson:add-warning-options-and-include-in-check-warningsSep 13, 2024
Uh oh!
There was an error while loading. Please reload this page.
Merged
Changes from all commits
Commits
Show all changes
125 commits Select commit Hold shift + click to select a range
5148727 Create simple warning check tool and add to ubuntu build and test job
nohlson 3bd5a10 Add flags to check warnings script to fail on regression or improvement
nohlson 6813003 Remove redundant comment
nohlson ab4d754 Rename warnigore file to warningignore
nohlson 615d228 Use regex to extract json arrays
nohlson fc0a60b Trim whitespace
nohlson 7793d80 Test on github unexpected improvement
nohlson 99715d2 Add config for improve fail check
nohlson bc44ec2 Revert to prod check warning state
nohlson e2ca75f 📜🤖 Added by blurb_it.
blurb-it[bot] bd1634e Refactor creating set of files with warnings to a dedicated function
nohlson b07b1d6 Move cflags configure option to top level build configuration
nohlson e1954a5 Add json diagnostics to ubuntu configuration as first argument
nohlson 5935143 Add newline to news
nohlson 7f1a238 Create simple warning check tool and add to ubuntu build and test job
nohlson 144136e Add macos warning checks to GitHub actions
nohlson 3dd40fd Revert reusable-macos.yml for environment variables
nohlson 1158f53 Update paths
nohlson cb51b4f Test unexpected improvement
nohlson 77e0f6e Remove warning ignore
nohlson 3e1d75f Add json output option to macos configure job
nohlson b5cd58a Add common dictionary format when parsing warnings
nohlson 02f313e Remove configure option for macos job
nohlson 83d1ed7 Print out json version of compiler output
nohlson 08a6f6d Remove old version of warning ignore file
nohlson 7be8ee6 Remove compiler output print diagnostic
nohlson 8b0a2ee 📜🤖 Added by blurb_it.
blurb-it[bot] 49cbd87 Remove superfluous comment
nohlson 522f27c oMerge branch 'main' into add-macos-warnings-tracking-tooling
nohlson b654a84 Add period to news
nohlson 7780da6 Merge branch 'main' into add-macos-warnings-tracking-tooling
nohlson 3688c5c Make warning ignore file optional
nohlson cb1f276 Add write compiler output to log and file
nohlson fb91e3e Fix formatting and update regex
nohlson f35ba60 Fix comment formatting
nohlson 294dd61 Add warning count to check warnigns tooling
nohlson 4056985 Remove duplicate warnings from check warning tooling
nohlson dad672b Merge branch 'main' into add-warning-count-to-warning-ignore-files
nohlson 4164b81 Trim trailing whitespace
nohlson 8b07ae8 📜🤖 Added by blurb_it.
blurb-it[bot] 17858b9 Reformat news
nohlson f483e04 Merge branch 'main' into add-warning-count-to-warning-ignore-files
nohlson 55e20bd Update helpers for function argument types
nohlson 566e8cd Format line length
nohlson b00cc51 Add new warnings
nohlson f8ae75e Use named tuple for warning filename and count
nohlson f68eb71 Add more warnings
nohlson 39223dc Merge branch 'add-warning-count-to-warning-ignore-files' into add-war…
nohlson cbf069b Use proper type
nohlson a04cad8 Merge branch 'add-warning-count-to-warning-ignore-files' into add-war…
nohlson e8ef3e3 Add path prefix argument to check warnings script
nohlson ba6486f Add path prefix to check warning script call
nohlson 034552f Fix spelling
nohlson 9b724b3 Add condition to check MSI files only on PR
nohlson ab8f099 Add warnings to ubuntu ignore list
nohlson 6296a46 Remove warning ignore files
nohlson 19df803 Add files to ignore warnings
nohlson 4081a96 Add files to ignore
nohlson 26b40d3 Update function signatures and make files with expected warnings list…
nohlson 78b90be Remove warnigns to ignore
nohlson c5a983b Add warnings to ignore
nohlson e8b57dc Remove debug traces
nohlson 3051648 Add debug outputs
nohlson d351928 Remove warning ignore files
nohlson ef9ac02 Merge branch 'add-warning-count-to-warning-ignore-files' into add-war…
nohlson 69f37ea Make warning check only run on non-free-threading jobs
nohlson 74164c5 Add option parsing for clang
nohlson fd4620d Revert reusable change detection
nohlson 207a664 Remove debug prints
nohlson a0f8fd5 Merge branch 'main' into add-warning-options-and-include-in-check-war…
nohlson f11ec0d Fail macos on regression and improvement
nohlson ae74ee4 Re-add fix for running workflow manually
nohlson 50f43bc Add back in warning by file processing
nohlson 008a2f9 Build cpython single process
nohlson caf6b1a Add ignore files for macos
nohlson 8eb8a51 Use path prefix for clang parsing
nohlson dc6ba2f Add debug prints
nohlson e31f6d1 Specify unique compiler output files for different jobs
nohlson ef982eb Only run check warnings when necessary
nohlson 13ac922 Move check warning decision to reusable macos
nohlson da7bbde Revert to old regex
nohlson 7c7c78c Tweak warning ignore for ubuntu and revert regex
nohlson 46ee5d5 Add pegen warning ignore
nohlson c4371af Remove debug printing
nohlson ff9eb6a Sort warning ignore file lexicographically
nohlson b747bb0 Format line length for check warnings script
nohlson d0ea15e Merge branch 'main' into add-warning-options-and-include-in-check-war…
nohlson 423300a Clarify argument help for path prefix
nohlson efe6167 Remove format 2
nohlson 2a04a08 Add file overview for unexpected warnings and unexpected improvements
nohlson c5a156a Remove warning ignores associated with format 2 option
nohlson 2c54b6a Move arguments to newline
nohlson cfe2097 📜🤖 Added by blurb_it.
blurb-it[bot] 460131c Merge branch 'main' into add-warning-options-and-include-in-check-war…
nohlson e9a2d71 Update .github/workflows/reusable-macos.yml
nohlson a88ebbb Update Tools/build/check_warnings.py
nohlson d8b43a6 Update Tools/build/check_warnings.py
nohlson 97c0103 Update Tools/build/check_warnings.py
nohlson dd532ed Revert to 8 thread build for macos job
nohlson 20b2e12 Up macos build thread count to 8
nohlson 363e254 Run macos14 for non-forks
nohlson be4b6ba Use gmake
nohlson 111010f Add make to homebrew dependency install
nohlson 87368fb Use output sync option when building for warning check
nohlson e491f04 Switch macos warning check to non-threaded macos-13
nohlson edd0897 Update reusable-macos.yml
nohlson 8abbd9b Use remove prefix instead of lstrip
nohlson f4a5d98 Revert build order
nohlson 25ffe61 Reorder steps in ubuntu job and add warnings to ignore
nohlson aaa9007 Merge branch 'main' into add-warning-options-and-include-in-check-war…
nohlson 410ea1d Add link to devguide for help with check warning tool
nohlson 2e666c2 Remove conversion warning
nohlson e5d0bee Update macos warning ignore
nohlson b2cfe15 Reintroduce -Wconversion
nohlson 3e331ea Merge branch 'main' into add-warning-options-and-include-in-check-war…
nohlson 98851b6 Change gcc compiler output parsing to not use json
nohlson 51c39df Update ubuntu workflow to not output json
nohlson 3e3b81c Update ubuntu warning ignore list for regular GCC compiler output
nohlson db5d6bb Remove leading space from macos warning ignore file
nohlson b82355f Merge branch 'main' into add-warning-options-and-include-in-check-war…
nohlson bf90af1 Update warning ignore files for new warnings from main
nohlson 9701292 Remove zero count files from warning ignore
nohlson 0cd2731 Remove redundant line in warningignore
nohlson 71b0617 Merge branch 'main' into add-warning-options-and-include-in-check-war…
hugovk 51782d5 Update warning ignore files for new warnings from main
hugovk File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -35,7 +35,7 @@ jobs: | ||
| path: config.cache | ||
| key: ${{github.job }}-${{inputs.os }}-${{env.IMAGE_VERSION }}-${{inputs.config_hash }} | ||
| - name: Install Homebrew dependencies | ||
| run: brew install pkg-config [email protected] xz gdbm tcl-tk | ||
| run: brew install pkg-config [email protected] xz gdbm tcl-tk make | ||
| - name: Configure CPython | ||
| run: | | ||
| GDBM_CFLAGS="-I$(brew --prefix gdbm)/include" \ | ||
| @@ -48,10 +48,22 @@ jobs: | ||
| --prefix=/opt/python-dev \ | ||
| --with-openssl="$(brew --prefix [email protected])" | ||
| - name: Build CPython | ||
| run: set -o pipefail; make -j8 2>&1 | tee compiler_output.txt | ||
| if : ${{inputs.free-threading || inputs.os != 'macos-13'}} | ||
| run: gmake -j8 | ||
| - name: Build CPython for compiler warning check | ||
| if : ${{!inputs.free-threading && inputs.os == 'macos-13'}} | ||
| run: set -o pipefail; gmake -j8 --output-sync 2>&1 | tee compiler_output_macos.txt | ||
| - name: Display build info | ||
| run: make pythoninfo | ||
| - name: Check compiler warnings | ||
| run: python3 Tools/build/check_warnings.py --compiler-output-file-path=compiler_output.txt --warning-ignore-file-path=Tools/build/.warningignore_macos --compiler-output-type=clang | ||
| if : ${{!inputs.free-threading && inputs.os == 'macos-13'}} | ||
| run: >- | ||
| python3 Tools/build/check_warnings.py | ||
| --compiler-output-file-path=compiler_output_macos.txt | ||
| --warning-ignore-file-path=Tools/build/.warningignore_macos | ||
| --compiler-output-type=clang | ||
| --fail-on-regression | ||
| --fail-on-improvement | ||
| --path-prefix="./" | ||
| - name: Tests | ||
| run: make test | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions 1 Misc/NEWS.d/next/Security/2024-08-14-19-43-57.gh-issue-112301.IQUcOy.rst
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| Enable compiler options that warn of potential security vulnerabilities. | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Oops, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.