Skip to content
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

Skipping Json StreamTests.HandleCollectionsAsync test #35927

Closed
steveisok opened this issue May 6, 2020 · 10 comments · Fixed by #67126
Closed

Skipping Json StreamTests.HandleCollectionsAsync test #35927

steveisok opened this issue May 6, 2020 · 10 comments · Fixed by #67126
Labels
area-System.Text.Json disabled-test The test is disabled in source code against the issue runtime-mono specific to the Mono runtime
Milestone

Comments

@steveisok
Copy link
Member

This test fails as a long running test and will be skipped. This issue exists to make sure we address it moving forward.

@steveisok steveisok added area-System.Text.Json disabled-test The test is disabled in source code against the issue runtime-mono specific to the Mono runtime labels May 6, 2020
@ghost
Copy link

ghost commented May 6, 2020

Tagging subscribers to this area: @jozkee
Notify danmosemsft if you want to be subscribed.

@Dotnet-GitSync-Bot Dotnet-GitSync-Bot added the untriaged New issue has not been triaged by the area owner label May 6, 2020
@layomia layomia removed the untriaged New issue has not been triaged by the area owner label May 14, 2020
@layomia layomia added this to the 5.0 milestone May 14, 2020
@layomia
Copy link
Contributor

layomia commented May 14, 2020

Will be disabled in #35568.

@ViktorHofer ViktorHofer changed the title Skipping Json StreamTests.HandleCollectionsAsync test for mono interpreter Skipping Json StreamTests.HandleCollectionsAsync test for mono Sep 30, 2020
@ViktorHofer
Copy link
Member

Hanging again this time on CoreCLR: https://helixre107v0xdeko0k025g8.blob.core.windows.net/dotnet-runtime-refs-pull-43185-merge-1b23d2c75eb24a8891/System.Text.Json.Tests/console.cb4a64bf.log?sv=2019-07-07&se=2020-10-30T02%3A28%3A54Z&sr=c&sp=rl&sig=aoJRcu35I697idbF6olx02wDyhDhgUZE7gRU85kvQlQ%3D

   System.Text.Json.Tests: [Long Running Test] 'System.Text.Json.Serialization.Tests.ConstructorTests_String.Cannot_DeserializeAsync_ObjectWith_Ctor_With_65_Params', Elapsed: 00:03:23
[Long Running Test] 'System.Text.Json.Serialization.Tests.StreamTests.HandleCollectionsAsync', Elapsed: 00:02:03
[Long Running Test] 'System.Text.Json.Tests.JsonDocumentTests.ParseJson_UnseekableStream_Async_BadBOM', Elapsed: 00:11:44
[Long Running Test] 'System.Text.Json.Serialization.Tests.ConstructorTests_Stream.MultipleTypes', Elapsed: 00:11:39
[Long Running Test] 'System.Text.Json.Serialization.Tests.CacheTests.MultipleTypes', Elapsed: 00:07:52
[Long Running Test] 'System.Text.Json.Tests.Utf8JsonWriterTests.Writing3MBBase64Bytes', Elapsed: 00:03:28

@ViktorHofer ViktorHofer changed the title Skipping Json StreamTests.HandleCollectionsAsync test for mono Skipping Json StreamTests.HandleCollectionsAsync test Oct 10, 2020
@safern
Copy link
Member

safern commented Dec 2, 2020

I created an issue for the CoreCLR checked hangs as it is happening pretty often, it needs attention and there are more tests than just HandleCollectionsAsync: #45464

@eiriktsarpalis
Copy link
Member

eiriktsarpalis commented Jul 19, 2021

The test starting hanging in net461 debug test runs, curiously after dfd618d got merged. We might consider either refactoring the test or disabling it for net461 as well. cc @layomia @stephentoub @ericstj

@stephentoub
Copy link
Member

stephentoub commented Jul 19, 2021

curiously after dfd618d got merged

It's because System.Text.Json apparently reaches into Corelib's directory to include:
https://github.com/dotnet/runtime/blob/e0024e22c7761cbbdd10a845f8b0269ea654cbfc/src/libraries/System.Private.CoreLib/src/System/Text/UnicodeDebug.cs

When compiled for .NET 6, where we have the new interpolated string handler for Debug.Assert, this:

private static string ToHexString(uint codePoint) => $"U+{codePoint:X4}";

will only ever be executed when an assert fails.

But pre-.NET 6, the Debug.Assert message strings that access that ToHexString method will invoke it for every assert, whether it passes or fails.

image

@steveharter
Copy link
Member

@eiriktsarpalis can this be closed? It appears UnicodeDebug.cs was reverted in #55954

@eiriktsarpalis
Copy link
Member

#55954 addressed a performance regression that made net461 runs time out, however this particular test is known to time out in other platforms even before that regression got introduced.

We should keep this open for now, @steveisok is it ok if we remove this from 6.0.0 milestone?

@steveisok
Copy link
Member Author

Yes, that is fine to remove the 6 milestone.

@eiriktsarpalis eiriktsarpalis removed this from the 6.0.0 milestone Aug 9, 2021
@eiriktsarpalis eiriktsarpalis added this to the 7.0.0 milestone Aug 9, 2021
@eiriktsarpalis eiriktsarpalis removed their assignment Jan 21, 2022
@ghost ghost added in-pr There is an active PR which will close this issue when it is merged and removed in-pr There is an active PR which will close this issue when it is merged labels Mar 24, 2022
@ghost ghost removed the in-pr There is an active PR which will close this issue when it is merged label Mar 25, 2022
@ghost ghost locked as resolved and limited conversation to collaborators Apr 25, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-System.Text.Json disabled-test The test is disabled in source code against the issue runtime-mono specific to the Mono runtime
Projects
None yet
Development

Successfully merging a pull request may close this issue.

8 participants