Skip to content

test_notify multiprocessing test is flaky #130737

Closed

Description

@colesbury

Bug report

Seen in https://github.com/python/cpython/actions/runs/13606907022/job/38039459160?pr=130732

FAIL: test_notify (test.test_multiprocessing_spawn.test_threads.WithThreadsTestCondition.test_notify)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "D:\a\cpython\cpython\Lib\test\_test_multiprocessing.py", line 1691, in test_notify
    self.assertReturnsIfImplemented(2, get_value, woken)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^
  File "D:\a\cpython\cpython\Lib\test\_test_multiprocessing.py", line 275, in assertReturnsIfImplemented
    return self.assertEqual(value, res)
           ~~~~~~~~~~~~~~~~^^^^^^^^^^^^
AssertionError: 2 != 1

Linked PRs

Activity

  1. added 3 commits that reference this issue on Mar 3, 2025
  2. vstinner commented on Mar 3, 2025

    @vstinner
    Member

    Well, the test uses a sleep of 100 ms as a synchronization method, it's not reliable. I wrote PR #130797 to wait until a condition is met using a loop.

  3. added a commit that references this issue on Mar 3, 2025
  4. added 2 commits that reference this issue on Mar 3, 2025
  5. added 2 commits that reference this issue on Mar 3, 2025
  6. encukou commented on Mar 7, 2025

    @encukou
    Member

    Since the backports were merged, Refleaks tests (mainly Windows) are often failing, see:

  7. reopened this on Mar 7, 2025
  8. colesbury commented on Mar 7, 2025

    @colesbury
    ContributorAuthor

    #130933 should fix the buildbot failures.

  9. kumaraditya303 commented on Mar 11, 2025

    @kumaraditya303
    Contributor

    Fixed by #130933

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions