Giter Site home page Giter Site logo

Comments (14)

carltongibson avatar carltongibson commented on June 20, 2024 1

Ok, well I can't see anything in obvious... there's a lot going on in the repo so I guess trying to reduce it would be the next phase.

I can see if I can find it next time I'm looking this area.

from channels.

carltongibson avatar carltongibson commented on June 20, 2024

Thanks for the report. I'm not immediately sure what the problem is. Have you explored coverage's concurrency option?

from channels.

kierangillblueberry avatar kierangillblueberry commented on June 20, 2024

I have. It wasn't clear to me which Daphne used so I tried every concurrency option in their docs. I also adding coverage directly to sitecustomize.py as recommended in the docs but did not make any headway.

There are more details in the reproduction's README.md.

from channels.

carltongibson avatar carltongibson commented on June 20, 2024

I'd imagine you'd need a multi-value like multiprocessing,thread 🤔

from channels.

kierangillblueberry avatar kierangillblueberry commented on June 20, 2024

I just tried every combination of the concurrency options available to me:

multiprocessing,greenlet,thread
multiprocessing,greenlet
multiprocessing,thread
greenlet,multiprocessing
greenlet,thread
thread,multiprocessing
thread,greenlet

I am still unable to collect coverage. gevent and eventlet weren't dependencies of anything I am using so I didn't try them.

from channels.

kierangillblueberry avatar kierangillblueberry commented on June 20, 2024

@carltongibson I've created a smaller reproduction here: https://github.com/kierangillblueberry/code-coverage-ChannelsLiveServerTestCase_small

from channels.

carltongibson avatar carltongibson commented on June 20, 2024

Thanks @kierangillblueberry 👀

from channels.

kierangillblueberry avatar kierangillblueberry commented on June 20, 2024

Hey @carltongibson, following up on this. I can also take a stab at this fix but I'm not sure where to start. Any pointers would be helpful! Also happy to hop on a call if you think it'd be helpful.

from channels.

carltongibson avatar carltongibson commented on June 20, 2024

Hi @kierangillblueberry, I haven't had a chance to sit down with it to be honest. First pass would be to see if we can pick down exactly what's happening.

from channels.

carltongibson avatar carltongibson commented on June 20, 2024

parallel = True

Q: does coverage work running with just a single process (I guess yes)?

from channels.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.