Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-127838

rubygem-pg test failures related to encoding [c9s]

Linking RHIVOS CVEs to...Migration: Automation ...RHELPRIO AssignedTeam ...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • None
    • None
    • rhel-pt-ruby-nodejs
    • None
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • Unspecified
    • Unspecified
    • Unspecified
    • None

      This issue comes from the <https://gitlab.com/redhat/centos-stream/rpms/ruby/-/merge_requests/66#note_2872974731>.

      When also running the scratch build with the rubygem-pg-1.2.3-7.el9.src.rpm on the latest c9s branch, I got the following test failures.

      https://kojihub.stream.centos.org/koji/taskinfo?taskID=6102519

      -:1605: warning: regular expression has redundant nested repeat operator '*?': /^NOTICE:.*??????????????????/
      -:1605: warning: regular expression has redundant nested repeat operator '*?': /^NOTICE:.*??????????????????/
      -:1605: warning: regular expression has redundant nested repeat operator '*?': /^NOTICE:.*??????????????????/
      -:1605: warning: regular expression has redundant nested repeat operator '*?': /^NOTICE:.*??????????????????/
      -:1605: warning: regular expression has redundant nested repeat operator '*?': /^NOTICE:.*??????????????????/
      -:1605: warning: regular expression has redundant nested repeat operator '*?': /^NOTICE:.*??????????????????/
      -:1605: warning: regular expression has redundant nested repeat operator '*?': /^NOTICE:.*??????????????????/
      -:1605: warning: regular expression has redundant nested repeat operator '*?': /^NOTICE:.*??????????????????/
      -:1605: warning: regular expression has redundant nested repeat operator '*?': /^NOTICE:.*??????????????????/
      -:1605: warning: regular expression has redundant nested repeat operator '*?': /^NOTICE:.*??????????????????/
      -:1605: warning: regular expression has redundant nested repeat operator '*?': /^NOTICE:.*??????????????????/
      -:1605: warning: regular expression has redundant nested repeat operator '*?': /^NOTICE:.*??????????????????/
      -:1605: warning: regular expression has redundant nested repeat operator '*?': /^NOTICE:.*??????????????????/
      -:1605: warning: regular expression has redundant nested repeat operator '*?': /^NOTICE:.*??????????????????/
      -:1605: warning: regular expression has redundant nested repeat operator '*?': /^NOTICE:.*??????????????????/
      -:1605: warning: regular expression has redundant nested repeat operator '*?': /^NOTICE:.*??????????????????/
      -:1605: warning: regular expression has redundant nested repeat operator '*?': /^NOTICE:.*??????????????????/
      -:1605: warning: regular expression has redundant nested repeat operator '*?': /^NOTICE:.*??????????????????/
      Failures:
        1) running with sync_* methods PG::Connection multinationalization support rubyforge #22925: m17n support uses the previous string encoding for escaped string
           Failure/Error: expect( escaped ).to eq( "M??hre to ''scape".encode(Encoding::ISO8859_1) )
             expected: "M\xF6hre to ''scape"
                  got: "M\x8D hre to ''scape"
             (compared using ==)
           # ./spec/pg/connection_spec.rb:1337:in `block (5 levels) in <top (required)>'
           # ./spec/helpers.rb:30:in `block in included'
        2) PG::Connection multinationalization support rubyforge #22925: m17n support uses the previous string encoding for escaped string
           Failure/Error: expect( escaped ).to eq( "M??hre to ''scape".encode(Encoding::ISO8859_1) )
             expected: "M\xF6hre to ''scape"
                  got: "M\x8D hre to ''scape"
             (compared using ==)
           # ./spec/pg/connection_spec.rb:1337:in `block (4 levels) in <top (required)>'
           # ./spec/helpers.rb:30:in `block in included'
      Finished in 1 minute 10.46 seconds (files took 0.1823 seconds to load)
      694 examples, 2 failures
      

      According to the conversation, the failures comes from the changes in PostgreSQL, and the upstream PR <https://github.com/ged/ruby-pg/pull/629> may fix the failures.

              ruby-maint ruby-maint
              jaruga Jun Aruga
              ruby-maint ruby-maint
              rhel-ruby-qe bot rhel-ruby-qe bot
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated: