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-127651: Use __file__ in diagnostics if origin is missing#127660

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
hauntsaninja merged 15 commits intopython:mainfromhauntsaninja:gh-127651
Dec 10, 2024

Conversation

@hauntsaninja
Copy link
Contributor

@hauntsaninjahauntsaninja commentedDec 6, 2024
edited by bedevere-appbot
Loading

@hauntsaninjahauntsaninja added the 🔨 test-with-buildbotsTest PR w/ buildbots; report in status section labelDec 9, 2024
@bedevere-bot
Copy link

🤖 New build scheduled with the buildbot fleet by@hauntsaninja for commit9a3dbbf 🤖

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 labelDec 9, 2024
@hauntsaninja
Copy link
ContributorAuthor

(testing with buildbots because last time I made a similar change we needed a fix for iOS)

Copy link
Member

@serhiy-storchakaserhiy-storchaka left a comment

Choose a reason for hiding this comment

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

There is yet one bug in this code. Iferrmsg is NULL,Py_DECREF(errmsg) (or even_PyErr_SetImportErrorWithNameFrom) can crash.

hauntsaninja reacted with thumbs up emoji
hauntsaninjaand others added2 commitsDecember 9, 2024 02:23
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Copy link
Member

@serhiy-storchakaserhiy-storchaka left a comment

Choose a reason for hiding this comment

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

LGTM.

The code is so complicated that I am not sure that all cases are covered. But in any case this is an improvement.

@hauntsaninja
Copy link
ContributorAuthor

Thank you for the review!

@hauntsaninjahauntsaninja merged commit3983527 intopython:mainDec 10, 2024
43 checks passed
@miss-islington-app
Copy link

Thanks@hauntsaninja for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13.
🐍🍒⛏🤖

@miss-islington-app
Copy link

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

cherry_picker 3983527c3a6b389e373a233e514919555853ccb3 3.13

@hauntsaninjahauntsaninja deleted the gh-127651 branchDecember 10, 2024 04:55
hauntsaninja added a commit to hauntsaninja/cpython that referenced this pull requestDec 10, 2024
@bedevere-app
Copy link

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

@bedevere-appbedevere-appbot removed the needs backport to 3.13bugs and security fixes labelDec 10, 2024
hauntsaninja added a commit that referenced this pull requestDec 10, 2024
…127660) (#127775)gh-127651: Use __file__ in diagnostics if origin is missing (#127660)See the left hand side inhttps://github.com/python/cpython/pull/123929/files#diff-c22186367cbe20233e843261998dc027ae5f1f8c0d2e778abfa454ae74cc59deL2840-L2849---------Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>(cherry picked from commit3983527)
@bedevere-bot
Copy link

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

Hi! The buildbotARM64 MacOS M1 Refleaks NoGIL 3.x has failed when building commit3983527.

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/1368/builds/2283) and take a look at the build logs.
  4. Check if the failure is related to this commit (3983527) 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/1368/builds/2283

Failed tests:

  • test.test_concurrent_futures.test_thread_pool

Failed subtests:

  • test_free_reference - test.test_concurrent_futures.test_thread_pool.ThreadPoolExecutorTest.test_free_reference

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

==

Click to see traceback logs
Traceback (most recent call last):  File"/Users/ec2-user/buildbot/buildarea/3.x.itamaro-macos-arm64-aws.macos-with-brew.refleak.nogil/build/Lib/test/test_concurrent_futures/executor.py", line132, intest_free_referenceself.assertIsNone(wr())~~~~~~~~~~~~~~~~~^^^^^^AssertionError:<test.test_concurrent_futures.executor.MyObject object at 0x200061c0160> is not NoneTraceback (most recent call last):  File"/Users/ec2-user/buildbot/buildarea/3.x.itamaro-macos-arm64-aws.macos-with-brew.refleak.nogil/build/Lib/test/test_concurrent_futures/executor.py", line132, intest_free_referenceself.assertIsNone(wr())~~~~~~~~~~~~~~~~~^^^^^^AssertionError:<test.test_concurrent_futures.executor.MyObject object at 0x200061c0090> is not None

hauntsaninja added a commit to hauntsaninja/cpython that referenced this pull requestDec 17, 2024
…moduleI missed the extra `PyModule_Check` inpython#127660 because I was looking at3.12 as the base implementation for import from. This meant that Imissed the `PyModuleCheck` introduced inpython#112661.
hauntsaninja added a commit that referenced this pull requestDec 20, 2024
…#128047)I missed the extra `PyModule_Check` in#127660 because I was looking at3.12 as the base implementation for import from. This meant that Imissed the `PyModuleCheck` introduced in#112661.
miss-islington pushed a commit to miss-islington/cpython that referenced this pull requestDec 20, 2024
…module (pythonGH-128047)I missed the extra `PyModule_Check` inpythonGH-127660 because I was looking at3.12 as the base implementation for import from. This meant that Imissed the `PyModuleCheck` introduced inpythonGH-112661.(cherry picked from commit45e6dd6)Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
hauntsaninja added a commit that referenced this pull requestDec 20, 2024
…-module (GH-128047) (#128114)gh-128030: Avoid error from PyModule_GetFilenameObject for non-module (GH-128047)I missed the extra `PyModule_Check` inGH-127660 because I was looking at3.12 as the base implementation for import from. This meant that Imissed the `PyModuleCheck` introduced inGH-112661.(cherry picked from commit45e6dd6)Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
srinivasreddy pushed a commit to srinivasreddy/cpython that referenced this pull requestDec 23, 2024
…module (python#128047)I missed the extra `PyModule_Check` inpython#127660 because I was looking at3.12 as the base implementation for import from. This meant that Imissed the `PyModuleCheck` introduced inpython#112661.
srinivasreddy pushed a commit to srinivasreddy/cpython that referenced this pull requestJan 8, 2025
srinivasreddy pushed a commit to srinivasreddy/cpython that referenced this pull requestJan 8, 2025
…module (python#128047)I missed the extra `PyModule_Check` inpython#127660 because I was looking at3.12 as the base implementation for import from. This meant that Imissed the `PyModuleCheck` introduced inpython#112661.
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@picnixzpicnixzpicnixz left review comments

@serhiy-storchakaserhiy-storchakaserhiy-storchaka approved these changes

@brettcannonbrettcannonAwaiting requested review from brettcannonbrettcannon is a code owner

@ericsnowcurrentlyericsnowcurrentlyAwaiting requested review from ericsnowcurrentlyericsnowcurrently is a code owner

@ncoghlanncoghlanAwaiting requested review from ncoghlanncoghlan is a code owner

@warsawwarsawAwaiting requested review from warsawwarsaw is a code owner

@markshannonmarkshannonAwaiting requested review from markshannonmarkshannon is a code owner

Assignees

@hauntsaninjahauntsaninja

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

5 participants

@hauntsaninja@bedevere-bot@ericsnowcurrently@serhiy-storchaka@picnixz

[8]ページ先頭

©2009-2025 Movatter.jp