this derivation will be built: /nix/store/k2vk7ha5zp9hphpbcm067qn58vp7wckp-treefmt-check.drv building '/nix/store/k2vk7ha5zp9hphpbcm067qn58vp7wckp-treefmt-check.drv' treefmt-check> treefmt v2.4.0traversed 943 files treefmt-check> emitted 233 files for processing treefmt-check> formatted 233 files (1 changed) in 579ms treefmt-check> M testinfra/test_ami_nix.py treefmt-check> diff --git a/testinfra/test_ami_nix.py b/testinfra/test_ami_nix.py treefmt-check> index 879e4c4..ea67dd3 100644 treefmt-check> --- a/testinfra/test_ami_nix.py treefmt-check> +++ b/testinfra/test_ami_nix.py treefmt-check> @@ -1162,16 +1162,18 @@ def test_supabase_monitor_admin_role_is_passwordless_and_reachable_on_loopback(h treefmt-check> has no password and relies on the same pg_hba trust rules. treefmt-check> treefmt-check> Unlike the other service roles, this role must never be given a password in treefmt-check> - nix/tools/postgresql_schema.sql or the fixture at the top of this file. treefmt-check> + nix/tools/postgresql_schema.sql or the fixture at the top of this file. treefmt-check> It should only be accessible from localhost. treefmt-check> """ treefmt-check> ssh = host["ssh"] treefmt-check> - psql_admin = "sudo -u postgres psql -U supabase_admin -h localhost -d postgres -At -c " treefmt-check> + psql_admin = ( treefmt-check> + "sudo -u postgres psql -U supabase_admin -h localhost -d postgres -At -c " treefmt-check> + ) treefmt-check> treefmt-check> result = run_ssh_command( treefmt-check> ssh, treefmt-check> psql_admin treefmt-check> - + "\"select rolcanlogin, rolpassword is null, rolbypassrls, rolsuper, " treefmt-check> + + '"select rolcanlogin, rolpassword is null, rolbypassrls, rolsuper, ' treefmt-check> "rolcreaterole, rolcreatedb, rolreplication " treefmt-check> "from pg_authid where rolname = 'supabase_monitor_admin'\"", treefmt-check> ) error: Cannot build '/nix/store/k2vk7ha5zp9hphpbcm067qn58vp7wckp-treefmt-check.drv'. Reason: builder failed with exit code 1. Output paths: /nix/store/sc3y3i0arq1w1733yzjhvb3b4p51q7c9-treefmt-check Last 25 log lines: > index 879e4c4..ea67dd3 100644 > --- a/testinfra/test_ami_nix.py > +++ b/testinfra/test_ami_nix.py > @@ -1162,16 +1162,18 @@ def test_supabase_monitor_admin_role_is_passwordless_and_reachable_on_loopback(h > has no password and relies on the same pg_hba trust rules. > > Unlike the other service roles, this role must never be given a password in > - nix/tools/postgresql_schema.sql or the fixture at the top of this file. > + nix/tools/postgresql_schema.sql or the fixture at the top of this file. > It should only be accessible from localhost. > """ > ssh = host["ssh"] > - psql_admin = "sudo -u postgres psql -U supabase_admin -h localhost -d postgres -At -c " > + psql_admin = ( > + "sudo -u postgres psql -U supabase_admin -h localhost -d postgres -At -c " > + ) > > result = run_ssh_command( > ssh, > psql_admin > - + "\"select rolcanlogin, rolpassword is null, rolbypassrls, rolsuper, " > + + '"select rolcanlogin, rolpassword is null, rolbypassrls, rolsuper, ' > "rolcreaterole, rolcreatedb, rolreplication " > "from pg_authid where rolname = 'supabase_monitor_admin'\"", > ) For full logs, run: nix log /nix/store/k2vk7ha5zp9hphpbcm067qn58vp7wckp-treefmt-check.drv