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.

Local test failures on MacOS

See original GitHub issue

I can’t seem to create a working environment on my MacOS Catalina dev box. CONTRIBUTING.md could use some attention…

export PYTHON=3.7 TESTS=true PACKAGES="scikit-learn python-snappy python-blosc" TORNADO=6
source continuous_integration/travis/install.sh
source continuous_integration/travis/setup-ssh.sh
source continuous_integration/travis/run_tests.sh

Test failures:

1.

Many (all?) tests failed on the check_thread_leak() helper function, e.g. test_scheduler_bokeh.test_simple:

>               assert False, (thread, call_stacks)
E               AssertionError: (<Thread(Profile, started daemon 123145338511360)>, ['  File "/Users/crusaderky/miniconda3/envs/distributed/lib/python...ile "/Users/crusaderky/PycharmProjects/distributed/distributed/profile.py", line 269, in _watch
E                 \tsleep(interval)
E                 '])
E               assert False

2.

  • test_dask_scheduler.test_defaults
  • test_dask_scheduler.test_hostport
  • test_comms.test_default_client_server_ipv6
  • test_comms.test_tcp_client_server_ipv4
  • test_comms.test_tcp_client_server_ipv6
  • test_comms.test_tls_client_server_ipv4

failed with: OSError: Timed out trying to connect to ‘tcp://[Guidos-MacBook-Pro.local]:8786’ after 5 s: Timed out trying to connect to ‘tcp://[Guidos-MacBook-Pro.local]:8786’ after 5 s: connect() didn’t finish in time

3.

  • test_dask_scheduler.test_no_dashboard
  • test_dask_scheduler.test_dashboard

failed with:

                with pytest.raises(Exception):
>                   requests.get("http://127.0.0.1:8787/status/")
E                   Failed: DID NOT RAISE <class 'Exception'>

What am I missing or doing wrong? Have the tests been run recently on MacOSX?

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:1
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
crusaderkycommented, Jan 28, 2020

I believe that Azure Pipelines (and probably more CIs) offer MacOSX environments. I think it should be a wise idea to set it up (at least on master, if not on the PRs).

0reactions
dankerrigancommented, May 19, 2020

Regarding tests hanging at 40%, I think that might be because the default ulimit for macOS is quite low at 256. Run ulimit -n to check. Running ulimit -n 65536 before running py.test --verbose distributed should result in more of the test suite running. That said, I’m still looking into py.test distributed/deploy/tests/test_old_ssh.py and py.test distributed/deploy/tests/test_ssh.py::test_defer_to_old aborting without any message.

Read more comments on GitHub >

github_iconTop Results From Across the Web

"Randomly" failing tests | Apple Developer Forums
We have a test suite that passes when tests are run manually via Xcode. But when run through Xcode Server on about 50...
Read more >
Swift package unit test failing on hosted macOS image but ...
A swift package CoreDataRepository on branch non-main-queue is failing two specific unit tests on the hosted image but passing on my local ......
Read more >
Mac app tests fail with hardened runtime enabled
When the hardened runtime is enabled for unit tests and UI tests, Xcode fails with some obscure error messages. The root of the...
Read more >
MacOS Swift Framework testing fail - Stack Overflow
My FnordTests target contained a couple of unit test classes that had import Fnord at the top of each file. For some reason...
Read more >
Troubleshooting Local Testing on the iOS platform in Live
Failure to redirect localhost to bs-local.com · Website hosted on an unsupported port · Hostname restrictions in local server configuration aka the Invalid...
Read more >

github_iconTop Related Medium Post

No results found

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