Skip to content

[workflow] Use gcc matcher to make warnings prominent #18567

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
merged 1 commit into from
Jun 6, 2020

Conversation

ammaraskar
Copy link
Member

@ammaraskar ammaraskar commented Feb 20, 2020

This makes warnings and errors from the compiler very prominent so this should help prevent warnings from sneaking into the code base and catch them in review.

You can see a demo of this in action here: https://github.com/ammaraskar/cpython/pull/16/files#diff-4d35cf8992b795c5e97e9c8b6167cb34

or in screenshot form:

example-pull-request

(This PR is sort of a mirror to #18532 but for the linux builds.)

@codecov
Copy link

codecov bot commented Feb 20, 2020

Codecov Report

Merging #18567 into master will decrease coverage by 0.08%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #18567      +/-   ##
==========================================
- Coverage   82.15%   82.06%   -0.09%     
==========================================
  Files        1958     1955       -3     
  Lines      589837   584012    -5825     
  Branches    44458    44458              
==========================================
- Hits       484560   479289    -5271     
+ Misses      95636    95101     -535     
+ Partials     9641     9622      -19     
Impacted Files Coverage Δ
Lib/distutils/tests/test_bdist_rpm.py 30.00% <0.00%> (-65.00%) ⬇️
Lib/distutils/command/bdist_rpm.py 7.63% <0.00%> (-56.88%) ⬇️
Modules/_decimal/libmpdec/umodarith.h 80.76% <0.00%> (-19.24%) ⬇️
Lib/test/test_urllib2net.py 76.92% <0.00%> (-13.85%) ⬇️
Lib/test/test_smtpnet.py 78.57% <0.00%> (-12.86%) ⬇️
Lib/ftplib.py 63.85% <0.00%> (-6.06%) ⬇️
Lib/test/test_ftplib.py 87.11% <0.00%> (-4.72%) ⬇️
Lib/dbm/__init__.py 66.66% <0.00%> (-4.45%) ⬇️
Tools/scripts/db2pickle.py 17.82% <0.00%> (-3.97%) ⬇️
Lib/test/test_socket.py 71.94% <0.00%> (-3.87%) ⬇️
... and 318 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f2ee21d...0098272. Read the comment docs.

@ammaraskar
Copy link
Member Author

(closing and re-opening to re-run CI)

@ammaraskar ammaraskar closed this Jun 4, 2020
@ammaraskar ammaraskar reopened this Jun 4, 2020
@ammaraskar
Copy link
Member Author

Ping @pablogsal @zware

Looks like there's no gcc warnings currently so this shouldn't pop up on any existing PRs but it would have caught the issue on #20590

@pablogsal pablogsal merged commit 5552850 into python:master Jun 6, 2020
@pablogsal
Copy link
Member

Thanks for working on this @ammaraskar :) 🎉

arun-mani-j pushed a commit to arun-mani-j/cpython that referenced this pull request Jul 21, 2020
zware pushed a commit that referenced this pull request Dec 28, 2020
This makes warnings and errors from the compiler very prominent so this should help prevent warnings from sneaking into the code base and catch them in review. See https://discuss.python.org/t/using-github-problem-matchers-to-catch-warnings-early/4254 for more details

You can see a demo of this in action here: https://github.com/ammaraskar/cpython/pull/15/files#diff-9ba2eeca0f254ece0a9df4d7cb68e870

GCC and Sphinx matchers have previously been added in GH-18567 and GH-20325, respectively.
adorilson pushed a commit to adorilson/cpython that referenced this pull request Mar 13, 2021
…H-18532)

This makes warnings and errors from the compiler very prominent so this should help prevent warnings from sneaking into the code base and catch them in review. See https://discuss.python.org/t/using-github-problem-matchers-to-catch-warnings-early/4254 for more details

You can see a demo of this in action here: https://github.com/ammaraskar/cpython/pull/15/files#diff-9ba2eeca0f254ece0a9df4d7cb68e870

GCC and Sphinx matchers have previously been added in pythonGH-18567 and pythonGH-20325, respectively.
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.

4 participants