[MDEV-32815] test main.func_sformat Locale + test failures under Fedora 39 (fmt-10.0.0+) Created: 2023-11-16  Updated: 2024-02-03  Resolved: 2024-02-03

Status: Closed
Project: MariaDB Server
Component/s: Server
Affects Version/s: 10.10.7
Fix Version/s: 10.11.7, 11.0.5, 11.1.4, 11.2.3

Type: Bug Priority: Critical
Reporter: Daniel Black Assignee: Sergei Golubchik
Resolution: Fixed Votes: 0
Labels: tests

Issue Links:
Blocks
blocks MDEV-33073 always green buildbot Open

 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
 #



 Comments   
Comment by Alice Sherepa [ 2023-11-17 ]

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

Generated at Thu Feb 08 10:34:14 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.