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

[3.13] gh-128770: raise warnings as errors in test suite - except for test_s… #131802

Merged
merged 10 commits into from
Mar 29, 2025

Conversation

graingert
Copy link
Contributor

@graingert graingert commented Mar 27, 2025

…ocket which still logs warnings, and internal test warnings that are now logged (#128973)

Co-authored-by: Bénédikt Tran [email protected]
(cherry picked from commit 8a00c9a)

…test_socket which still logs warnings, and internal test warnings that are now logged (python#128973)

Co-authored-by: Bénédikt Tran <[email protected]>
(cherry picked from commit 8a00c9a)
@graingert graingert changed the title gh-128770: raise warnings as errors in test suite - except for test_s… [3.13] gh-128770: raise warnings as errors in test suite - except for test_s… Mar 27, 2025
@graingert graingert requested a review from hugovk March 28, 2025 14:28
@rhettinger rhettinger removed their request for review March 29, 2025 02:15
@hugovk hugovk merged commit 07d4c7e into python:3.13 Mar 29, 2025
44 checks passed
@graingert graingert deleted the backport-8a00c9a-3.13 branch March 29, 2025 20:02
@bedevere-bot
Copy link

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

Hi! The buildbot aarch64 Fedora Stable Refleaks 3.13 (tier-2) has failed when building commit 07d4c7e.

What do you need to do:

  1. Don't panic.
  2. Check the 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/1512/builds/464) and take a look at the build logs.
  4. Check if the failure is related to this commit (07d4c7e) 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/1512/builds/464

Failed tests:

  • test_perf_profiler

Failed subtests:

  • test_python_calls_appear_in_the_stack_if_perf_activated - test.test_perf_profiler.TestPerfProfilerWithDwarf.test_python_calls_appear_in_the_stack_if_perf_activated

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

==

Click to see traceback logs
Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.13.cstratak-fedora-stable-aarch64.refleak/build/Lib/test/test_perf_profiler.py", line 356, in test_python_calls_appear_in_the_stack_if_perf_activated
    self.assertIn(f"py::foo:{script}", stdout)
    ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: 'py::foo:/tmp/test_python_ybv4ff_u/tmpbjgutgy7/perftest.py' not found in 'python  746155 436603.141879:          1 cycles:Pu: \n\tffffaa282d37fc78 [unknown] ([unknown])\n\tffffaa282d38049c [unknown] ([unknown])\n\tffffaa282bf215e4 [unknown] ([unknown])\n\t    ffffa971eac0 _start+0x0 (/usr/lib/ld-linux-aarch64.so.1)\n\npython  746155 436603.141918:          1 cycles:Pu: \n\t    ffffa971eac0 _start+0x0 (/usr/lib/ld-linux-aarch64.so.1)\n\npython  746155 436603.142048:          1 cycles:Pu: \n\t    ffffa971b9fc setup_vdso+0xbfc (inlined)\n\t    ffffa971b9fc dl_main+0xbfc (/usr/lib/ld-linux-aarch64.so.1)\n\t    ffffa97195ff _dl_sysdep_start+0x1df (/usr/lib/ld-linux-aarch64.so.1)\n\t    ffffa971ab17 _dl_start_final+0x5ab (inlined)\n\t    ffffa971ab17 _dl_start+0x5ab (/usr/lib/ld-linux-aarch64.so.1)\n\t    ffffa971ead3 _start+0x13 (/usr/lib/ld-linux-aarch64.so.1)\n\npython  746155 436603.142066:        416 cycles:Pu: \n\t    ffffa971ba58 setup_vdso+0xc58 (inlined)\n\t    ffffa971ba58 dl_main+0xc58 (/usr/lib/ld-linux-aarch64.so.1)\n\t    ffffa97195ff _dl_sysdep_start+0x1df (/usr/lib/ld-linux-aarch64.so.1)\n\t    ffffa971ab17 _dl_start_final+0x5ab (inlined)\n\t    ffffa971ab17 _dl_start+0x5ab (/usr/lib/ld-linux-aarch64.so.1)\n\t    ffffa971ead3 _start+0x13 (/usr/lib/ld-linux-aarch64.so.1)\n\npython  746155 436603.143125:       4394 cycles:Pu: \n\t    ffffa9534940 __strdup+0x0 (/usr/lib64/libc.so.6)\n\t    ffffa94c18af _nl_load_locale_from_archive+0x40f (/usr/lib64/libc.so.6)\n\t    ffffa94c0c7f _nl_find_locale+0xff (/usr/lib64/libc.so.6)\n\t    ffffa94c344f setlocale+0x3cf (/usr/lib64/libc.so.6)\n\t          65a99b _Py_SetLocaleFromEnv+0x17 (/home/buildbot/buildarea/3.13.cstratak-fedora-stable-aarch64.refleak/build/python)\n\t          651cf7 _PyPreConfig_Read+0x15f (/home/buildbot/buildarea/3.13.cstratak-fedora-stable-aarch64.refleak/build/python)\n\t          65ad3f _Py_PreInitializeFromPyArgv+0x103 (/home/buildbot/buildarea/3.13.cstratak-fedora-stable-aarch64.refleak/build/python)\n\t          68b18f pymain_init+0x57 (/home/buildbot/buildarea/3.13.cstratak-fedora-stable-aarch64.refleak/build/python)\n\t          68b2fb pymain_main+0xf (/home/buildbot/buildarea/3.13.cstratak-fedora-stable-aarch64.refleak/build/python)\n\t          68b38f Py_BytesMain+0x27 (/home/buildbot/buildarea/3.13.cstratak-fedora-stable-aarch64.refleak/build/python)\n\t          41ddb7 main+0xb (/home/buildbot/buildarea/3.13.cstratak-fedora-stable-aarch64.refleak/build/python)\n\t    ffffa94b625b __libc_start_call_main+0x7b (/usr/lib64/libc.so.6)\n\t    ffffa94b633b __libc_start_main@@GLIBC_2.34+0x9b (/usr/lib64/libc.so.6)\n\t          41dcaf _start+0x2f (/home/buildbot/buildarea/3.13.cstratak-fedora-stable-aarch64.refleak/build/python)\n\npython  746155 436603.143639:     271993 cycles:Pu: \n\t          41cef0 pthread_key_create@plt+0x0 (/home/buildbot/buildarea/3.13.cstratak-fedora-stable-aa
ratak-fedora-stable-aarch64.refleak/build/python)\n\t          65379b pycore_interp_init+0x10b (/home/buildbot/buildarea/3.13.cstratak-fedora-stable-aarch64.refleak/build/python)\n\t          653997 pyinit_config+0xaf (/home/buildbot/buildarea/3.13.cstratak-fedora-stable-aarch64.refleak/build/python)\n\t          65b00f pyinit_core+0xdb (/home/buildbot/buildarea/3.13.cstratak-fedora-stable-aarch64.refleak/build/python)\n\t          65b0e7 Py_InitializeFromConfig+0x97 (/home/buildbot/buildarea/3.13.cstratak-fedora-stable-aarch64.refleak/build/python)\n\t          68b237 pymain_init+0xff (/home/buildbot/buildarea/3.13.cstratak-fedora-stable-aarch64.refleak/build/python)\n\t          68b2fb pymain_main+0xf (/home/buildbot/buildarea/3.13.cstratak-fedora-stable-aarch64.refleak/build/python)\n\t          68b38f Py_BytesMain+0x27 (/home/buildbot/buildarea/3.13.cstratak-fedora-stable-aarch64.refleak/build/python)\n\t          41ddb7 main+0xb (/home/buildbot/buildarea/3.13.cstratak-fedora-stable-aarch64.refleak/build/python)\n\t    ffffa94b625b __libc_start_call_main+0x7b (/usr/lib64/libc.so.6)\n\t    ffffa94b633b __libc_start_main@@GLIBC_2.34+0x9b (/usr/lib64/libc.so.6)\n\t          41dcaf _start+0x2f (/home/buildbot/buildarea/3.13.cstratak-fedora-stable-aarch64.refleak/build/python)\n\npython  746155 436603.145626:    1987413 cycles:Pu: \n\t          54ccb4 PyType_HasFeature+0x4 (inlined)\n\t          54ccb4 PyUnicode_IS_COMPACT+0x4 (/home/buildbot/buildarea/3.13.cstratak-fedora-stable-aarch64.refleak/build/python)\n\t          54ce7f PyUnicode_DATA+0x13 (/home/buildbot/buildarea/3.13.cstratak-fedora-stable-aarch64.refleak/build/python)\n\t          55bb73 unicode_hash+0x6b (/home/buildbot/buildarea/3.13.cstratak-fedora-stable-aarch64.refleak/build/python)\n\t          55bbe3 hashtable_unicode_hash+0xb (/home/buildbot/buildarea/3.13.cstratak-fedora-stable-aarch64.refleak/build/python)\n\t          62ef33 _Py_hashtable_get_entry_generic+0x23 (/home/buildbot/buildarea/3.13.cstratak-fedora-stable-aarch64.refleak/build/python)\n\t          62f3a7 _Py_hashtable_get+0xf (/home/buildbot/buildarea/3.13.cstratak-fedora-stable-aarch64.refleak/build/python)\n\t          55d1af intern_common+0x11b (/home/buildbot/buildarea/3.13.cstratak-fedora-stable-aarch64.refleak/build/python)\n\t          58ea93 _PyUnicode_InternMortal+0x1b (/home/buildbot/buildarea/3.13.cstratak-fedora-stable-aarch64.refleak/build/python)\n\t          58eb4f PyUnicode_InternFromString+0x1f (/home/buildbot/buildarea/3.13.cstratak-fedora-stable-aarch64.refleak/build/python)\n\t          4bb55b descr_new+0x3f (/home/buildbot/buildarea/3.13.cstratak-fedora-stable-aarch64.refleak/build/python)\n\t          4bc73f PyDescr_NewWrapper+0x2b (/home/buildbot/buildarea/3.13.cstratak-fedora-stable-aarch64.refleak/build/python)\n\t          53a503 add_operators+0x63 (/home/buildbot/buildarea/3.13.cstratak-fedora-stable-aarch64.refleak/build/python)\n\t          53a87b type_ready_fill_dict+0x13 (/home/buildbot/buildarea/3.13.cstratak-fedora-stable-aarch64.refleak/build/python)\n\t          5476d3 type_ready+0x93 (/home/buildbot/buildarea/3.13.cstratak-fedora-stable-aarch64.refleak/build/python)\n\t          547867 init_static_type+0xab (/home/buildbot/buildarea/3.13.cstratak-fedora-stable-aarch64.refleak/build/python)\n\t          547a47 _PyStaticType_InitBuiltin+0x23 (/home/buildbot/buildarea/3.13.cstratak-fedora-stable-aarch64.refleak/build/python)\n\t          507797 _PyTypes_InitTypes+0xa7 (/home/buildbot/buildarea/3.13.cstratak-fedora-stable-aarch64.refleak/build/python)\n\t          653183 pycore_init_types+0x1b (/home/buildbot/buildarea/3.13.cstratak-fedora-stable-aarch64.refleak/build/python)\n\t          65379b pycore_interp_init+0x10b (/home/buildbot/buildarea/3.13.cstratak-fedora-stable-aarch64.refleak/build/python)\n\t          653997 pyinit_config+0xaf (/home/buildbot/buildarea/3.13.cstratak-fedora-stable-aarch64.refleak/build/python)\n\t          65b00f pyinit_core+0xdb (/home/buildbot/buildarea/3.13.cstratak-fedora-stable-aarch64.refleak/build/python)\n\t          65


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.13.cstratak-fedora-stable-aarch64.refleak/build/Lib/test/test_perf_profiler.py", line 354, in test_python_calls_appear_in_the_stack_if_perf_activated
    self.assertEqual(stderr, "")
    ~~~~~~~~~~~~~~~~^^^^^^^^^^^^
