Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-32815

test main.func_sformat Locale + test failures under Fedora 39 (fmt-10.0.0+)

Details

    Description

      Locale failure

      CURRENT_TEST: main.func_sformat
      --- /home/buildbot/amd64-fedora-39/build/mysql-test/main/func_sformat.result	2023-11-15 03:59:41.000000000 +0000
      +++ /home/buildbot/amd64-fedora-39/build/mysql-test/main/func_sformat.reject	2023-11-15 17:24:47.059690135 +0000
      @@ -212,7 +212,7 @@
       #
       select sformat('Num {:L}', 13800000000);
       sformat('Num {:L}', 13800000000)
      -Num 13,800,000,000
      +Num 13800000000
       select sformat('Num [{:20}]', 42);
       sformat('Num [{:20}]', 42)
       Num [                  42]
      

      And trivially error message changes in fmt (10.0.0):

      @@ -316,7 +316,7 @@
       sformat('Test {:c}', 'word')
       NULL
       Warnings:
      -Warning	4183	SFORMAT error: invalid type specifier
      +Warning	4183	SFORMAT error: invalid format specifier
       select sformat('Test {one} {two} {three}', 1, 2, 3);
       sformat('Test {one} {two} {three}', 1, 2, 3)
       NULL
      @@ -341,52 +341,52 @@
       sformat('Number {:.2d}', 42)
       NULL
       Warnings:
      -Warning	4183	SFORMAT error: precision not allowed for this argument type
      +Warning	4183	SFORMAT error: invalid format specifier
       select sformat('You scored {:.0%}', 0.25);
       sformat('You scored {:.0%}', 0.25)
       NULL
       Warnings:
      -Warning	4183	SFORMAT error: invalid type specifier
      +Warning	4183	SFORMAT error: invalid format specifier
       select sformat('You scored {:%}', 0.25);
       sformat('You scored {:%}', 0.25)
       NULL
       Warnings:
      -Warning	4183	SFORMAT error: invalid type specifier
      +Warning	4183	SFORMAT error: invalid format specifier
       select sformat('The price is {:f} dollars.', 45);
       sformat('The price is {:f} dollars.', 45)
       NULL
       Warnings:
      -Warning	4183	SFORMAT error: invalid type specifier
      +Warning	4183	SFORMAT error: invalid format specifier
       select sformat('The price is {:.2f} dollars.', 45);
       sformat('The price is {:.2f} dollars.', 45)
       NULL
       Warnings:
      -Warning	4183	SFORMAT error: precision not allowed for this argument type
      +Warning	4183	SFORMAT error: invalid format specifier
       select sformat('We have {:E} chickens.', 5);
       sformat('We have {:E} chickens.', 5)
       NULL
       Warnings:
      -Warning	4183	SFORMAT error: invalid type specifier
      +Warning	4183	SFORMAT error: invalid format specifier
       select sformat('We have {:e} chickens.', 5);
       sformat('We have {:e} chickens.', 5)
       NULL
       Warnings:
      -Warning	4183	SFORMAT error: invalid type specifier
      +Warning	4183	SFORMAT error: invalid format specifier
       select sformat('The universe is {:,} years old.', 13800000000);
       sformat('The universe is {:,} years old.', 13800000000)
       NULL
       Warnings:
      -Warning	4183	SFORMAT error: invalid type specifier
      +Warning	4183	SFORMAT error: invalid format specifier
       select sformat('The universe is {:_} years old.', 13800000000);
       sformat('The universe is {:_} years old.', 13800000000)
       NULL
       Warnings:
      -Warning	4183	SFORMAT error: invalid type specifier
      +Warning	4183	SFORMAT error: invalid format specifier
       select sformat('String {:-}', 'hello');
       sformat('String {:-}', 'hello')
       NULL
       Warnings:
      -Warning	4183	SFORMAT error: format specifier requires numeric argument
      +Warning	4183	SFORMAT error: invalid format specifier
       #
       # Table Format Test Cases
       #
      @@ -416,7 +416,7 @@
       sformat('{:p}', '50')
       NULL
       Warnings:
      -Warning	4183	SFORMAT error: invalid type specifier
      +Warning	4183	SFORMAT error: invalid format specifier
       #
       # ucs2 test
       #
      @@ -449,7 +449,7 @@
       sformat("={:d}=", ?)
       NULL
       Warnings:
      -Warning	4183	SFORMAT error: invalid type specifier
      +Warning	4183	SFORMAT error: invalid format specifier
       #
       # MDEV-26691 SFORMAT: Pass down FLOAT as FLOAT, without upcast to DOUBLE
       #
      

      Attachments

        Issue Links

          Activity

            alice Alice Sherepa added a comment -

            https://buildbot.mariadb.org/#/builders/595/builds/430/steps/7/logs/stdio

            [bb-11.2-release Revision hash: e6d1dbb5b64d824c19e1df8c5d15d284b0d015ee]
             
            main.func_sformat                        w5 [ fail ]
                    Test ended at 2023-11-15 14:39:35
             
            CURRENT_TEST: main.func_sformat
            --- /home/buildbot/amd64-fedora-39/build/mysql-test/main/func_sformat.result	2023-11-15 13:24:01.000000000 +0000
            +++ /home/buildbot/amd64-fedora-39/build/mysql-test/main/func_sformat.reject	2023-11-15 14:39:35.542787084 +0000
            @@ -212,7 +212,7 @@
             #
             select sformat('Num {:L}', 13800000000);
             sformat('Num {:L}', 13800000000)
            -Num 13,800,000,000
            +Num 13800000000
             select sformat('Num [{:20}]', 42);
             sformat('Num [{:20}]', 42)
             Num [                  42]
            @@ -316,7 +316,7 @@
             sformat('Test {:c}', 'word')
             NULL
             Warnings:
            -Warning	4183	SFORMAT error: invalid type specifier
            +Warning	4183	SFORMAT error: invalid format specifier
             select sformat('Test {one} {two} {three}', 1, 2, 3);
             sformat('Test {one} {two} {three}', 1, 2, 3)
             NULL
            @@ -341,52 +341,52 @@
             sformat('Number {:.2d}', 42)
             NULL
             Warnings:
            -Warning	4183	SFORMAT error: precision not allowed for this argument type
            +Warning	4183	SFORMAT error: invalid format specifier
             select sformat('You scored {:.0%}', 0.25);
             sformat('You scored {:.0%}', 0.25)
             NULL
             Warnings:
            -Warning	4183	SFORMAT error: invalid type specifier
            +Warning	4183	SFORMAT error: invalid format specifier
             select sformat('You scored {:%}', 0.25);
             sformat('You scored {:%}', 0.25)
             NULL
             Warnings:
            -Warning	4183	SFORMAT error: invalid type specifier
            +Warning	4183	SFORMAT error: invalid format specifier
             select sformat('The price is {:f} dollars.', 45);
             sformat('The price is {:f} dollars.', 45)
             NULL
             Warnings:
            -Warning	4183	SFORMAT error: invalid type specifier
            +Warning	4183	SFORMAT error: invalid format specifier
             select sformat('The price is {:.2f} dollars.', 45);
             sformat('The price is {:.2f} dollars.', 45)
             NULL
             Warnings:
            -Warning	4183	SFORMAT error: precision not allowed for this argument type
            +Warning	4183	SFORMAT error: invalid format specifier
             select sformat('We have {:E} chickens.', 5);
             sformat('We have {:E} chickens.', 5)
             NULL
             Warnings:
            -Warning	4183	SFORMAT error: invalid type specifier
            +Warning	4183	SFORMAT error: invalid format specifier
             select sformat('We have {:e} chickens.', 5);
             sformat('We have {:e} chickens.', 5)
             NULL
             Warnings:
            -Warning	4183	SFORMAT error: invalid type specifier
            +Warning	4183	SFORMAT error: invalid format specifier
             select sformat('The universe is {:,} years old.', 13800000000);
             sformat('The universe is {:,} years old.', 13800000000)
             NULL
             Warnings:
            -Warning	4183	SFORMAT error: invalid type specifier
            +Warning	4183	SFORMAT error: invalid format specifier
             select sformat('The universe is {:_} years old.', 13800000000);
             sformat('The universe is {:_} years old.', 13800000000)
             NULL
             Warnings:
            -Warning	4183	SFORMAT error: invalid type specifier
            +Warning	4183	SFORMAT error: invalid format specifier
             select sformat('String {:-}', 'hello');
             sformat('String {:-}', 'hello')
             NULL
             Warnings:
            -Warning	4183	SFORMAT error: format specifier requires numeric argument
            +Warning	4183	SFORMAT error: invalid format specifier
             #
             # Table Format Test Cases
             #
            @@ -416,7 +416,7 @@
             sformat('{:p}', '50')
             NULL
             Warnings:
            -Warning	4183	SFORMAT error: invalid type specifier
            +Warning	4183	SFORMAT error: invalid format specifier
             #
             # ucs2 test
             #
            @@ -449,7 +449,7 @@
             sformat("={:d}=", ?)
             NULL
             Warnings:
            -Warning	4183	SFORMAT error: invalid type specifier
            +Warning	4183	SFORMAT error: invalid format specifier
             #
             # MDEV-26691 SFORMAT: Pass down FLOAT as FLOAT, without upcast to DOUBLE
             #
             
            mysqltest: Result length mismatch
            

            alice Alice Sherepa added a comment - https://buildbot.mariadb.org/#/builders/595/builds/430/steps/7/logs/stdio [bb-11.2-release Revision hash: e6d1dbb5b64d824c19e1df8c5d15d284b0d015ee]   main.func_sformat w5 [ fail ] Test ended at 2023-11-15 14:39:35   CURRENT_TEST: main.func_sformat --- /home/buildbot/amd64-fedora-39/build/mysql-test/main/func_sformat.result 2023-11-15 13:24:01.000000000 +0000 +++ /home/buildbot/amd64-fedora-39/build/mysql-test/main/func_sformat.reject 2023-11-15 14:39:35.542787084 +0000 @@ -212,7 +212,7 @@ # select sformat('Num {:L}', 13800000000); sformat('Num {:L}', 13800000000) -Num 13,800,000,000 +Num 13800000000 select sformat('Num [{:20}]', 42); sformat('Num [{:20}]', 42) Num [ 42] @@ -316,7 +316,7 @@ sformat('Test {:c}', 'word') NULL Warnings: -Warning 4183 SFORMAT error: invalid type specifier +Warning 4183 SFORMAT error: invalid format specifier select sformat('Test {one} {two} {three}', 1, 2, 3); sformat('Test {one} {two} {three}', 1, 2, 3) NULL @@ -341,52 +341,52 @@ sformat('Number {:.2d}', 42) NULL Warnings: -Warning 4183 SFORMAT error: precision not allowed for this argument type +Warning 4183 SFORMAT error: invalid format specifier select sformat('You scored {:.0%}', 0.25); sformat('You scored {:.0%}', 0.25) NULL Warnings: -Warning 4183 SFORMAT error: invalid type specifier +Warning 4183 SFORMAT error: invalid format specifier select sformat('You scored {:%}', 0.25); sformat('You scored {:%}', 0.25) NULL Warnings: -Warning 4183 SFORMAT error: invalid type specifier +Warning 4183 SFORMAT error: invalid format specifier select sformat('The price is {:f} dollars.', 45); sformat('The price is {:f} dollars.', 45) NULL Warnings: -Warning 4183 SFORMAT error: invalid type specifier +Warning 4183 SFORMAT error: invalid format specifier select sformat('The price is {:.2f} dollars.', 45); sformat('The price is {:.2f} dollars.', 45) NULL Warnings: -Warning 4183 SFORMAT error: precision not allowed for this argument type +Warning 4183 SFORMAT error: invalid format specifier select sformat('We have {:E} chickens.', 5); sformat('We have {:E} chickens.', 5) NULL Warnings: -Warning 4183 SFORMAT error: invalid type specifier +Warning 4183 SFORMAT error: invalid format specifier select sformat('We have {:e} chickens.', 5); sformat('We have {:e} chickens.', 5) NULL Warnings: -Warning 4183 SFORMAT error: invalid type specifier +Warning 4183 SFORMAT error: invalid format specifier select sformat('The universe is {:,} years old.', 13800000000); sformat('The universe is {:,} years old.', 13800000000) NULL Warnings: -Warning 4183 SFORMAT error: invalid type specifier +Warning 4183 SFORMAT error: invalid format specifier select sformat('The universe is {:_} years old.', 13800000000); sformat('The universe is {:_} years old.', 13800000000) NULL Warnings: -Warning 4183 SFORMAT error: invalid type specifier +Warning 4183 SFORMAT error: invalid format specifier select sformat('String {:-}', 'hello'); sformat('String {:-}', 'hello') NULL Warnings: -Warning 4183 SFORMAT error: format specifier requires numeric argument +Warning 4183 SFORMAT error: invalid format specifier # # Table Format Test Cases # @@ -416,7 +416,7 @@ sformat('{:p}', '50') NULL Warnings: -Warning 4183 SFORMAT error: invalid type specifier +Warning 4183 SFORMAT error: invalid format specifier # # ucs2 test # @@ -449,7 +449,7 @@ sformat("={:d}=", ?) NULL Warnings: -Warning 4183 SFORMAT error: invalid type specifier +Warning 4183 SFORMAT error: invalid format specifier # # MDEV-26691 SFORMAT: Pass down FLOAT as FLOAT, without upcast to DOUBLE #   mysqltest: Result length mismatch

            Upstream bug. Already fixed upstream.

            MariaDB will work around it by checking for this in libfmt.cmake and downloading a working version of libfmt (8.0.1 as of now) if the system one has this bug.

            serg Sergei Golubchik added a comment - Upstream bug. Already fixed upstream. MariaDB will work around it by checking for this in libfmt.cmake and downloading a working version of libfmt (8.0.1 as of now) if the system one has this bug.

            People

              serg Sergei Golubchik
              danblack Daniel Black
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.