You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by "Ahmet Altay (JIRA)" <ji...@apache.org> on 2017/12/15 23:03:00 UTC

[jira] [Assigned] (BEAM-3364) Use multiprocess nose plugin to improve unit test run time

     [ https://issues.apache.org/jira/browse/BEAM-3364?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ahmet Altay reassigned BEAM-3364:
---------------------------------

    Assignee:     (was: Ahmet Altay)

> Use multiprocess nose plugin to improve unit test run time
> ----------------------------------------------------------
>
>                 Key: BEAM-3364
>                 URL: https://issues.apache.org/jira/browse/BEAM-3364
>             Project: Beam
>          Issue Type: Improvement
>          Components: sdk-py-core, testing
>            Reporter: Udi Meiri
>            Priority: Minor
>
> The multiprocess plugin is installed by default. You can try it out by running:
> nosetests --processes 8 --process-timeout 60
> The running time is reduced from ~3m30s to ~30s on my workstation, but with some tests reporting errors.
> Errors can be avoided by disabling multiprocess for certain classes by setting this global in the test file:
> {{_multiprocess_ = False  # Disable nosetests multiprocess plugin.}}
> The problem is that failures are flaky, so repeated runs are required to verify we're not adding any new flakes by enabling multiprocess. Alternatively, we could try fixing the tests to make them pass.
> Setting up multiprocess runs is done by adding these lines to the bottom of setup.cfg:
> {{# Run tests in multiple processes for shorter overall running time.}}
> {{processes=8}}
> {{# This timeout only applies to multiprocess runs. The default is 10 seconds.}}
> {{process-timeout=60}}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)