Giter Club home page Giter Club logo

Comments (6)

vaind avatar vaind commented on June 12, 2024 1

I've looked into this multiple times and logically, the test seems sound to me - I have no clue how that condition could be failing. Can someone else have a look at the code? I'm likely missing some c#-related detail that comes into play here.

from sentry-dotnet.

jamescrosswell avatar jamescrosswell commented on June 12, 2024

Related:

from sentry-dotnet.

jamescrosswell avatar jamescrosswell commented on June 12, 2024

Still getting this all over the place (e.g. here). I get this pretty frequenly on my local machine as well (so not just a CI thing).

I think we should disable this test until we can work out what's going on and fix it.

from sentry-dotnet.

jamescrosswell avatar jamescrosswell commented on June 12, 2024

I've looked into this multiple times and logically, the test seems sound to me - I have no clue how that condition could be failing. Can someone else have a look at the code? I'm likely missing some c#-related detail that comes into play here.

Hm, as you say, logically it all looks OK.

The only theoretical situation in which I could imagine the test doing what it's doing is if this line doesn't throw an exception:

if (startupTimeout != TimeSpan.Zero && !_sessionTask.Wait(startupTimeout))

In that scenario, the constructor might return an instance before any exception from the Task.Wait was thrown... I guess that could happen if the work being done by _sessionTask didn't get scheduled within the timeout (in this case 10 seconds, so that seems highly improbably). And even if that was happening, we'd expect to see the log message from:

options.LogWarning("Profiler session startup took longer then the given timeout {0:c}. Profilling will start once the first event is received.", startupTimeout);

from sentry-dotnet.

jamescrosswell avatar jamescrosswell commented on June 12, 2024

I get this pretty frequenly on my local machine as well (so not just a CI thing).

One caveat in the comment on the PR... we're not expecting that PR to resolve this outside of CI. If this is resolved in CI but continues to be a problem on local machines, that at least confirms the source of the problem and we can circle back to remove the TestEnvironment check (factory.StartupTimedOut.Should().BeTrue() should be enough):

Skip.If(TestEnvironment.IsGitHubActions, "Session sometimes takes too long to start in CI.");

from sentry-dotnet.

jamescrosswell avatar jamescrosswell commented on June 12, 2024

We haven't had any trouble for a while, but did run into this today:
image

Nothing to do yet, I don't think... once could just be some twighlight zone anomaly but if it starts happening regularly again, we may need to reopen the case.

from sentry-dotnet.

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.