Skip to content

GetUnicode_Invalid/GetAscii_Invalid test failures on Fedora 40 #100287

Closed

Description

@tmds

Some System.Globalization.Extensions.Tests tests are failing on Fedora 40.
Fedora 40 has libicu 74.2-1.

  • GetUnicode_Invalid: 158 out of 5421 failed
  • GetAscii_Invalid: 158 out of 5448 failed

See testResults.xml.txt

cc @tarekgh @omajid

Activity

  1. dotnet-policy-service commented on Mar 26, 2024

    @dotnet-policy-service
    Contributor

    Tagging subscribers to this area: @dotnet/area-system-globalization
    See info in area-owners.md if you want to be subscribed.

  2. added
    untriaged
    on Mar 26, 2024
  3. added this to the 9.0.0 milestone on Mar 26, 2024
  4. removed
    untriaged
    on Mar 26, 2024
  5. tmds commented on Jul 12, 2024

    @tmds
    MemberAuthor

    @tarekgh do you know what the root cause is for the test failures?

    Here is one of the cases that fails:

    Error: Expected IdnMapping.GetAscii("\u226E\uD835\uDFD5\uFF0E\u8B16Ss\u226F") to throw an ArgumentException. Line Number: 5448 [/var/home/tmds/repos/runtime/src/libraries/System.Runtime/tests/System.Globalization.Extensions.Tests/System.Globalization.Extensions.Tests.csproj]
    /var/home/tmds/repos/runtime/src/libraries/System.Runtime/tests/System.Globalization.Extensions.Tests/IdnMapping/IdnMappingIdnaConformanceTests.cs(88): error VSTEST1: [5251]: Item:  Unicode_13_0_IdnaTest { ASCIIResult = ConformanceIdnaTestResult { ResultType = ToAscii, StatusValue = "[B2, B3, B6, V6]", Success = False, Value = "xn----ufo9661d.xn--r5gy929fhm4f" }, LineNumber = 6126, Source = "xn----ufo9661d.xn--r5gy929fhm4f", Type = Nontransitional, UnicodeResult = ConformanceIdnaUnicodeTestResult { ResultType = ToUnicode, StatusValue = "[B2, B3, B6, V6]", Success = False, ValidDomainName = True, Value = "ꡣ-≠.𞤹𐅢ↄ" } }
    
  6. tarekgh commented on Jul 12, 2024

    @tarekgh
    Member

    This test depends on the Unicode IDN data which changes with every new version. Look at https://github.com/dotnet/runtime/tree/main/src/libraries/System.Runtime/tests/System.Globalization.Extensions.Tests/IdnMapping/Data/Unicode_11_0 as example. To fix this, we'll need to pick a new data and tweak it a little to make it pass.

  7. omajid commented on Jul 22, 2024

    @omajid
    Member

    Looks like libicu 74 uses Unicode 15.1: https://icu.unicode.org/download/74. I can look into adding this.

    Do we also need to explicitly add libicu 72/Unicode 15 support? Or libicu 70/Unicode 14 support?

  8. tarekgh commented on Jul 22, 2024

    @tarekgh
    Member

    @omajid we can add both versions to ensure using different ICU versions will work.

    Please note, after porting the test data files, usually we comment some lines which are incompatible with our APIs. The best way to do that is just bring the data as it is, run the test, look at the failed entries and then we comment it. Thanks a lot for willing to help with that.

  9. omajid commented on Jul 22, 2024

    @omajid
    Member

    I just checked things and the tests don't fail on Fedora 39, which has icu 73. Maybe there's no interesting changes in Unicode 14 or 15 that are relevant for our test suite?

  10. added 2 commits that reference this issue on Jul 22, 2024
    5ef4e51
    f0e050d
  11. added a commit that references this issue on Jul 23, 2024
    d8a642f
  12. tmds commented on Jul 25, 2024

    @tmds
    MemberAuthor

    Thanks @omajid!

  13. locked and limited conversation to collaborators on Aug 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions