8000 `test_external_inspection`: `test_async_remote_stack_trace` fails intermittently · Issue #133425 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

test_external_inspection: test_async_remote_stack_trace fails intermittently #133425

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

Closed
encukou opened this issue May 5, 2025 · 7 comments
Closed
Labels
3.14 bugs and security fixes stdlib Python modules in the Lib dir topic-asyncio type-bug An unexpected behavior, bug, or error

Comments

@encukou
Copy link
Member
encukou commented May 5, 2025

Bug report

test_async_remote_stack_trace and test_asyncgen_remote_stack_trace from test_external_inspection. For example: on build 1128 on Debian root buildbot

======================================================================
FAIL: test_async_remote_stack_trace (test.test_external_inspection.TestGetStackTrace.test_async_remote_stack_trace) (task_factory_variant='asyncio.new_event_loop')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_external_inspection.py", line 269, in test_async_remote_stack_trace
    self.assertEqual(stack_trace, expected_stack_trace)
    ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: Lists differ: [[('c[62 chars]y', 10), ('c4', '/tmp/test_python_0gbnot0i/tmp[1293 chars]]]]]] != [[('c[62 chars]y', 11), ('c4', '/tmp/test_python_0gbnot0i/tmp[1308 chars]]]]]]
First differing element 0:
[('c5[61 chars]y', 10), ('c4', '/tmp/test_python_0gbnot0i/tmp[179 chars] 21)]
[('c5[61 chars]y', 11), ('c4', '/tmp/test_python_0gbnot0i/tmp[179 chars] 21)]
Diff is 2008 characters long. Set self.maxDiff to None to see it.
======================================================================
FAIL: test_async_remote_stack_trace (test.test_external_inspection.TestGetStackTrace.test_async_remote_stack_trace) (task_factory_variant='new_eager_loop')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_external_inspection.py", line 269, in test_async_remote_stack_trace
    self.assertEqual(stack_trace, expected_stack_trace)
    ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: Lists differ: [[('c[62 chars]y', 10), ('c4', '/tmp/test_python_0gbnot0i/tmp[1293 chars]]]]]] != [[('c[62 chars]y', 11), ('c4', '/tmp/test_python_0gbnot0i/tmp[1308 chars]]]]]]
First differing element 0:
[('c5[61 chars]y', 10), ('c4', '/tmp/test_python_0gbnot0i/tmp[179 chars] 21)]
[('c5[61 chars]y', 11), ('c4', '/tmp/test_python_0gbnot0i/tmp[179 chars] 21)]
Diff is 2008 characters long. Set self.maxDiff to None to see it.
----------------------------------------------------------------------
@encukou encukou added type-bug An unexpected behavior, bug, or error topic-asyncio stdlib Python modules in the Lib dir labels May 5, 2025
@github-project-automation github-project-automation bot moved this to Todo in asyncio May 5, 2025
@vstinner vstinner marked this as a duplicate of #133428 May 5, 2025
@vstinner
Copy link
Member
vstinner commented May 5, 2025

I closed my issue #133428 as a duplicate of this one.

@picnixz picnixz added the 3.14 bugs and security fixes label May 5, 2025
@pablogsal
Copy link
Member

Will take a look today but the problem seems to be that matching line numbers is racy

@vstinner
Copy link
Member
vstinner commented May 5, 2025

The issue was maybe fixed by #133422.

@vstinner
Copy link
Member
vstinner commented May 5, 2025

Failure one hour ago on PPC64LE Fedora Stable Refleaks 3.x: https://buildbot.python.org/#/builders/280/builds/1893

FAIL: test_async_remote_stack_trace (test.test_external_inspection.TestGetStackTrace.test_async_remote_stack_trace) (task_factory_variant='asyncio.new_event_loop')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-ppc64le.refleak/build/Lib/test/test_external_inspection.py", line 269, in test_async_remote_stack_trace
    self.assertEqual(stack_trace, expected_stack_trace)
    ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: Lists differ: [[('c[62 chars]y', 10), ('c4', '/tmp/test_python_qxb4meok/tmp[1449 chars]]]]]] != [[('c[62 chars]y', 11), ('c4', '/tmp/test_python_qxb4meok/tmp[1464 chars]]]]]]

First differing element 0:
[('c5[61 chars]y', 10), ('c4', '/tmp/test_python_qxb4meok/tmp[179 chars] 21)]
[('c5[61 chars]y', 11), ('c4', '/tmp/test_python_qxb4meok/tmp[179 chars] 21)]

Diff is 2164 characters long. Set self.maxDiff to None to see it.

@pablogsal
Copy link
Member

There are more places where the line numbers may change but we can use the same technique

@vstinner
Copy link
Member
vstinner commented May 5, 2025

There are more places where the line numbers may change but we can use the same technique

Right. Please see my fix #133433.

@vstinner
Copy link
Member
vstinner commented May 5, 2025

It should be fixed by #133433.

6663
@vstinner vstinner closed this as completed May 5, 2025
@github-project-automation github-project-automation bot moved this from Todo to Done in asyncio May 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.14 bugs and security fixes stdlib Python modules in the Lib dir topic-asyncio type-bug An unexpected behavior, bug, or error
Projects
Status: Done
Development

No branches or pull requests

4 participants
0