GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Revert "gh-112301: Enable warning emitting options and ignore warnings in CI (#123020)" by hugovk · Pull Request #124065 · python/cpython

Conversation

@hugovk

@hugovk hugovk commented Sep 13, 2024 •
edited by bedevere-app Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

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).

  • Issue: Consider applying flags for warnings about potential security issues #112301

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@hugovk
Revert "pythongh-112301: Enable warning emitting options and ignore w…
e0e278e
…arnings in CI (python#123020)"

This reverts commit cfe6074.
@hugovk
hugovk requested review from corona10, erlend-aasland and ezio-melotti as code owners September 13, 2024 17:55
@bedevere-app bedevere-app Bot added the awaiting core review label Sep 13, 2024
@bedevere-app bedevere-app Bot mentioned this pull request Sep 13, 2024
Consider applying flags for warnings about potential security issues #112301
Closed
@sethmlarson

sethmlarson commented Sep 13, 2024 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

@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:

cpython/configure.ac

Line 2509 in 9f42b62

if test "$disable_safety" = "no"

sobolevn reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@sethmlarson

sethmlarson commented Sep 13, 2024

Copy link
Copy Markdown
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?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@sobolevn

sobolevn commented Sep 13, 2024

Copy link
Copy Markdown
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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@sethmlarson

sethmlarson commented Sep 13, 2024 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

@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?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@sethmlarson

sethmlarson commented Sep 13, 2024

Copy link
Copy Markdown
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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@nohlson

nohlson commented Sep 13, 2024

Copy link
Copy Markdown
Contributor

@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

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

colesbury
colesbury approved these changes Sep 13, 2024
View reviewed changes

@colesbury colesbury left a comment •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

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.

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:

  • https://github.com/python/cpython/actions/runs/10854542283/job/30125214880?pr=124069
  • https://github.com/python/cpython/actions/runs/10854746319/job/30125872824?pr=124070

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@bedevere-app bedevere-app Bot added awaiting merge and removed awaiting core review labels Sep 13, 2024
sobolevn
sobolevn approved these changes Sep 13, 2024
View reviewed changes

@sobolevn sobolevn left a comment

Copy link
Copy Markdown
Member

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.

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

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@hugovk

hugovk commented Sep 13, 2024

Copy link
Copy Markdown
Member Author

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).

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@hugovk
hugovk merged commit ea77973 into python:main Sep 13, 2024
@hugovk
hugovk deleted the revert-GH-123020 branch September 13, 2024 19:47
@bedevere-app bedevere-app Bot removed the awaiting merge label Sep 13, 2024
@hugovk

hugovk commented Sep 13, 2024

Copy link
Copy Markdown
Member Author

See:

  • python/cpython/actions/runs/10854542283/job/30125214880?pr=124069
  • python/cpython/actions/runs/10854746319/job/30125872824?pr=124070

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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@hugovk

hugovk commented Sep 13, 2024

Copy link
Copy Markdown
Member Author

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 :)

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@nohlson

nohlson commented Sep 13, 2024

Copy link
Copy Markdown
Contributor

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:

  • https://github.com/python/cpython/actions/runs/10854542283/job/30125214880?pr=124069
  • https://github.com/python/cpython/actions/runs/10854746319/job/30125872824?pr=124070

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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@hugovk

hugovk commented Sep 16, 2024

Copy link
Copy Markdown
Member Author

Here's take two: #124070

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@colesbury colesbury colesbury approved these changes
@sobolevn sobolevn sobolevn approved these changes
@erlend-aasland erlend-aasland Awaiting requested review from erlend-aasland erlend-aasland is a code owner
@corona10 corona10 Awaiting requested review from corona10 corona10 is a code owner
@ezio-melotti ezio-melotti Awaiting requested review from ezio-melotti ezio-melotti is a code owner

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Lots of new compiler warnings

Uh oh!

There was an error while loading. Please reload this page.

5 participants

@hugovk @sethmlarson @sobolevn @nohlson @colesbury
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.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.