Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

gh-128770: raise warnings as errors in test suite - except for test_socket which still logs warnings, and internal test warnings that are now logged#128973

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
hugovk merged 54 commits intopython:mainfromgraingert:warnings-as-error-2
Mar 27, 2025

Conversation

graingert
Copy link
Contributor

@graingertgraingert commentedJan 18, 2025
edited by bedevere-appbot
Loading

@graingert
Copy link
ContributorAuthor

@hugovk can I get a run on the buildbots for this PR?

@hugovk
Copy link
Member

Certainly!

Let's check if you can do it yourself: either apply one of thetest-with-buildbots ortest-with-refleak-buildbots labels, or add a comment like! buildbot optional-regex (but no space between exclamation mark and buildbot) to run a subset.

@graingertgraingert added the 🔨 test-with-buildbotsTest PR w/ buildbots; report in status section labelJan 18, 2025
@bedevere-bot
Copy link

🤖 New build scheduled with the buildbot fleet by@graingert for commitc06c3db 🤖

If you want to schedule another build, you need to add the🔨 test-with-buildbots label again.

@bedevere-botbedevere-bot removed the 🔨 test-with-buildbotsTest PR w/ buildbots; report in status section labelJan 18, 2025
@graingertgraingert added the 🔨 test-with-buildbotsTest PR w/ buildbots; report in status section labelJan 18, 2025
@bedevere-bot
Copy link

🤖 New build scheduled with the buildbot fleet by@graingert for commit7123093 🤖

If you want to schedule another build, you need to add the🔨 test-with-buildbots label again.

@bedevere-botbedevere-bot removed the 🔨 test-with-buildbotsTest PR w/ buildbots; report in status section labelJan 18, 2025
@graingert
Copy link
ContributorAuthor

@hugovk do you know where I can see the status?

@hugovk
Copy link
Member

You can click the "Details" links in the status checks:

imageimage

Some of those failing ones were already failing for previous builds, so aren't necessarily caused by this PR.

@graingert
Copy link
ContributorAuthor

You can click the "Details" links in the status checks:
imageimage

Some of those failing ones were already failing for previous builds, so aren't necessarily caused by this PR.

Ah those hadn't shown up yet

hugovk reacted with thumbs up emoji

@graingertgraingert marked this pull request as ready for reviewJanuary 18, 2025 22:48
@hugovk
Copy link
Member

The warnings have been fixed in other PRs inmain, and this PR is back to turning future warnings into errors. If there are no objections, I'll merge this later today.

@hugovkhugovk merged commit8a00c9a intopython:mainMar 27, 2025
46 checks passed
@miss-islington-app
Copy link

Thanks@graingert for the PR, and@hugovk for merging it 🌮🎉.. I'm working now to backport this PR to: 3.12, 3.13.
🐍🍒⛏🤖 I'm not a witch! I'm not a witch!

@miss-islington-app
Copy link

Sorry,@graingert and@hugovk, I could not cleanly backport this to3.13 due to a conflict.
Please backport usingcherry_picker on command line.

cherry_picker 8a00c9a4d2ce9d373b13f8f0a2265a65f4523293 3.13

@miss-islington-app
Copy link

Sorry,@graingert and@hugovk, I could not cleanly backport this to3.12 due to a conflict.
Please backport usingcherry_picker on command line.

cherry_picker 8a00c9a4d2ce9d373b13f8f0a2265a65f4523293 3.12

@bedevere-app
Copy link

GH-131802 is a backport of this pull request to the3.13 branch.