AssertionError: 'Warning:\nProcessed 707 events and lost 1[34 chars]\n\n' != ''
- Warning:
- Processed 707 events and lost 1 chunks!
- 
- Check IO/CPU overload!
- 

@bedevere-bot
Copy link

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

Hi! The buildbot PPC64LE Fedora Stable LTO 3.13 (tier-2) has failed when building commit 07d4c7e.

What do you need to do:

  1. Don't panic.
  2. Check the 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/1492/builds/501) and take a look at the build logs.
  4. Check if the failure is related to this commit (07d4c7e) 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/1492/builds/501

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

==

Click to see traceback logs
Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.13.cstratak-fedora-stable-ppc64le.lto/build/Lib/test/test_ftplib.py", line 935, in tearDown
    self.server = None
ResourceWarning: unclosed <ssl.SSLSocket fd=6, family=2, type=1, proto=0, laddr=('127.0.0.1', 39543), raddr=('127.0.0.1', 54764)>
k


Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.13.cstratak-fedora-stable-ppc64le.lto/build/Lib/test/test_ftplib.py", line 935, in tearDown
    self.server = None
ResourceWarning: unclosed <ssl.SSLSocket fd=5, family=2, type=1, proto=0, laddr=('127.0.0.1', 43007), raddr=('127.0.0.1', 49844)>
k

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