Skip to content

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

Open

Description

@vstinner

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 58e9f95.

Linked PRs

Activity

  1. added a commit that references this issue on May 18, 2026
  2. ned-deily commented on May 18, 2026

    @ned-deily
    Member

    I don't recall seeing this particular timeout when running tests on real Macs, either Apple Silicon or Intel. It could be due to the GHA setup. I don't have access to an Intel Mac at the moment but I can test it next week after PyCon.

  3. vstinner commented on May 18, 2026

    @vstinner
    MemberAuthor

    Can we close the issue since PR gh-148032 has been merged?

  4. ned-deily commented on May 18, 2026

    @ned-deily
    Member

    Can we close the issue since PR gh-148032 has been merged?

    I would prefer to keep it open until we know better why this timeout occurs. We shouldn't have to disable the test.

  5. hugovk commented on Jul 6, 2026

    @hugovk
    Member

    I've backported #149991 from main back to 3.12 and we ran into some timeouts:

    Backport PRs of #149991

    Branch PR macOS job tkinter
    3.15 #153179 (merged) green, 18m Timeout (10 min) first pass; rerun passed
    3.14 #153181 (merged) green, 18m Passed, no timeout
    3.13 #153185 (open) red, 25m SIGSEGV first pass; Timeout (10 min) on rerun
    3.12 #153186 (merged) green, 14m Passed, no timeout

    Post-merge branch runs

    Branch macOS job tkinter
    3.15 green, 28m Timeout (10 min) first pass; rerun passed
    3.14 red, 27m SIGSEGV first pass; Timeout (10 min) on rerun
    3.13 — Not merged yet
    3.12 green, 17m Passed, no timeout

    So I'll also backport the test skip, until we get a fix.

  6. added 4 commits that reference this issue on Jul 6, 2026
  7. serhiy-storchaka commented on Jul 6, 2026

    @serhiy-storchaka
    Member

    Try to backport PRs for #69134. The parts which touch existing tests, because many new tests were added.

  8. hugovk commented on Jul 8, 2026

    @hugovk
    Member

    We just got a timeout on for this test macos-26-intel at https://github.com/python/cpython/actions/runs/28940873616/job/85862500892?pr=153327 with Tk 8.6.18.

    When 8.6.17 and 9.0.3 were the latest versions, we added this skip:

            if (
                t._windowingsystem == 'aqua'
                and sys.platform == 'darwin'
                and platform.machine() == 'x86_64'
                and platform.mac_ver()[0].startswith('26.')
                and (
                    patchlevel[:3] <= (8, 6, 17)
                    or (9, 0) <= patchlevel[:3] <= (9, 0, 3)
                )
            ):
                # https://github.com/python/cpython/issues/146531
                # Tk bug 4a2070f0d3a99aa412bc582d386d575ca2f37323
                self.skipTest('wm iconbitmap hangs on macOS 26 Intel')

    Since then, 8.6.18 and 9.0.4 have come out, and 8.6.18 has filtered through Homebrew to our tests. We're still on 9.0.3 on main.

    I suggest we skip for all versions until there's a fix available:

            if (
                t._windowingsystem == 'aqua'
                and sys.platform == 'darwin'
                and platform.machine() == 'x86_64'
                and platform.mac_ver()[0].startswith('26.')
            ):
                # https://github.com/python/cpython/issues/146531
                # Tk bug 4a2070f0d3a99aa412bc582d386d575ca2f37323
                # Not fixed as of Tk 8.6.18 and 9.0.4.
                self.skipTest('wm iconbitmap hangs on macOS 26 Intel')

    Try to backport PRs for #69134. The parts which touch existing tests, because many new tests were added.

    Those three PRs have all been backported to 3.13. We test Tk 9 on main/3.15, and still have Tk 8 on 3.14 and older.

    Here's a run on 3.14, modified to do 4 x macos-26-intel, so it has 8.6.18 that evades the skip, and we can see if those PRs help:

    And we got four timeouts:

    • Result: FAILURE then SUCCESS
    • Result: FAILURE then FAILURE
    • Result: FAILURE then SUCCESS
    • Result: SUCCESS

    So they don't help in this case.

  9. added 5 commits that reference this issue on Jul 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions