-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Test failure: System.Runtime.Tests.ProfileOptimizationTest/ProfileOptimization_CheckFileExists #27147
Comments
@MarcoRossignoli @brianrob if profiling failed in this test for some reason, would it have failed before this point, or been silent? Or maybe we just need to sleep and retry a bit because profiling hasn't started quick enough? |
@brianrob @danmosemsft strange...first time i see that...is this first fail?However...if you agree i could add 5 second sleep between |
@MarcoRossignoli yes a sleep/retry would be good, but please write it such that it does not sleep in the normal case, only in the failure case. |
@MarcoRossignoli here's a hit, again on RedHat69 release
I guess this means that it successfully wrote "42" to the file The two asserts are
The previous failure line was the first one, now it's the second one. Line numbers can be one-off for whatever reason (this is release) so it's not clear which assert fired. It might be worth logging a message after successfully writing to the file, and adding strings to these two asserts so we'll know for sure which is firing. |
I'll update the test |
I think this is the last consistently occurring failure in the daily test runs. Every run on RedHat 6.9 fails. RedHat 6.9 is interesting because it's only test leg that runs on a single core VM, but I wasn't able to repro running with For reference, here's the output from the latest failure:
|
https://github.com/dotnet/corefx/blob/master/src/System.Runtime.Extensions/tests/System/Runtime/ProfileOptimization.netcoreapp.cs#L48 |
Until we know, we should disable this test against this issue number. |
@brianrob is it possible the API is not closing the file synchronously? |
Adding @noahfalk who owns this feature now. The profile should be closed by the time the process exits. Runtime shutdown gets blocked to write the file out. If it doesn't exist by the time the process is actually gone then it's possible that there is a delay in the file actually being written out to disk, but I would expect the OS to handle this if you ask to open the file. |
Could be a Redhat quirk... |
I used to own it, adding @kouvel who is the current owner |
Fixes #423 Closes dotnet/corefx#24525 Closes dotnet/corefx#37739 Closes dotnet/corefx#31792
Opened on behalf of @Sunny-pu
The test
System.Runtime.Tests.ProfileOptimizationTest/ProfileOptimization_CheckFileExists
has failed.Assert.True() Failure
Expected: True
Actual: False
Build : 3.0 - 20180816.01 (Core Tests)
Failing configurations:
Details:https://mc.dot.net/#/product/netcore/30/source/official~2Fcorefx~2Fmaster~2F/type/test~2Ffunctional~2Fcli~2F/build/20180816.01/workItem/System.Runtime.Extensions.Tests/analysis/xunit/System.Runtime.Tests.ProfileOptimizationTest~2FProfileOptimization_CheckFileExists
The text was updated successfully, but these errors were encountered: