Changeset 236579 in webkit


Ignore:
Timestamp:
Sep 27, 2018 5:50:28 PM (6 years ago)
Author:
Ryan Haddad
Message:

Increase the timeout for iOS Simulator data migration
https://bugs.webkit.org/show_bug.cgi?id=190059

Reviewed by Aakash Jain.

3 minutes isn't always enough time for the data migrator to complete
when booting up multiple iOS Simulators. Change the timeout to 10 minutes.

  • Scripts/webkitpy/xcode/simulated_device.py:

(SimulatedDeviceManager): Create a constant for the default timeout.
(SimulatedDeviceManager.initialize_devices): Use new constant.
(SimulatedDeviceManager.swap): Ditto.
(SimulatedDeviceManager.wait_until_data_migration_is_done): Ditto.

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r236565 r236579  
     12018-09-27  Ryan Haddad  <ryanhaddad@apple.com>
     2
     3        Increase the timeout for iOS Simulator data migration
     4        https://bugs.webkit.org/show_bug.cgi?id=190059
     5
     6        Reviewed by Aakash Jain.
     7
     8        3 minutes isn't always enough time for the data migrator to complete
     9        when booting up multiple iOS Simulators. Change the timeout to 10 minutes.
     10
     11        * Scripts/webkitpy/xcode/simulated_device.py:
     12        (SimulatedDeviceManager): Create a constant for the default timeout.
     13        (SimulatedDeviceManager.initialize_devices): Use new constant.
     14        (SimulatedDeviceManager.swap): Ditto.
     15        (SimulatedDeviceManager.wait_until_data_migration_is_done): Ditto.
     16
    1172018-09-27  Alex Christensen  <achristensen@webkit.org>
    218
  • trunk/Tools/Scripts/webkitpy/xcode/simulated_device.py

    r231452 r236579  
    6262    INITIALIZED_DEVICES = None
    6363
     64    SIMULATOR_BOOT_TIMEOUT = 600
     65
    6466    # FIXME: Simulators should only take up 2GB, but because of <rdar://problem/39393590> something in the OS thinks they're taking closer to 6GB
    6567    MEMORY_ESTIMATE_PER_SIMULATOR_INSTANCE = 6 * (1024 ** 3)  # 6GB a simulator.
     
    315317
    316318    @staticmethod
    317     def initialize_devices(requests, host=SystemHost(), name_base='Managed', simulator_ui=True, timeout=180, **kwargs):
     319    def initialize_devices(requests, host=SystemHost(), name_base='Managed', simulator_ui=True, timeout=SIMULATOR_BOOT_TIMEOUT, **kwargs):
    318320        if SimulatedDeviceManager.INITIALIZED_DEVICES is not None:
    319321            return SimulatedDeviceManager.INITIALIZED_DEVICES
     
    396398
    397399    @staticmethod
    398     def swap(device, request, host=SystemHost(), name_base='Managed', timeout=180):
     400    def swap(device, request, host=SystemHost(), name_base='Managed', timeout=SIMULATOR_BOOT_TIMEOUT):
    399401        if SimulatedDeviceManager.INITIALIZED_DEVICES is None:
    400402            raise RuntimeError('Cannot swap when there are no initialized devices')
     
    420422
    421423    @staticmethod
    422     def wait_until_data_migration_is_done(host, timeout=180):
     424    def wait_until_data_migration_is_done(host, timeout=SIMULATOR_BOOT_TIMEOUT):
    423425        # The existence of a datamigrator process means that simulators are still booting.
    424426        deadline = time.time() + timeout
Note: See TracChangeset for help on using the changeset viewer.