You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Test passes for all runtime versions we target in the test suite.
Actual Result
Test fails for netcoreapp3.1, netcoreapp3.0, and netcoreapp2.1 only.
[xUnit.net 00:00:08.77] Sentry.Tests.Internals.ProcessInfoTests.Ctor_StartupTimeSimilarToUtcNow [FAIL]
Failed Sentry.Tests.Internals.ProcessInfoTests.Ctor_StartupTimeSimilarToUtcNow [9 ms]
Error Message:
diff isn't less expected 240 seconds: 45848.086737
Expected: True
Actual: False
Stack Trace:
at Sentry.Tests.Internals.ProcessInfoTests.Ctor_StartupTimeSimilarToUtcNow() in /Users/matt/Code/sentry-dotnet/test/Sentry.Tests/Internals/ProcessInfoTests.cs:line 33
--- End of stack trace from previous location where exception was thrown ---
The diff time is > 12 hours, which is not possible when the test fails in a few seconds.
Initial investigation shows that the value of System.Diagnostics.Process.GetCurrentProcess().StartTime is erroneous, and thus our Sentry.Internal.ProcessInfo.StartupTime is bad. This appears to be a regression of dotnet/runtime#19928, which was resolved in .NET Core 2.0. Perhaps this due to the M1 hardware? If so, why does it not also fail on .NET 5.0 and 6.0? Need to dive in deeper to see if something else changed within .NET that would affect this.
Setting options.DetectStartupTime = StartupTimeDetectionMode.Fast avoids this path to pass the test, but that just hides the issue.
The text was updated successfully, but these errors were encountered:
Environment
MacBook Pro with M1 (Apple Silicon) hardware
Steps to Reproduce
Expected Result
Test passes for all runtime versions we target in the test suite.
Actual Result
Test fails for netcoreapp3.1, netcoreapp3.0, and netcoreapp2.1 only.
The diff time is > 12 hours, which is not possible when the test fails in a few seconds.
Initial investigation shows that the value of
System.Diagnostics.Process.GetCurrentProcess().StartTime
is erroneous, and thus ourSentry.Internal.ProcessInfo.StartupTime
is bad. This appears to be a regression of dotnet/runtime#19928, which was resolved in .NET Core 2.0. Perhaps this due to the M1 hardware? If so, why does it not also fail on .NET 5.0 and 6.0? Need to dive in deeper to see if something else changed within .NET that would affect this.Setting
options.DetectStartupTime = StartupTimeDetectionMode.Fast
avoids this path to pass the test, but that just hides the issue.The text was updated successfully, but these errors were encountered: