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.

Optional additional CI for developer tools

See original GitHub issue

I mostly work in VSCode and use the Python plugin which has a debugger and test runner.

Occasionally something changes in distributed which breaks my development setup. For example right now the test runner is failing to discover tests and is reporting the error

____________ ERROR collecting distributed/comm/tests/test_comms.py _____________
distributed/utils.py:142: in _get_ip
    sock.connect((host, port))
E   OSError: [Errno 65] No route to host

During handling of the above exception, another exception occurred:
distributed/comm/tests/test_comms.py:48: in <module>
    EXTERNAL_IP6 = get_ipv6()
distributed/utils.py:173: in get_ipv6
    return _get_ip(host, port, family=socket.AF_INET6)
cytoolz/functoolz.pyx:476: in cytoolz.functoolz._memoize.__call__
    ???
distributed/utils.py:151: in _get_ip
    addr_info = socket.getaddrinfo(
../../../miniconda3/envs/dask/lib/python3.8/socket.py:918: in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
E   socket.gaierror: [Errno 8] nodename nor servname provided, or not known

I can work around this by setting the DISABLE_IPV6 env var. Or by using pdb and breakpoint outside of the editor.

The same issue doesn’t happen when running pytest from the terminal.

My initial reaction is to debug and fix the issue and add some CI to run the test discovery that is failing. But given that development tools boil down to personal preference (and installing them in CI can be arduous) perhaps we don’t want some VSCode specific checks in our tests.

Does anyone have any thoughts or preferences about this?

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
gforsythcommented, Mar 23, 2021
E   socket.gaierror: [Errno 8] nodename nor servname provided, or not known

This hits me very frequently on a corporate proxy where our VPN overwrites /etc/hosts

0reactions
jacobtomlinsoncommented, Mar 24, 2021

This hits me very frequently on a corporate proxy where our VPN overwrites /etc/hosts

Ah that might explain what is happening to me.

Read more comments on GitHub >

github_iconTop Results From Across the Web

14 Best CI/CD Pipeline Tools & Frameworks | List for 2022
Achieve faster workflow and greater effectiveness with these CI/CD tools. Learn more about continuous integration and continuous delivery frameworks at ...
Read more >
Continuous Integration Tools: Top 7 Comparison
Check out this helpful comparison of 7 continuous integration tools, and learn about ... CI is built on agile and DevOps software development...
Read more >
Top 10 CI/CD Tools in 2022
Continuous integration and continuous delivery (CI/CD) tools are software solutions that leverage automation to support DevOps and speed up ...
Read more >
38 Best CI/CD Tools For 2022
In this blog, we covered the best CI/CD tools out there (with features). Read Now to choose the best that suits your needs....
Read more >
CI/CD Tools: 16 Tools Delivery Pros Must Know About
CircleCI is a cloud-based enterprise CI solution known for scalability, performance, and speed. It integrates with GitHub and BitBucket, enabling developers to ...
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