@bedevere-appbedevere-appbot removed the needs backport to 3.13bugs and security fixes labelMar 27, 2025
graingert added a commit to graingert/cpython that referenced this pull requestMar 27, 2025
…test_socket which still logs warnings, and internal test warnings that are now logged (python#128973)Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>(cherry picked from commit8a00c9a)
@bedevere-bot
Copy link

⚠️⚠️⚠️ Buildbot failure⚠️⚠️⚠️

Hi! The buildbotaarch64 Fedora Stable LTO 3.x (tier-2) has failed when building commit8a00c9a.

What do you need to do:

  1. Don't panic.
  2. Checkthe buildbot page in the devguide if you don't know what the buildbots are or how they work.
  3. Go to the page of the buildbot that failed (https://buildbot.python.org/#/builders/336/builds/6580) and take a look at the build logs.
  4. Check if the failure is related to this commit (8a00c9a) or if it is a false positive.
  5. If the failure is related to this commit, please, reflect that on the issue and make a new Pull Request with a fix.

You can take a look at the buildbot page here:

https://buildbot.python.org/#/builders/336/builds/6580

Summary of the results of the build (if available):

==

Click to see traceback logs
Traceback (most recent call last):  File"/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.lto/build/Lib/threading.py", line1054, in_bootstrap_innerself.run()~~~~~~~~^^  File"/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.lto/build/Lib/threading.py", line996, inrunself._target(*self._args,**self._kwargs)~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  File"/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.lto/build/Lib/test/test_interpreters/test_stress.py", line30, intask    interp= interpreters.create()  File"/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.lto/build/Lib/test/support/interpreters/__init__.py", line76, increateid= _interpreters.create(reqrefs=True)interpreters.InterpreterError:interpreter creation failedkTraceback (most recent call last):  File"/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.lto/build/Lib/threading.py", line1054, in_bootstrap_innerself.run()~~~~~~~~^^  File"/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.lto/build/Lib/threading.py", line996, inrunself._target(*self._args,**self._kwargs)~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  File"/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.lto/build/Lib/test/test_interpreters/test_stress.py", line47, inrun    interp= interpreters.create()  File"/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.lto/build/Lib/test/support/interpreters/__init__.py", line76, increateid= _interpreters.create(reqrefs=True)interpreters.InterpreterError:interpreter creation failedk

@graingert
Copy link
ContributorAuthor

the failure is related to this commit, however the code in this PR is working as intended. This has uncovered an issue in subinterpreters:

test_create_many_threaded (test.test_interpreters.test_stress.StressTests.test_create_many_threaded) ...Warning--Uncaughtthreadexception:InterpreterErrorExceptioninthreadThread-166 (task):RuntimeError:FailedtoimportencodingsmoduleDuringhandlingoftheaboveexception,anotherexceptionoccurred:interpreters.InterpreterError:sub-interpretercreationfailedDuringhandlingoftheaboveexception,anotherexceptionoccurred:Traceback (mostrecentcalllast):File"/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.lto/build/Lib/threading.py",line1054,in_bootstrap_innerself.run()~~~~~~~~^^File"/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.lto/build/Lib/threading.py",line996,inrunself._target(*self._args,**self._kwargs)~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^File"/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.lto/build/Lib/test/test_interpreters/test_stress.py",line30,intaskinterp=interpreters.create()File"/home/buildbot/buildarea/3.x.cstratak-fedora-stable-aarch64.lto/build/Lib/test/support/interpreters/__init__.py",line76,increateid=_interpreters.create(reqrefs=True)interpreters.InterpreterError:interpretercreationfailed

@ZeroIntensity
Copy link
Member

That's a known failure, don't worry about it.

@graingert
Copy link
ContributorAuthor

Ah you're right it's not a Warning that got raised as an Exception! I panicked like the message said not to

@bedevere-app
Copy link

GH-131824 is a backport of this pull request to the3.12 branch.

@bedevere-appbedevere-appbot removed the needs backport to 3.12only security fixes labelMar 28, 2025
diegorusso pushed a commit to diegorusso/cpython that referenced this pull requestApr 1, 2025
…test_socket which still logs warnings, and internal test warnings that are now logged (python#128973)Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
seehwan pushed a commit to seehwan/cpython that referenced this pull requestApr 16, 2025
…test_socket which still logs warnings, and internal test warnings that are now logged (python#128973)Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@encukouencukouencukou left review comments

@sobolevnsobolevnsobolevn left review comments

@hugovkhugovkhugovk approved these changes

@picnixzpicnixzpicnixz approved these changes

@ericsnowcurrentlyericsnowcurrentlyAwaiting requested review from ericsnowcurrentlyericsnowcurrently is a code owner

@gpsheadgpsheadAwaiting requested review from gpsheadgpshead is a code owner

@tirantiranAwaiting requested review from tirantiran is a code owner

@pablogsalpablogsalAwaiting requested review from pablogsalpablogsal is a code owner

@lysnikolaoulysnikolaouAwaiting requested review from lysnikolaoulysnikolaou is a code owner

@ambvambvAwaiting requested review from ambv

@barneygalebarneygaleAwaiting requested review from barneygale

@brettcannonbrettcannonAwaiting requested review from brettcannon

@ncoghlanncoghlanAwaiting requested review from ncoghlan

@warsawwarsawAwaiting requested review from warsaw

@1st11st1Awaiting requested review from 1st1

@asvetlovasvetlovAwaiting requested review from asvetlov

@kumaraditya303kumaraditya303Awaiting requested review from kumaraditya303

@willingcwillingcAwaiting requested review from willingc

Assignees

@hugovkhugovk

Labels
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

8 participants
@graingert@hugovk@bedevere-bot@picnixz@iritkatriel@ZeroIntensity@encukou@sobolevn

[8]ページ先頭

©2009-2025 Movatter.jp