python / python/cpython

test_wm_iconbitmap() timeout after 10 min on "macOS / build and test (macos-26-intel)" CI

未關閉
#146,531 15 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

OS-mac tests topic-tkinter type-bug
主要語言
Python
星號
77.2k
分支
36k
PR 合併指標
PR 指標待擷取

描述

Example of failure: https://github.com/python/cpython/actions/runs/23552862012/job/68571481619?pr=146357

(...)
test_wm_attribute (test.test_tkinter.test_misc.WmTest.test_wm_attribute) ... ok
test_wm_iconbitmap (test.test_tkinter.test_misc.WmTest.test_wm_iconbitmap) ... Timeout (0:10:00)!
Thread 0x00007ff85c48cc00 (most recent call first):
  File "/Users/runner/work/cpython/cpython/Lib/tkinter/__init__.py", line 2345 in wm_iconbitmap
  File "/Users/runner/work/cpython/cpython/Lib/test/test_tkinter/test_misc.py", line 582 in test_wm_iconbitmap
  File "/Users/runner/work/cpython/cpython/Lib/unittest/case.py", line 613 in _callTestMethod
  File "/Users/runner/work/cpython/cpython/Lib/unittest/case.py", line 667 in run
(...)

test.pythoninfo:

tkinter.TCL_VERSION: 9.0
tkinter.TK_VERSION: 9.0
tkinter.info_patchlevel: 9.0.3

The test_wm_iconbitmap() test was added by commit 58e9f95c4aa970db32a94b9152b51ede22f823bd.

Linked PRs
  • gh-148032
  • gh-153188
  • gh-153189
  • gh-153190
  • gh-153191
  • gh-153348
  • gh-153450
  • gh-153451
  • gh-153452
  • gh-153453

貢獻指南

開啟貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

研究方向

閱讀 Lib/test/test_tkinter/test_misc.py 中 WmTest.test_wm_iconbitmap 附近的內容,以及 Lib/tkinter/init.py:2345 中 traceback 的位置。使用 Tk 9.0.3 在 macOS / build and test (macos-26-intel) 上重現 timeout,然後審查連結的 PR;完成的標準是測試在 CI timeout 內完成。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
python
領域
desktop-dev, testing
Issue 類型
缺陷
難度
4/5
預估耗時
3-5 天
活躍度
停滯
描述清晰度
基本清楚
新手友好度
25/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。