Skip to content

[wasm] System.Text.Json tests failing on windows/helix #52106

Closed

Description

@radekdoulik

There are at least 2 issues:

  • Line ending, where we compare json text format after round trip and line ending differs (CFLF vs LF)
  • the tests timeouts on Helix - might be performance related

Example failure:

  fail: [FAIL] System.Text.Json.Tests.JsonDocumentWriteTests.ReadWriteEscapedPropertyNames(indented: True)
  info: Assert.Equal() Failure
  info:            ↓ (pos 1)
  info: Expected: {\r\n  "pizza": 1,\r\n  "hello\u003c\u003e": 2
  info: Actual:   {\n  "pizza": 1,\n  "hello\u003c\u003e": 2,\n
  info:            ↑ (pos 1)
  info:    at System.Text.Json.JsonTestHelper.AssertContentsAgainstJsonNet(String expectedValue, String value, Boolean skipSpecialRules) in C:\Users\rodo\git\wa-tests\src\libraries\System.Text.Json\tests\System.Text.Json.Tests\JsonTestHelper.cs:line 744
  info:    at System.Text.Json.JsonTestHelper.AssertContents(String expectedValue, ArrayBufferWriter`1 buffer, Boolean skipSpecialRules) in C:\Users\rodo\git\wa-tests\src\libraries\System.Text.Json\tests\System.Text.Json.Tests\JsonTestHelper.cs:line 720
  info:    at System.Text.Json.Tests.JsonDomWriteTests.WriteComplexValue(Boolean indented, String jsonIn, String expectedIndent, String expectedMinimal) in C:\Users\rodo\git\wa-tests\src\libraries\System.Text.Json\tests\System.Text.Json.Tests\JsonElementWriteTests.cs:line 1244
  info:    at System.Text.Json.Tests.JsonDomWriteTests.ReadWriteEscapedPropertyNames(Boolean indented) in C:\Users\rodo\git\wa-tests\src\libraries\System.Text.Json\tests\System.Text.Json.Tests\JsonElementWriteTests.cs:line 651
  info:    at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) in C:\Users\rodo\git\wa-tests\src\mono\System.Private.CoreLib\src\System\Reflection\RuntimeMethodInfo.cs:line 378

Activity

  1. self-assigned this
    on Apr 30, 2021
  2. ghost added
    untriaged
    on Apr 30, 2021
  3. changed the title [-][wasm] System.Text.Json tests failing on windows[/-] [+][wasm] System.Text.Json tests failing on windows/helix[/+] on Apr 30, 2021
  4. added a commit that references this issue on Apr 30, 2021
  5. ghost added
    in-pr
    on Apr 30, 2021
  6. removed
    untriaged
    on May 5, 2021
  7. added this to the 6.0.0 milestone on May 5, 2021
  8. ghost removed
    in-pr
    on May 10, 2021
  9. ghost locked as resolved and limited conversation to collaborators on Jun 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

arch-wasmarea-Infrastructure-mono

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions