Skip to content

Testsuite fails on s390x with GHC 9.0.2 #97

Closed

Description

@iliastsi

Testsuite fails on s390x, ppc64 and sparc64 with GHC 9.0.2 (see https://buildd.debian.org/status/logs.php?pkg=haskell-unicode-data&ver=0.3.1-1) with the following error:

Unicode.Char
  Unicode blocks
    Characters not in any block are unassigned
    Characters are in the definition of their corresponding block FAILED [1]
    Characters in a block definition have the corresponding block FAILED [2]
  Unicode general categories
    generalCategory
      # PENDING: Incompatible GHC Unicode version
  Character classification
    isAlpha
      # PENDING: Incompatible GHC Unicode version
    isAlphaNum
      # PENDING: Incompatible GHC Unicode version
    isControl
      # PENDING: Incompatible GHC Unicode version
    isLetter
      # PENDING: Incompatible GHC Unicode version
    isMark
      # PENDING: Incompatible GHC Unicode version
    isPrint
      # PENDING: Incompatible GHC Unicode version
    isPunctuation
      # PENDING: Incompatible GHC Unicode version
    isSeparator
      # PENDING: Incompatible GHC Unicode version
    isSpace
      # PENDING: Incompatible GHC Unicode version
    isSymbol
      # PENDING: Incompatible GHC Unicode version
  Case
    isLower
      # PENDING: Incompatible GHC Unicode version
    isUpper
      # PENDING: Incompatible GHC Unicode version
    toLower
      # PENDING: Incompatible GHC Unicode version
    toLowerString
      Examples
      Common mapping should match simple one
        # PENDING: Incompatible GHC Unicode version
      Idempotency of 'foldMap toLowerString'
    toUpper
      # PENDING: Incompatible GHC Unicode version
    toUpperString
      Examples
      Common mapping should match simple one
        # PENDING: Incompatible GHC Unicode version
      Idempotency of 'foldMap toUpperString'
    toTitle
      # PENDING: Incompatible GHC Unicode version
    toTitleString
      Examples
      Common mapping should match simple one
        # PENDING: Incompatible GHC Unicode version
    toCaseFoldString
      Examples
      Idempotency of 'foldMap toCaseFoldString'
  Numeric
    isNumber
      # PENDING: Incompatible GHC Unicode version
    isNumber implies a numeric value

Failures:

  test/Unicode/CharSpec.hs:65:30: 
  1) Unicode.Char, Unicode blocks, Characters are in the definition of their corresponding block
       Character “'\128'” is not in the block “BasicLatin”.

  To rerun use: --match "/Unicode.Char/Unicode blocks/Characters are in the definition of their corresponding block/"

  test/Unicode/CharSpec.hs:75:22: 
  2) Unicode.Char, Unicode blocks, Characters in a block definition have the corresponding block
       Block is different for “'\128'”. Expected: “Just Latin1Supplement” but got: “Just BasicLatin”.

  To rerun use: --match "/Unicode.Char/Unicode blocks/Characters in a block definition have the corresponding block/"

The previous version of this package (0.3.0) built fine on these architectures (see https://buildd.debian.org/status/logs.php?pkg=haskell-unicode-data&ver=0.3.0-2). It appears version 0.3.1 is broken on 64-bit big-endian architectures. Can you please help us identify the problem?

Activity

  1. wismill commented on Dec 1, 2022

    @wismill
    Collaborator

    Ah, these undocumented primops… Could you try out #98? If you have the opportunity, could you try it with both GHC 9.0.2 and 9.2.5?

    Unfortunately I do not have access to a big-endian machine to test this.

  2. harendra-kumar commented on Dec 1, 2022

    @harendra-kumar
    Member
  3. harendra-kumar commented on Dec 1, 2022

    @harendra-kumar
    Member

    Seems like it is testing the hackage release rather than repo code? curl -s -L https://hackage.haskell.org/package/unicode-data-0.3.0.tar.gz | tar xz

  4. iliastsi commented on Dec 1, 2022

    @iliastsi
    Author

    @wismill Thanks for taking a look. I tried your PR with GHC 9.0.2 on s390x and failed with the same errors:

    Failures:
    
      test/Unicode/CharSpec.hs:66:30: 
      1) Unicode.Char, Unicode blocks, Characters are in the definition of their corresponding block
           Character “'\128'” is not in the block “BasicLatin”.
    
      To rerun use: --match "/Unicode.Char/Unicode blocks/Characters are in the definition of their corresponding block/"
    
      test/Unicode/CharSpec.hs:76:22: 
      2) Unicode.Char, Unicode blocks, Characters in a block definition have the corresponding block
           Block is different for “'\128'”. Expected: “Just Latin1Supplement” but got: “Just BasicLatin”.
    
      To rerun use: --match "/Unicode.Char/Unicode blocks/Characters in a block definition have the corresponding block/"
    
    Randomized with seed 773114958
    
  5. wismill commented on Dec 1, 2022

    @wismill
    Collaborator

    I think I got it: @iliastsi could you give it another try?

  6. swt2c commented on Dec 1, 2022

    @swt2c

    I can confirm that 02c83f0 passes on s390x:

    Running 1 test suites...
    Test suite test: RUNNING...
    
    Unicode.Char
      Unicode blocks
        Characters not in any block are unassigned
        Characters are in the definition of their corresponding block
        Characters in a block definition have the corresponding block
      Unicode general categories
        generalCategory
          # PENDING: Incompatible GHC Unicode version
      Character classification
        isAlpha
          # PENDING: Incompatible GHC Unicode version
        isAlphaNum
          # PENDING: Incompatible GHC Unicode version
        isControl
          # PENDING: Incompatible GHC Unicode version
        isLetter
          # PENDING: Incompatible GHC Unicode version
        isMark
          # PENDING: Incompatible GHC Unicode version
        isPrint
          # PENDING: Incompatible GHC Unicode version
        isPunctuation
          # PENDING: Incompatible GHC Unicode version
        isSeparator
          # PENDING: Incompatible GHC Unicode version
        isSpace
          # PENDING: Incompatible GHC Unicode version
        isSymbol
          # PENDING: Incompatible GHC Unicode version
      Case
        isLower
          # PENDING: Incompatible GHC Unicode version
        isUpper
          # PENDING: Incompatible GHC Unicode version
        toLower
          # PENDING: Incompatible GHC Unicode version
        toLowerString
          Examples
          Common mapping should match simple one
            # PENDING: Incompatible GHC Unicode version
          Idempotency of 'foldMap toLowerString'
        toUpper
          # PENDING: Incompatible GHC Unicode version
        toUpperString
          Examples
          Common mapping should match simple one
            # PENDING: Incompatible GHC Unicode version
          Idempotency of 'foldMap toUpperString'
        toTitle
          # PENDING: Incompatible GHC Unicode version
        toTitleString
          Examples
          Common mapping should match simple one
            # PENDING: Incompatible GHC Unicode version
        toCaseFoldString
          Examples
          Idempotency of 'foldMap toCaseFoldString'
      Numeric
        isNumber
          # PENDING: Incompatible GHC Unicode version
        isNumber implies a numeric value
    
    Finished in 0.7865 seconds
    31 examples, 0 failures, 20 pending
    Test suite test: PASS
    Test suite logged to: dist-ghc/test/unicode-data-0.3.1-test.log
    1 of 1 test suites (1 of 1 test cases) passed.
    
  7. wismill commented on Dec 17, 2022

    @wismill
    Collaborator

    unicode-data 0.4.0.1 and unicode-data-scripts 0.2.0.1 have been released to fix this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions