-
-
Notifications
You must be signed in to change notification settings - Fork 14.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
postgresql tests fail in pkgsMusl #150930
Comments
Alpine have given up figuring out what this test's problem is: https://github.com/alpinelinux/aports/blob/master/main/postgresql13/disable-test-collate.icu.utf8.patch |
@sternenseemann Oh, that's smart looking for alpine patches! It looks like they have another patch file that is disabling some tests, but it doesn't appear to disable the |
This is still an issue with postgres-14 with a recent nixpkgs |
A year later ... and this is still an issue :D diff -u ./src/test/regress/expected/collate.icu.utf8.out ./src/test/regress/results/collate.icu.utf8.out
--- ./src/test/regress/expected/collate.icu.utf8.out 2023-02-06 21:41:14.000000000 +0000
+++ ./src/test/regress/results/collate.icu.utf8.out 2023-05-19 04:06:50.965424988 +0000
@@ -1035,6 +1035,9 @@
quote_literal(current_setting('lc_ctype')) || ');';
END
$$;
+ERROR: collations with different collate and ctype values are not supported by ICU
+CONTEXT: SQL statement "CREATE COLLATION test1 (provider = icu, lc_collate = 'C', lc_ctype = 'C.UTF-8');"
+PL/pgSQL function inline_code_block line 3 at EXECUTE
CREATE COLLATION test3 (provider = icu, lc_collate = 'en_US.utf8'); -- fail, need lc_ctype
ERROR: parameter "lc_ctype" must be specified
CREATE COLLATION testx (provider = icu, locale = 'nonsense'); /* never fails with ICU */ DROP COLLATION testx;
@@ -1045,13 +1048,12 @@
collname
----------
test0
- test1
test5
-(3 rows)
+(2 rows)
ALTER COLLATION test1 RENAME TO test11;
+ERROR: collation "test1" for encoding "UTF8" does not exist
ALTER COLLATION test0 RENAME TO test11; -- fail
-ERROR: collation "test11" already exists in schema "collate_tests"
ALTER COLLATION test1 RENAME TO test22; -- fail
ERROR: collation "test1" for encoding "UTF8" does not exist
ALTER COLLATION test11 OWNER TO regress_test_role;
@@ -1059,18 +1061,19 @@
ERROR: role "nonsense" does not exist
ALTER COLLATION test11 SET SCHEMA test_schema;
COMMENT ON COLLATION test0 IS 'US English';
+ERROR: collation "test0" for encoding "UTF8" does not exist
SELECT collname, nspname, obj_description(pg_collation.oid, 'pg_collation')
FROM pg_collation JOIN pg_namespace ON (collnamespace = pg_namespace.oid)
WHERE collname LIKE 'test%'
ORDER BY 1;
collname | nspname | obj_description
----------+---------------+-----------------
- test0 | collate_tests | US English
test11 | test_schema |
test5 | collate_tests |
-(3 rows)
+(2 rows)
DROP COLLATION test0, test_schema.test11, test5;
+ERROR: collation "test0" for encoding "UTF8" does not exist
DROP COLLATION test0; -- fail
ERROR: collation "test0" for encoding "UTF8" does not exist
DROP COLLATION IF EXISTS test0;
@@ -1078,10 +1081,17 @@
SELECT collname FROM pg_collation WHERE collname LIKE 'test%';
collname
----------
-(0 rows)
+ test11
+ test5
+(2 rows)
DROP SCHEMA test_schema;
+ERROR: cannot drop schema test_schema because other objects depend on it
+DETAIL: collation test_schema.test11 depends on schema test_schema
+HINT: Use DROP ... CASCADE to drop the dependent objects too.
DROP ROLE regress_test_role;
+ERROR: role "regress_test_role" cannot be dropped because some objects depend on it
+DETAIL: owner of collation test_schema.test11
-- ALTER
ALTER COLLATION "en-x-icu" REFRESH VERSION;
NOTICE: version has not changed we find something unexpected:
we do set
Setting I'm somewhat puzzled as to where LC_CTYPE is being pulled from. Maybe this is a static ICU issue? |
The reason that necessitates setting LC_CTYPE is not fully clear to me, I've left some comments on the nixos/nixpkgs issue tracker. It appears as if we are pulling LC_CTYPE to be some UTC8 value if it's not set, instead of inheriting it from LC_ALL as it supposed to. NixOS/nixpkgs#150930 (comment)
The reason that necessitates setting LC_CTYPE is not fully clear to me, I've left some comments on the nixos/nixpkgs issue tracker. It appears as if we are pulling LC_CTYPE to be some UTC8 value if it's not set, instead of inheriting it from LC_ALL as it supposed to. NixOS/nixpkgs#150930 (comment)
Hello @cdepillabout & @angerman I just tried to reproduce this and it seems to work. Does this mean that the issue is now resolved? If so, would you be able to close this issue @cdepillabout ? (I'm going through older issues to try to see what can be resolved. If you still experience this issue, then don't mind me). |
@patka-123 Thanks for checking this out. I just tried building |
This no longer has the (same) failing test issue previously commented on, see NixOS/nixpkgs#150930 (comment)
This no longer has the (same) failing test issue previously commented on, see NixOS/nixpkgs#150930 (comment)
This no longer has the (same) failing test issue previously commented on, see NixOS/nixpkgs#150930 (comment)
This no longer has the (same) failing test issue previously commented on, see NixOS/nixpkgs#150930 (comment)
Describe the bug
The tests for
postgresql
fail forpkgsMusl.postgresql
.Here's the test output on
nixos-21.11
commit 5730959:file.txt
The failing test lines are:
A couple more things:
master
, but I didn't actually run the build.pkgsMusl.postgresql
builds correctly in previous versions of nixpkgs.Notify maintainers
I'm not sure who is interested in
pkgsMusl
problems. Maybe @sternenseemann knows?Metadata
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result.Maintainer information:
The text was updated successfully, but these errors were encountered: