Coder Social home page Coder Social logo

Comments (7)

cederstrom avatar cederstrom commented on May 19, 2024 1

@pdeligia You are correct! I just aborted when I got the big red failure message 🤦‍♂️

The test is working fine after the rewrite 👍

from coyote-samples.

pdeligia avatar pdeligia commented on May 19, 2024 1

Thanks @shaya-pb and @cederstrom. Just an update: we managed to identify and fix the issue. Basically the deadlock was happening because some of the assemblies where not rewritten properly (due to the assembly resolution error above), which then caused Coyote to not have full control of all the tasks in the test, resulting into a deadlock. The fix will be available in the next version of Coyote. Will close this issue when that happens.

from coyote-samples.

pdeligia avatar pdeligia commented on May 19, 2024

Thanks for reporting this @cederstrom. I believe this should be benign and just a warning, if you see in the end it still says Done rewriting in 0.427981 sec. The issue arises I believe because it tries to resolve some system-level assemblies such as Microsoft.Extensions.Logging.Abstractions and does not find the location for them, but it should not really matter from the rewriters perspective. Could you try to run the tests after this rewriting step, and see if it still works for you?

from coyote-samples.

shaya-pb avatar shaya-pb commented on May 19, 2024

I think this should be reopened. I'm getting the same error on Windows 10, and the tests are not running correctly either: they're throwing a Unhandled exception 'System.IO.FileNotFoundException' was thrown in 'ImageGalleryTests': Could not load file or assembly 'Microsoft.Extensions.Logging.Abstractions, Version=5.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'. The system cannot find the file specified. exception.

And when I fix that (by moving the dll into the bin\coyote folder; I get the following exception when running the tests: Deadlock detected. Task(0) is waiting for a task to complete, but no other controlled tasks are enabled. - which is not the expected exception, if I'm not mistaken.

from coyote-samples.

pdeligia avatar pdeligia commented on May 19, 2024

Thanks @shaya-pb for reporting, yes let me re-open this issue. This is a bit weird as it was working fine for me last time that I checked. Let us investigate.

Just to make sure, you did coyote rewrite and you were running the test on the rewritten dlls, right? (any rewritten dll should have the IsAssemblyRewrittenAttribute attribute in its metadata, this can be checked with a tool like ildasm or ilspy)

Btw, yea, this is not the expected exception, usually this happens if either (1) the assemblies-under-test have not been rewritten as mentioned above, or (2) there is uncontrolled concurrency (e.g. coming from an assembly that cannot be rewritten such as some system library -- but typically Coyote will report an explicit error saying something about detected uncontrolled concurrency and propose a workaround), or (3) if there is a genuine deadlock (but this should not be the case here).

from coyote-samples.

shaya-pb avatar shaya-pb commented on May 19, 2024

Thanks @pdeligia - I'm not sure if something else isn't going on here with dotnet test and Coyote rewrites. I opened issue microsoft/coyote#219 on Coyote which may be related.

from coyote-samples.

pdeligia avatar pdeligia commented on May 19, 2024

Forgot to close this issue

from coyote-samples.

Related Issues (7)

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.