question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Tests test_theil_sen_parallel and test_multi_output_classification_partial_fit_parallelism hang on Windows

See original GitHub issue

Description

Install scikit-learn 0.20.0 on Windows as follows:

conda create -n hang python=3.6.5
pip install scikit-learn==0.20.0
pip install pytest

Steps/Code to Reproduce

The following two individual test runs hang (never finish, and remain uninterruptable):

pytest -v --pyarg sklearn.tests.test_multioutput::test_multi_output_classification_partial_fit_parallelism
pytest -v --pyarg sklearn.linear_model.tests.test_theil_sen::test_theil_sen_parallel

Expected Results

Expecting them to pass as they do on Linux, or skipped in the distribution

Actual Results

Tests hang in both pip installed scikit-learn, as well in scikit-learn installed via conda itself.

Reproduced on “Windows Server 2012 R2 Standard”.

Versions

>pip list
Package        Version
-------------- ---------
atomicwrites   1.2.1
attrs          18.2.0
certifi        2018.8.24
colorama       0.3.9
more-itertools 4.3.0
numpy          1.15.2
pip            10.0.1
pluggy         0.7.1
py             1.6.0
pytest         3.8.2
scikit-learn   0.20.0
scipy          1.1.0
setuptools     40.2.0
six            1.11.0
wheel          0.31.1
wincertstore   0.2

@ogrisel

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:35 (35 by maintainers)

github_iconTop GitHub Comments

2reactions
oleksandr-pavlykcommented, Nov 20, 2018

I volunteer to test fixes for free 😃

2reactions
tomMoralcommented, Nov 20, 2018

but more cores would still trigger the bug, even with python fixed, right? EC2 has c5.18xlarge with 72 cores for $0.70/h.

Note that this problem only exists on windows, so big instances are more around 5/10$ per hour.

But this should still be fixed in loky.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Running tests in parallel - testthat
Each worker begins by loading testthat and the package being tested. It then runs any setup files (so if you have existing setup...
Read more >
devtools::test() in parallel? - Stack Overflow
I have a test suite using testthat containing several files in R/tests and I would like to test them in parallel to speed...
Read more >
Running tests in parallel
Each worker begins by loading testthat and the package being tested. It then runs any setup files (so if you have existing setup...
Read more >
devtools::test() hangs with unit test involving parallel ... - GitHub
Hello, I experience that devtools::check() 'hangs' (it never returns, neither does it use any CPU) when there is a unit-test as follows: ...
Read more >
Parallel Test Execution - Azure DevOps Blog
The test platform intentionally leaves fine-grained control over parallelism to the framework of choice – i.e. it composes over it. Both levels ...
Read more >

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found