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
{{ message }}
Repository navigation
GCExtendedTests.GetTotalAllocatedBytes failed on Mono on Ubuntu in CI #2280
Yes, I am looking into it. First thought; is this just failing because mono and the dotnet-core runtime use diffirent object layouts and thus allocate different amounts of memory? The difference is like .4 %
Ah, I see.... We only ever add to the counter, so maybe it is a synchronization error where two threads are clobbering the value. Except the test itself looks single threaded?
Also the test expects the precise value to be lower than the imprecise value, for whatever reason. I'm not sure we guarantee this, or if we do, we do it by accident. Maybe also double check there if we can have same behavior.
Hit in #33028 on netcoreapp5.0-Linux-Debug-arm64-Mono_release. If you are not actively working on this, disable the test on Mono against this issue to keep the CI clean.
Activity
akoeplinger commentedon Jan 28, 2020
@BrzVlad can you please take a look at whether this test makes sense on Mono's sgen?
runtime/src/libraries/System.Runtime/tests/System/GCTests.cs
Line 847 in 2645da6
BrzVlad commentedon Jan 28, 2020
We added this API just recently. It's not clear why it fails this way, it should work. @naricc can you take a look ?
naricc commentedon Jan 28, 2020
Yes, I am looking into it. First thought; is this just failing because mono and the dotnet-core runtime use diffirent object layouts and thus allocate different amounts of memory? The difference is like .4 %
BrzVlad commentedon Jan 28, 2020
This has nothing to do with coreclr. According to the failure, this counter is not monotonic on mono.
naricc commentedon Jan 28, 2020
Ah, I see.... We only ever add to the counter, so maybe it is a synchronization error where two threads are clobbering the value. Except the test itself looks single threaded?
Any way, looking into it.
BrzVlad commentedon Jan 28, 2020
Also the test expects the precise value to be lower than the imprecise value, for whatever reason. I'm not sure we guarantee this, or if we do, we do it by accident. Maybe also double check there if we can have same behavior.
naricc commentedon Jan 28, 2020
So I am a bit confused due to the repo move and all; how do I actually run this test locally?
akoeplinger commentedon Jan 28, 2020
You can follow https://github.com/dotnet/runtime/blob/master/docs/workflow/testing/mono/testing.md and then run the tests in src/libraries/System.Runtime/tests
Note that this is not a consistent failure but only happens occasionally.
danmoseley commentedon Feb 26, 2020
Failed again in CI
https://github.com/dotnet/runtime/pull/32288/checks?check_run_id=468133057
jkotas commentedon Mar 1, 2020
Hit in #33028 on netcoreapp5.0-Linux-Debug-arm64-Mono_release. If you are not actively working on this, disable the test on Mono against this issue to keep the CI clean.
jozkee commentedon Mar 2, 2020
Another hit here: https://github.com/dotnet/runtime/pull/32909/checks?check_run_id=473576884
link to helix log: https://helix.dot.net/api/2019-06-17/jobs/e04b2bda-0110-44a8-80fe-ad77e4a708c1/workitems/System.Runtime.Tests/console
naricc commentedon Mar 2, 2020
I will disable the test this afternoon, if I can't figure it out immediately.
naricc commentedon Sep 24, 2020
Resolve by this change: #42388
[Mono] [GC] Fix TotalBytesAllocated and reenable test (#20427)