Skip to content

test_profiling.test_sampling_profiler: test_run_failed_script_live() hangs on multiple buildbots #150387

@vstinner

Description

@vstinner

test_run_failed_script_live() hangs on multiple buildbots:

Example:

test_run_failed_script_live (test.test_profiling.test_sampling_profiler.test_live_collector_ui.TestLiveModeErrors.test_run_failed_script_live)
Test that running a failing script exits with clean error. ... Timeout (0:20:00)!
Thread 0x000077c110eae780 [python] (most recent call first):
  File "/buildbot/buildarea/3.x.pablogsal-arch-x86_64/build/Lib/profiling/sampling/sample.py", line 618 in curses_wrapper_func
  File "/buildbot/buildarea/3.x.pablogsal-arch-x86_64/build/Lib/test/test_profiling/test_sampling_profiler/test_live_collector_ui.py", line 829 in mock_curses_wrapper
  File "/buildbot/buildarea/3.x.pablogsal-arch-x86_64/build/Lib/unittest/mock.py", line 1246 in _execute_mock_call
  File "/buildbot/buildarea/3.x.pablogsal-arch-x86_64/build/Lib/unittest/mock.py", line 1179 in _mock_call
  File "/buildbot/buildarea/3.x.pablogsal-arch-x86_64/build/Lib/unittest/mock.py", line 1175 in __call__
  File "/buildbot/buildarea/3.x.pablogsal-arch-x86_64/build/Lib/profiling/sampling/sample.py", line 623 in sample_live
  File "/buildbot/buildarea/3.x.pablogsal-arch-x86_64/build/Lib/profiling/sampling/cli.py", line 1374 in _handle_live_run
  File "/buildbot/buildarea/3.x.pablogsal-arch-x86_64/build/Lib/profiling/sampling/cli.py", line 1239 in _handle_run
  File "/buildbot/buildarea/3.x.pablogsal-arch-x86_64/build/Lib/profiling/sampling/cli.py", line 1133 in _main
  File "/buildbot/buildarea/3.x.pablogsal-arch-x86_64/build/Lib/profiling/sampling/cli.py", line 977 in main
  File "/buildbot/buildarea/3.x.pablogsal-arch-x86_64/build/Lib/test/test_profiling/test_sampling_profiler/test_live_collector_ui.py", line 884 in test_run_failed_script_live
  File "/buildbot/buildarea/3.x.pablogsal-arch-x86_64/build/Lib/unittest/case.py", line 637 in _callTestMethod
  File "/buildbot/buildarea/3.x.pablogsal-arch-x86_64/build/Lib/unittest/case.py", line 691 in run
  File "/buildbot/buildarea/3.x.pablogsal-arch-x86_64/build/Lib/unittest/case.py", line 747 in __call__
...

AMD64 Arch Linux Asan 3.x:

AMD64 Arch Linux TraceRefs 3.x:

cc @pablogsal

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    testsTests in the Lib/test dirtopic-profilingtype-bugAn unexpected behavior, bug, or error
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions