Uploaded image for project: 'Motor'
  1. Motor
  2. MOTOR-1106

[BUILD] ERROR: module 'os' has no attribute 'fork' (AttributeError)

    • Type: Icon: Build Failure Build Failure
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 3.2, 3.1.2
    • Affects Version/s: None
    • Component/s: None
    • None

      MOTOR-1087 caused a test regression in asyncio_tests.test_asyncio_basic.ExecutorForkTest.test_executor_reset

      https://spruce.mongodb.com/task/motor_test_win__ssl~nossl_tox_env_win~asyncio_os~win_test_4.0_standalone_da92e56829a8f9871de1b0e6d4553132e0823e4f_23_03_16_20_59_00/tests?execution=0&page=0&sortBy=STATUS&sortDir=ASC

       

       [2023/03/16 22:21:32.704] ERROR: module 'os' has no attribute 'fork' (AttributeError)
       [2023/03/16 22:21:32.704] Traceback (most recent call last):
       [2023/03/16 22:21:32.704]   File "Z:\data\mci\c3a69155e26ce739d2a932c015f0cccd\src\test\asyncio_tests\__init__.py", line 49, in __call__
       [2023/03/16 22:21:32.704]     result = self.orig_method()
       [2023/03/16 22:21:32.704]   File "Z:\data\mci\c3a69155e26ce739d2a932c015f0cccd\src\test\asyncio_tests\__init__.py", line 211, in wrapped
       [2023/03/16 22:21:32.704]     self.loop.run_until_complete(task)
       [2023/03/16 22:21:32.704]   File "C:\python\Python37\lib\asyncio\base_events.py", line 587, in run_until_complete
       [2023/03/16 22:21:32.704]     return future.result()
       [2023/03/16 22:21:32.704]   File "C:\python\Python37\lib\asyncio\tasks.py", line 442, in wait_for
       [2023/03/16 22:21:32.704]     return fut.result()
       [2023/03/16 22:21:32.704]   File "Z:\data\mci\c3a69155e26ce739d2a932c015f0cccd\src\test\asyncio_tests\test_asyncio_basic.py", line 157, in test_executor_reset
       [2023/03/16 22:21:32.704]     lock_pid = os.fork()
       [2023/03/16 22:21:32.704] AttributeError: module 'os' has no attribute 'fork'
       [2023/03/16 22:21:32.704] system-out:
       [2023/03/16 22:21:32.704] 
       [2023/03/16 22:21:32.704] system-err:
       [2023/03/16 22:21:32.704]  

       

            Assignee:
            julius.park@mongodb.com Julius Park (Inactive)
            Reporter:
            steve.silvester@mongodb.com Steve Silvester
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: