classification
Title: Ubuntu tests hangs on test_ttk_guionly and test_heading_callback
Type: behavior Stage: resolved
Components: Tests, Tkinter Versions: Python 3.10
process
Status: closed Resolution: duplicate
Dependencies: Superseder: test_ttk timeout: FAIL tkinter ttk LabeledScale test_resize, and more
View: 42142
Assigned To: Nosy List: christian.heimes, epaine, serhiy.storchaka, taleinat, terry.reedy, vstinner
Priority: normal Keywords:

Created on 2020-11-18 16:34 by christian.heimes, last changed 2020-11-18 17:20 by christian.heimes. This issue is now closed.

Messages (3)
msg381357 - (view) Author: Christian Heimes (christian.heimes) * (Python committer) Date: 2020-11-18 16:34
The Ubuntu test runner on Azure have been blocked and eventually failed by an issue related to tkinter tests. My PRs ran into the issue at least three times today.

Example: https://github.com/python/cpython/pull/23360/checks?check_run_id=1418826919

0:19:06 load avg: 0.00 running: test_ttk_guionly (19 min 1 sec)
0:19:36 load avg: 0.00 running: test_ttk_guionly (19 min 31 sec)
0:20:05 load avg: 0.00 [425/425/1] test_ttk_guionly crashed (Exit code 1)
Timeout (0:20:00)!
Thread 0x00007f7b8751d080 (most recent call first):
  File "/home/runner/work/cpython/cpython/Lib/tkinter/__init__.py", line 696 in wait_visibility
  File "/home/runner/work/cpython/cpython/Lib/tkinter/test/test_ttk/test_widgets.py", line 1539 in test_heading_callback
  File "/home/runner/work/cpython/cpython/Lib/unittest/case.py", line 549 in _callTestMethod
  File "/home/runner/work/cpython/cpython/Lib/unittest/case.py", line 592 in run
  File "/home/runner/work/cpython/cpython/Lib/unittest/case.py", line 652 in __call__
  File "/home/runner/work/cpython/cpython/Lib/unittest/suite.py", line 122 in run
  File "/home/runner/work/cpython/cpython/Lib/unittest/suite.py", line 84 in __call__
  File "/home/runner/work/cpython/cpython/Lib/unittest/suite.py", line 122 in run
  File "/home/runner/work/cpython/cpython/Lib/unittest/suite.py", line 84 in __call__
  File "/home/runner/work/cpython/cpython/Lib/unittest/runner.py", line 176 in run
  File "/home/runner/work/cpython/cpython/Lib/test/support/__init__.py", line 959 in _run_suite
  File "/home/runner/work/cpython/cpython/Lib/test/support/__init__.py", line 1082 in run_unittest
  File "/home/runner/work/cpython/cpython/Lib/test/test_ttk_guionly.py", line 31 in test_main
  File "/home/runner/work/cpython/cpython/Lib/test/libregrtest/runtest.py", line 236 in _runtest_inner2
  File "/home/runner/work/cpython/cpython/Lib/test/libregrtest/runtest.py", line 272 in _runtest_inner
  File "/home/runner/work/cpython/cpython/Lib/test/libregrtest/runtest.py", line 142 in _runtest
  File "/home/runner/work/cpython/cpython/Lib/test/libregrtest/runtest.py", line 195 in runtest
  File "/home/runner/work/cpython/cpython/Lib/test/libregrtest/runtest_mp.py", line 81 in run_tests_worker
  File "/home/runner/work/cpython/cpython/Lib/test/libregrtest/main.py", line 659 in _main
  File "/home/runner/work/cpython/cpython/Lib/test/libregrtest/main.py", line 639 in main
  File "/home/runner/work/cpython/cpython/Lib/test/libregrtest/main.py", line 717 in main
  File "/home/runner/work/cpython/cpython/Lib/test/regrtest.py", line 43 in _main
  File "/home/runner/work/cpython/cpython/Lib/test/regrtest.py", line 47 in <module>
  File "/home/runner/work/cpython/cpython/Lib/runpy.py", line 87 in _run_code
  File "/home/runner/work/cpython/cpython/Lib/runpy.py", line 197 in _run_module_as_main
...

test_heading_callback (tkinter.test.test_ttk.test_widgets.TreeviewTest) ... Timeout (0:20:00)!
Thread 0x00007f0461140080 (most recent call first):
  File "/home/runner/work/cpython/cpython/Lib/tkinter/__init__.py", line 696 in wait_visibility
  File "/home/runner/work/cpython/cpython/Lib/tkinter/test/test_ttk/test_widgets.py", line 1539 in test_heading_callback
  File "/home/runner/work/cpython/cpython/Lib/unittest/case.py", line 549 in _callTestMethod
  File "/home/runner/work/cpython/cpython/Lib/unittest/case.py", line 592 in run
  File "/home/runner/work/cpython/cpython/Lib/unittest/case.py", line 652 in __call__
  File "/home/runner/work/cpython/cpython/Lib/unittest/suite.py", line 122 in run
  File "/home/runner/work/cpython/cpython/Lib/unittest/suite.py", line 84 in __call__
  File "/home/runner/work/cpython/cpython/Lib/unittest/suite.py", line 122 in run
  File "/home/runner/work/cpython/cpython/Lib/unittest/suite.py", line 84 in __call__
  File "/home/runner/work/cpython/cpython/Lib/unittest/runner.py", line 176 in run
  File "/home/runner/work/cpython/cpython/Lib/test/support/__init__.py", line 959 in _run_suite
  File "/home/runner/work/cpython/cpython/Lib/test/support/__init__.py", line 1082 in run_unittest
  File "/home/runner/work/cpython/cpython/Lib/test/test_ttk_guionly.py", line 31 in test_main
  File "/home/runner/work/cpython/cpython/Lib/test/libregrtest/runtest.py", line 236 in _runtest_inner2
  File "/home/runner/work/cpython/cpython/Lib/test/libregrtest/runtest.py", line 272 in _runtest_inner
  File "/home/runner/work/cpython/cpython/Lib/test/libregrtest/runtest.py", line 155 in _runtest
  File "/home/runner/work/cpython/cpython/Lib/test/libregrtest/runtest.py", line 195 in runtest
  File "/home/runner/work/cpython/cpython/Lib/test/libregrtest/main.py", line 319 in rerun_failed_tests
  File "/home/runner/work/cpython/cpython/Lib/test/libregrtest/main.py", line 696 in _main
  File "/home/runner/work/cpython/cpython/Lib/test/libregrtest/main.py", line 639 in main
  File "/home/runner/work/cpython/cpython/Lib/test/libregrtest/main.py", line 717 in main
  File "/home/runner/work/cpython/cpython/Lib/test/__main__.py", line 2 in <module>
  File "/home/runner/work/cpython/cpython/Lib/runpy.py", line 87 in _run_code
  File "/home/runner/work/cpython/cpython/Lib/runpy.py", line 197 in _run_module_as_main
Makefile:1202: recipe for target 'buildbottest' failed
make: *** [buildbottest] Error 1
Error: Process completed with exit code 2.
msg381358 - (view) Author: E. Paine (epaine) * Date: 2020-11-18 16:59
Issue 42142 covers this problem. I want to get PR-23156 merged which will (until a better fix is found) skip tests on Ubuntu which use `wait_visibility`.

However, this is becoming more of an issue and I am worried now about the general stability of the tkinter graphical tests on the bots. For example, Victor reported issue 42370 which caused the Github Ubuntu action to fail due to a random ttk Spinbox problem.
msg381359 - (view) Author: Christian Heimes (christian.heimes) * (Python committer) Date: 2020-11-18 17:20
Thanks, I searched for test_heading_callback and didn't look for any bug with "guionly".
History
Date User Action Args
2020-11-18 17:20:29christian.heimessetstatus: open -> closed
superseder: test_ttk timeout: FAIL tkinter ttk LabeledScale test_resize, and more
messages: + msg381359

resolution: duplicate
stage: resolved
2020-11-18 16:59:14epainesetnosy: + vstinner, epaine
messages: + msg381358
2020-11-18 16:34:13christian.heimescreate