Skip to content
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

Revert "gh-112301: Enable warning emitting options and ignore warnings in CI (#123020)" #124065

Merged
merged 1 commit into from
Sep 13, 2024

Conversation

hugovk
Copy link
Member

@hugovk hugovk commented Sep 13, 2024

This reverts commit cfe6074 from #123020.

Fixes #124064.

There are too many warnings showing up when building locally.

We'll need to think of something else for #123020, perhaps only enable these when on the CI (for example, there's a CI=true environment variable).

@sethmlarson
Copy link
Contributor

sethmlarson commented Sep 13, 2024

@hugovk FYI, --disable-safety configure option would disable the warnings locally, but maybe we should flip from opt-out to opt-in for these new warnings until we get to a place with fewer in the codebase?

See:

if test "$disable_safety" = "no"

@sethmlarson
Copy link
Contributor

Concretely I'm wondering if we could instead of reverting the whole PR switch the option instead or something else to maintain the CI testing?

@sobolevn
Copy link
Member

Or maybe we can maintain the list of files that currently have these warnings and exclude them. It will allow us to fix these warnings in files one by one.

@sethmlarson
Copy link
Contributor

sethmlarson commented Sep 13, 2024

@sobolevn We have that already, but for determining whether to fail CI. The warnings still occur locally, but as you've seen there is quite a few of them. I'm not sure how possible filtering them from output would be @nohlson?

@sethmlarson
Copy link
Contributor

@hugovk I think it's also okay to revert the whole PR and then squash everything and re-add w/ the proper opt-in configure option instead of opt-out. Don't want to be too disruptive to core devs if you think any of the above suggestions might take too long.

@nohlson
Copy link
Contributor

nohlson commented Sep 13, 2024

@hugovk @sethmlarson This is a PR that makes the "safety" options opt-in to allow the CI warning checking to remain: #124070 . @hugovk Maybe this could be a suitable alternative to reverting #123020

Copy link
Contributor

@colesbury colesbury left a comment

Choose a reason for hiding this comment

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

I think reverting first is the right approach. Currently the "Ubuntu / build and test" CI is failing on "Check compiler warnings" on new PRs.

See:

Copy link
Member

@sobolevn sobolevn left a comment

Choose a reason for hiding this comment

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

I also agree on reverting, because the very same PR that is alternative to this one (#124070) has lots of warnings.
Снимок экрана 2024-09-13 в 22 41 30

@hugovk
Copy link
Member Author

hugovk commented Sep 13, 2024

Thanks @nohlson for the quick response!

@colesbury Hmm, then let's revert.

We can then update #124070 to "un-revert" and also fix the CI failure (or create a fresh PR, whichever is easier).

@hugovk hugovk merged commit ea77973 into python:main Sep 13, 2024
38 checks passed
@hugovk hugovk deleted the revert-GH-123020 branch September 13, 2024 19:47
@hugovk
Copy link
Member Author

hugovk commented Sep 13, 2024

See:

Correcting myself: that sort of thing is expected, those PRs introduced new warnings. The devguide link in the CI failure tells what to do: ideally fix your new warning, or add it to the ignore list if that's not possible.

@hugovk
Copy link
Member Author

hugovk commented Sep 13, 2024

Correcting myself again! Those look like the failure in #124070, and needs fixing. This sort of thing is expected. Now I'll close my laptop for the evening :)

@nohlson
Copy link
Contributor

nohlson commented Sep 13, 2024

I think reverting first is the right approach. Currently the "Ubuntu / build and test" CI is failing on "Check compiler warnings" on new PRs.

See:

In #124069 the tool is failing to parse the compiler output because it looks mangled

../cpython-ro-srcdir/Modules/_hacl/Hacl_Hash_Blake2s_Simd128.c:108:67: warning: conversion to ‘int’ from ‘uint32_t’ {aka ‘unsigned int’} may change theIn file included from ../cpython-ro-srcdir/Modules/_hacl/include/krml/FStar_UInt128_Verified.h:10,

And that is the same for #124070

../cpython-ro-srcdir/Modules/expat/xmlparse.c:3101:46: warning: conversion to ‘size_t’ {aka ‘long unsigned int’} from ‘int’ may change the sign of the result [-Wsign-Modules/_hacl/Hacl_Hash_Blake2s_Simd128.c:80:3: note: in expansion of macro ‘KRML_MAYBE_FOR10’

This might be the cmake jobs racing to write to the log so it might just need cmake option --output-sync

I also agree on reverting, because the very same PR that is alternative to this one (#124070) has lots of warnings. Снимок экрана 2024-09-13 в 22 41 30

The warnings will still be generated in CI for the Ubuntu build and test and macOS build and test jobs.

@hugovk
Copy link
Member Author

hugovk commented Sep 16, 2024

Here's take two: #124070

Sign up for free to 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.

Lots of new compiler warnings
5 participants